]>
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 ; | |
27523 | bool arg7 ; | |
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 | |
5c8c7dd3 | 27539 | if ((nobjs < 7) || (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); | |
27570 | ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); | |
27571 | if (!SWIG_IsOK(ecode7)) { | |
27572 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'"); | |
27573 | } | |
27574 | arg7 = static_cast< bool >(val7); | |
70d7cb34 | 27575 | { |
5c8c7dd3 | 27576 | (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
27577 | if (PyErr_Occurred()) SWIG_fail; |
27578 | } | |
5c8c7dd3 | 27579 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27580 | return resultobj; |
27581 | fail: | |
27582 | return NULL; | |
27583 | } | |
27584 | ||
27585 | ||
5c8c7dd3 | 27586 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27587 | PyObject *resultobj = 0; |
27588 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
27589 | wxPoint2D *arg2 = 0 ; |
27590 | wxDouble arg3 ; | |
27591 | wxDouble arg4 ; | |
27592 | wxDouble arg5 ; | |
27593 | bool arg6 ; | |
70d7cb34 RD |
27594 | void *argp1 = 0 ; |
27595 | int res1 = 0 ; | |
5c8c7dd3 RD |
27596 | wxPoint2D temp2 ; |
27597 | double val3 ; | |
70d7cb34 | 27598 | int ecode3 = 0 ; |
5c8c7dd3 RD |
27599 | double val4 ; |
27600 | int ecode4 = 0 ; | |
27601 | double val5 ; | |
27602 | int ecode5 = 0 ; | |
27603 | bool val6 ; | |
27604 | int ecode6 = 0 ; | |
70d7cb34 | 27605 | |
5c8c7dd3 | 27606 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; |
70d7cb34 RD |
27607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27608 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27610 | } |
27611 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27612 | { |
5c8c7dd3 RD |
27613 | arg2 = &temp2; |
27614 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 27615 | } |
5c8c7dd3 RD |
27616 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
27617 | if (!SWIG_IsOK(ecode3)) { | |
27618 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27619 | } | |
27620 | arg3 = static_cast< wxDouble >(val3); | |
27621 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); | |
27622 | if (!SWIG_IsOK(ecode4)) { | |
27623 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27624 | } | |
27625 | arg4 = static_cast< wxDouble >(val4); | |
27626 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
27627 | if (!SWIG_IsOK(ecode5)) { | |
27628 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27629 | } | |
27630 | arg5 = static_cast< wxDouble >(val5); | |
27631 | ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); | |
27632 | if (!SWIG_IsOK(ecode6)) { | |
27633 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'"); | |
27634 | } | |
27635 | arg6 = static_cast< bool >(val6); | |
70d7cb34 | 27636 | { |
5c8c7dd3 RD |
27637 | (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6); |
27638 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 27639 | } |
5c8c7dd3 | 27640 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27641 | return resultobj; |
27642 | fail: | |
27643 | return NULL; | |
27644 | } | |
27645 | ||
27646 | ||
5c8c7dd3 | 27647 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) { |
70d7cb34 | 27648 | int argc; |
5c8c7dd3 | 27649 | PyObject *argv[8]; |
70d7cb34 | 27650 | |
5c8c7dd3 | 27651 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail; |
70d7cb34 | 27652 | --argc; |
5c8c7dd3 RD |
27653 | if (argc == 6) { |
27654 | return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv); | |
70d7cb34 | 27655 | } |
5c8c7dd3 RD |
27656 | if (argc == 7) { |
27657 | return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
27658 | } |
27659 | ||
27660 | fail: | |
5c8c7dd3 | 27661 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'"); |
70d7cb34 RD |
27662 | return NULL; |
27663 | } | |
27664 | ||
27665 | ||
5c8c7dd3 | 27666 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27667 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27668 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27669 | wxDouble arg2 ; | |
27670 | wxDouble arg3 ; | |
27671 | wxDouble arg4 ; | |
27672 | wxDouble arg5 ; | |
70d7cb34 RD |
27673 | void *argp1 = 0 ; |
27674 | int res1 = 0 ; | |
5c8c7dd3 RD |
27675 | double val2 ; |
27676 | int ecode2 = 0 ; | |
27677 | double val3 ; | |
27678 | int ecode3 = 0 ; | |
27679 | double val4 ; | |
27680 | int ecode4 = 0 ; | |
27681 | double val5 ; | |
27682 | int ecode5 = 0 ; | |
27683 | PyObject * obj0 = 0 ; | |
27684 | PyObject * obj1 = 0 ; | |
27685 | PyObject * obj2 = 0 ; | |
27686 | PyObject * obj3 = 0 ; | |
27687 | PyObject * obj4 = 0 ; | |
27688 | char * kwnames[] = { | |
27689 | (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL | |
27690 | }; | |
70d7cb34 | 27691 | |
5c8c7dd3 RD |
27692 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27693 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27694 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27696 | } |
5c8c7dd3 RD |
27697 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27698 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27699 | if (!SWIG_IsOK(ecode2)) { | |
27700 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27701 | } | |
27702 | arg2 = static_cast< wxDouble >(val2); | |
27703 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27704 | if (!SWIG_IsOK(ecode3)) { | |
27705 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27706 | } | |
27707 | arg3 = static_cast< wxDouble >(val3); | |
27708 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27709 | if (!SWIG_IsOK(ecode4)) { | |
27710 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27711 | } | |
27712 | arg4 = static_cast< wxDouble >(val4); | |
27713 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27714 | if (!SWIG_IsOK(ecode5)) { | |
27715 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27716 | } | |
27717 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27718 | { |
5c8c7dd3 | 27719 | (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27720 | if (PyErr_Occurred()) SWIG_fail; |
27721 | } | |
27722 | resultobj = SWIG_Py_Void(); | |
27723 | return resultobj; | |
27724 | fail: | |
27725 | return NULL; | |
27726 | } | |
27727 | ||
27728 | ||
5c8c7dd3 | 27729 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27730 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27731 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27732 | wxDouble arg2 ; | |
27733 | wxDouble arg3 ; | |
27734 | wxDouble arg4 ; | |
27735 | wxDouble arg5 ; | |
70d7cb34 RD |
27736 | void *argp1 = 0 ; |
27737 | int res1 = 0 ; | |
5c8c7dd3 RD |
27738 | double val2 ; |
27739 | int ecode2 = 0 ; | |
27740 | double val3 ; | |
27741 | int ecode3 = 0 ; | |
27742 | double val4 ; | |
27743 | int ecode4 = 0 ; | |
27744 | double val5 ; | |
27745 | int ecode5 = 0 ; | |
70d7cb34 RD |
27746 | PyObject * obj0 = 0 ; |
27747 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27748 | PyObject * obj2 = 0 ; |
27749 | PyObject * obj3 = 0 ; | |
27750 | PyObject * obj4 = 0 ; | |
70d7cb34 | 27751 | char * kwnames[] = { |
5c8c7dd3 | 27752 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
70d7cb34 RD |
27753 | }; |
27754 | ||
5c8c7dd3 RD |
27755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27756 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27757 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27759 | } |
5c8c7dd3 RD |
27760 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27761 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27762 | if (!SWIG_IsOK(ecode2)) { | |
27763 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27764 | } | |
27765 | arg2 = static_cast< wxDouble >(val2); | |
27766 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27767 | if (!SWIG_IsOK(ecode3)) { | |
27768 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27769 | } | |
27770 | arg3 = static_cast< wxDouble >(val3); | |
27771 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27772 | if (!SWIG_IsOK(ecode4)) { | |
27773 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27774 | } | |
27775 | arg4 = static_cast< wxDouble >(val4); | |
27776 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27777 | if (!SWIG_IsOK(ecode5)) { | |
27778 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27779 | } | |
27780 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27781 | { |
5c8c7dd3 | 27782 | (arg1)->AddRectangle(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27783 | if (PyErr_Occurred()) SWIG_fail; |
27784 | } | |
27785 | resultobj = SWIG_Py_Void(); | |
27786 | return resultobj; | |
27787 | fail: | |
27788 | return NULL; | |
27789 | } | |
27790 | ||
27791 | ||
5c8c7dd3 | 27792 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27793 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27794 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27795 | wxDouble arg2 ; | |
27796 | wxDouble arg3 ; | |
27797 | wxDouble arg4 ; | |
70d7cb34 RD |
27798 | void *argp1 = 0 ; |
27799 | int res1 = 0 ; | |
5c8c7dd3 RD |
27800 | double val2 ; |
27801 | int ecode2 = 0 ; | |
27802 | double val3 ; | |
27803 | int ecode3 = 0 ; | |
27804 | double val4 ; | |
27805 | int ecode4 = 0 ; | |
70d7cb34 RD |
27806 | PyObject * obj0 = 0 ; |
27807 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27808 | PyObject * obj2 = 0 ; |
27809 | PyObject * obj3 = 0 ; | |
70d7cb34 | 27810 | char * kwnames[] = { |
5c8c7dd3 | 27811 | (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL |
70d7cb34 RD |
27812 | }; |
27813 | ||
5c8c7dd3 RD |
27814 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
27815 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27816 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27818 | } |
5c8c7dd3 RD |
27819 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27820 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27821 | if (!SWIG_IsOK(ecode2)) { | |
27822 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27823 | } | |
27824 | arg2 = static_cast< wxDouble >(val2); | |
27825 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27826 | if (!SWIG_IsOK(ecode3)) { | |
27827 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27828 | } | |
27829 | arg3 = static_cast< wxDouble >(val3); | |
27830 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27831 | if (!SWIG_IsOK(ecode4)) { | |
27832 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27833 | } | |
27834 | arg4 = static_cast< wxDouble >(val4); | |
70d7cb34 | 27835 | { |
5c8c7dd3 | 27836 | (arg1)->AddCircle(arg2,arg3,arg4); |
70d7cb34 RD |
27837 | if (PyErr_Occurred()) SWIG_fail; |
27838 | } | |
27839 | resultobj = SWIG_Py_Void(); | |
27840 | return resultobj; | |
27841 | fail: | |
27842 | return NULL; | |
27843 | } | |
27844 | ||
27845 | ||
5c8c7dd3 | 27846 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27847 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27848 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27849 | wxDouble arg2 ; | |
27850 | wxDouble arg3 ; | |
27851 | wxDouble arg4 ; | |
27852 | wxDouble arg5 ; | |
27853 | wxDouble arg6 ; | |
70d7cb34 RD |
27854 | void *argp1 = 0 ; |
27855 | int res1 = 0 ; | |
27856 | double val2 ; | |
27857 | int ecode2 = 0 ; | |
27858 | double val3 ; | |
27859 | int ecode3 = 0 ; | |
27860 | double val4 ; | |
27861 | int ecode4 = 0 ; | |
27862 | double val5 ; | |
27863 | int ecode5 = 0 ; | |
27864 | double val6 ; | |
27865 | int ecode6 = 0 ; | |
70d7cb34 RD |
27866 | PyObject * obj0 = 0 ; |
27867 | PyObject * obj1 = 0 ; | |
27868 | PyObject * obj2 = 0 ; | |
27869 | PyObject * obj3 = 0 ; | |
27870 | PyObject * obj4 = 0 ; | |
27871 | PyObject * obj5 = 0 ; | |
70d7cb34 | 27872 | char * kwnames[] = { |
5c8c7dd3 | 27873 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL |
70d7cb34 RD |
27874 | }; |
27875 | ||
5c8c7dd3 RD |
27876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
27877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27878 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27880 | } |
5c8c7dd3 RD |
27881 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27882 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27883 | if (!SWIG_IsOK(ecode2)) { | |
27884 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27885 | } | |
27886 | arg2 = static_cast< wxDouble >(val2); | |
27887 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27888 | if (!SWIG_IsOK(ecode3)) { | |
27889 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27890 | } | |
27891 | arg3 = static_cast< wxDouble >(val3); | |
27892 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27893 | if (!SWIG_IsOK(ecode4)) { | |
27894 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27895 | } | |
27896 | arg4 = static_cast< wxDouble >(val4); | |
27897 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27898 | if (!SWIG_IsOK(ecode5)) { | |
27899 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27900 | } | |
27901 | arg5 = static_cast< wxDouble >(val5); | |
27902 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27903 | if (!SWIG_IsOK(ecode6)) { | |
27904 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27905 | } | |
27906 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 27907 | { |
5c8c7dd3 | 27908 | (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
27909 | if (PyErr_Occurred()) SWIG_fail; |
27910 | } | |
27911 | resultobj = SWIG_Py_Void(); | |
27912 | return resultobj; | |
27913 | fail: | |
27914 | return NULL; | |
27915 | } | |
27916 | ||
27917 | ||
5c8c7dd3 | 27918 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27919 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27920 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27921 | wxDouble arg2 ; | |
27922 | wxDouble arg3 ; | |
27923 | wxDouble arg4 ; | |
27924 | wxDouble arg5 ; | |
70d7cb34 RD |
27925 | void *argp1 = 0 ; |
27926 | int res1 = 0 ; | |
5c8c7dd3 RD |
27927 | double val2 ; |
27928 | int ecode2 = 0 ; | |
27929 | double val3 ; | |
27930 | int ecode3 = 0 ; | |
27931 | double val4 ; | |
27932 | int ecode4 = 0 ; | |
27933 | double val5 ; | |
27934 | int ecode5 = 0 ; | |
27935 | PyObject * obj0 = 0 ; | |
27936 | PyObject * obj1 = 0 ; | |
27937 | PyObject * obj2 = 0 ; | |
27938 | PyObject * obj3 = 0 ; | |
27939 | PyObject * obj4 = 0 ; | |
27940 | char * kwnames[] = { | |
27941 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27942 | }; | |
70d7cb34 | 27943 | |
5c8c7dd3 RD |
27944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27946 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27948 | } |
5c8c7dd3 RD |
27949 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27950 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27951 | if (!SWIG_IsOK(ecode2)) { | |
27952 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27953 | } | |
27954 | arg2 = static_cast< wxDouble >(val2); | |
27955 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27956 | if (!SWIG_IsOK(ecode3)) { | |
27957 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27958 | } | |
27959 | arg3 = static_cast< wxDouble >(val3); | |
27960 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27961 | if (!SWIG_IsOK(ecode4)) { | |
27962 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27963 | } | |
27964 | arg4 = static_cast< wxDouble >(val4); | |
27965 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27966 | if (!SWIG_IsOK(ecode5)) { | |
27967 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27968 | } | |
27969 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27970 | { |
5c8c7dd3 | 27971 | (arg1)->AddEllipse(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27972 | if (PyErr_Occurred()) SWIG_fail; |
27973 | } | |
27974 | resultobj = SWIG_Py_Void(); | |
27975 | return resultobj; | |
27976 | fail: | |
27977 | return NULL; | |
27978 | } | |
27979 | ||
27980 | ||
5c8c7dd3 | 27981 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27982 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27983 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27984 | wxDouble arg2 ; | |
27985 | wxDouble arg3 ; | |
27986 | wxDouble arg4 ; | |
27987 | wxDouble arg5 ; | |
27988 | wxDouble arg6 ; | |
70d7cb34 RD |
27989 | void *argp1 = 0 ; |
27990 | int res1 = 0 ; | |
5c8c7dd3 RD |
27991 | double val2 ; |
27992 | int ecode2 = 0 ; | |
27993 | double val3 ; | |
27994 | int ecode3 = 0 ; | |
27995 | double val4 ; | |
27996 | int ecode4 = 0 ; | |
27997 | double val5 ; | |
27998 | int ecode5 = 0 ; | |
27999 | double val6 ; | |
28000 | int ecode6 = 0 ; | |
70d7cb34 RD |
28001 | PyObject * obj0 = 0 ; |
28002 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
28003 | PyObject * obj2 = 0 ; |
28004 | PyObject * obj3 = 0 ; | |
28005 | PyObject * obj4 = 0 ; | |
28006 | PyObject * obj5 = 0 ; | |
70d7cb34 | 28007 | char * kwnames[] = { |
5c8c7dd3 | 28008 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
70d7cb34 RD |
28009 | }; |
28010 | ||
5c8c7dd3 RD |
28011 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
28012 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28013 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 28014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 28015 | } |
5c8c7dd3 RD |
28016 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
28017 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28018 | if (!SWIG_IsOK(ecode2)) { | |
28019 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28020 | } | |
28021 | arg2 = static_cast< wxDouble >(val2); | |
28022 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28023 | if (!SWIG_IsOK(ecode3)) { | |
28024 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28025 | } | |
28026 | arg3 = static_cast< wxDouble >(val3); | |
28027 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28028 | if (!SWIG_IsOK(ecode4)) { | |
28029 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28030 | } | |
28031 | arg4 = static_cast< wxDouble >(val4); | |
28032 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28033 | if (!SWIG_IsOK(ecode5)) { | |
28034 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28035 | } | |
28036 | arg5 = static_cast< wxDouble >(val5); | |
28037 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28038 | if (!SWIG_IsOK(ecode6)) { | |
28039 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
28040 | } | |
28041 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 28042 | { |
5c8c7dd3 | 28043 | (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
28044 | if (PyErr_Occurred()) SWIG_fail; |
28045 | } | |
5c8c7dd3 | 28046 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
28047 | return resultobj; |
28048 | fail: | |
28049 | return NULL; | |
28050 | } | |
28051 | ||
28052 | ||
5c8c7dd3 | 28053 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 28054 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28055 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28056 | void *result = 0 ; | |
70d7cb34 RD |
28057 | void *argp1 = 0 ; |
28058 | int res1 = 0 ; | |
28059 | PyObject *swig_obj[1] ; | |
28060 | ||
28061 | if (!args) SWIG_fail; | |
28062 | swig_obj[0] = args; | |
5c8c7dd3 | 28063 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
70d7cb34 | 28064 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 28065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28066 | } |
5c8c7dd3 | 28067 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 28068 | { |
5c8c7dd3 | 28069 | result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath(); |
70d7cb34 RD |
28070 | if (PyErr_Occurred()) SWIG_fail; |
28071 | } | |
5c8c7dd3 | 28072 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); |
70d7cb34 RD |
28073 | return resultobj; |
28074 | fail: | |
28075 | return NULL; | |
28076 | } | |
28077 | ||
28078 | ||
5c8c7dd3 | 28079 | SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 28080 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28081 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28082 | void *arg2 = (void *) 0 ; | |
70d7cb34 RD |
28083 | void *argp1 = 0 ; |
28084 | int res1 = 0 ; | |
5c8c7dd3 | 28085 | int res2 ; |
70d7cb34 RD |
28086 | PyObject * obj0 = 0 ; |
28087 | PyObject * obj1 = 0 ; | |
70d7cb34 | 28088 | char * kwnames[] = { |
5c8c7dd3 | 28089 | (char *) "self",(char *) "p", NULL |
70d7cb34 RD |
28090 | }; |
28091 | ||
5c8c7dd3 RD |
28092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail; |
28093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28094 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
5c8c7dd3 RD |
28096 | } |
28097 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
28098 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
28099 | if (!SWIG_IsOK(res2)) { | |
28100 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'"); | |
70d7cb34 | 28101 | } |
70d7cb34 | 28102 | { |
8f514ab4 | 28103 | ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2); |
70d7cb34 RD |
28104 | if (PyErr_Occurred()) SWIG_fail; |
28105 | } | |
28106 | resultobj = SWIG_Py_Void(); | |
28107 | return resultobj; | |
28108 | fail: | |
28109 | return NULL; | |
28110 | } | |
28111 | ||
28112 | ||
5c8c7dd3 | 28113 | SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 28114 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28115 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28116 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
28117 | void *argp1 = 0 ; |
28118 | int res1 = 0 ; | |
5c8c7dd3 RD |
28119 | void *argp2 = 0 ; |
28120 | int res2 = 0 ; | |
70d7cb34 RD |
28121 | PyObject * obj0 = 0 ; |
28122 | PyObject * obj1 = 0 ; | |
70d7cb34 | 28123 | char * kwnames[] = { |
5c8c7dd3 | 28124 | (char *) "self",(char *) "matrix", NULL |
70d7cb34 RD |
28125 | }; |
28126 | ||
5c8c7dd3 RD |
28127 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail; |
28128 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28129 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 28130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 28131 | } |
5c8c7dd3 RD |
28132 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
28133 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28134 | if (!SWIG_IsOK(res2)) { | |
28135 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28136 | } | |
28137 | if (!argp2) { | |
28138 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28139 | } | |
28140 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 28141 | { |
5c8c7dd3 | 28142 | (arg1)->Transform((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
28143 | if (PyErr_Occurred()) SWIG_fail; |
28144 | } | |
28145 | resultobj = SWIG_Py_Void(); | |
28146 | return resultobj; | |
28147 | fail: | |
28148 | return NULL; | |
28149 | } | |
28150 | ||
28151 | ||
5c8c7dd3 | 28152 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 28153 | PyObject *resultobj = 0; |
5c8c7dd3 | 28154 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
4fe9ce47 | 28155 | wxRect2D result; |
70d7cb34 RD |
28156 | void *argp1 = 0 ; |
28157 | int res1 = 0 ; | |
5c8c7dd3 | 28158 | PyObject *swig_obj[1] ; |
70d7cb34 | 28159 | |
5c8c7dd3 RD |
28160 | if (!args) SWIG_fail; |
28161 | swig_obj[0] = args; | |
28162 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28163 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28165 | } |
5c8c7dd3 | 28166 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 28167 | { |
8f514ab4 | 28168 | result = ((wxGraphicsPath const *)arg1)->GetBox(); |
70d7cb34 RD |
28169 | if (PyErr_Occurred()) SWIG_fail; |
28170 | } | |
4fe9ce47 | 28171 | resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
28172 | return resultobj; |
28173 | fail: | |
28174 | return NULL; | |
28175 | } | |
28176 | ||
28177 | ||
5c8c7dd3 | 28178 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 28179 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28180 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28181 | wxDouble arg2 ; | |
28182 | wxDouble arg3 ; | |
8f514ab4 | 28183 | int arg4 = (int) wxODDEVEN_RULE ; |
5c8c7dd3 | 28184 | bool result; |
70d7cb34 RD |
28185 | void *argp1 = 0 ; |
28186 | int res1 = 0 ; | |
5c8c7dd3 RD |
28187 | double val2 ; |
28188 | int ecode2 = 0 ; | |
28189 | double val3 ; | |
28190 | int ecode3 = 0 ; | |
28191 | int val4 ; | |
28192 | int ecode4 = 0 ; | |
70d7cb34 | 28193 | |
5c8c7dd3 RD |
28194 | if ((nobjs < 3) || (nobjs > 4)) SWIG_fail; |
28195 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28196 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28197 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28198 | } |
5c8c7dd3 RD |
28199 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
28200 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
28201 | if (!SWIG_IsOK(ecode2)) { | |
28202 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28203 | } | |
28204 | arg2 = static_cast< wxDouble >(val2); | |
28205 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
28206 | if (!SWIG_IsOK(ecode3)) { | |
28207 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28208 | } | |
28209 | arg3 = static_cast< wxDouble >(val3); | |
28210 | if (swig_obj[3]) { | |
28211 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
28212 | if (!SWIG_IsOK(ecode4)) { | |
28213 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'"); | |
28214 | } | |
28215 | arg4 = static_cast< int >(val4); | |
70d7cb34 RD |
28216 | } |
28217 | { | |
8f514ab4 | 28218 | result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4); |
70d7cb34 RD |
28219 | if (PyErr_Occurred()) SWIG_fail; |
28220 | } | |
5c8c7dd3 RD |
28221 | { |
28222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
28223 | } |
28224 | return resultobj; | |
28225 | fail: | |
28226 | return NULL; | |
28227 | } | |
28228 | ||
28229 | ||
5c8c7dd3 | 28230 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 28231 | PyObject *resultobj = 0; |
5c8c7dd3 | 28232 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
4fe9ce47 | 28233 | wxPoint2D *arg2 = 0 ; |
8f514ab4 | 28234 | int arg3 = (int) wxODDEVEN_RULE ; |
5c8c7dd3 | 28235 | bool result; |
70d7cb34 RD |
28236 | void *argp1 = 0 ; |
28237 | int res1 = 0 ; | |
4fe9ce47 | 28238 | wxPoint2D temp2 ; |
5c8c7dd3 RD |
28239 | int val3 ; |
28240 | int ecode3 = 0 ; | |
70d7cb34 | 28241 | |
5c8c7dd3 RD |
28242 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
28243 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28244 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28246 | } |
5c8c7dd3 | 28247 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
4fe9ce47 RD |
28248 | { |
28249 | arg2 = &temp2; | |
28250 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
5c8c7dd3 | 28251 | } |
5c8c7dd3 RD |
28252 | if (swig_obj[2]) { |
28253 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
28254 | if (!SWIG_IsOK(ecode3)) { | |
28255 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'"); | |
28256 | } | |
28257 | arg3 = static_cast< int >(val3); | |
70d7cb34 RD |
28258 | } |
28259 | { | |
4fe9ce47 | 28260 | result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3); |
70d7cb34 RD |
28261 | if (PyErr_Occurred()) SWIG_fail; |
28262 | } | |
5c8c7dd3 RD |
28263 | { |
28264 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
28265 | } |
28266 | return resultobj; | |
28267 | fail: | |
28268 | return NULL; | |
28269 | } | |
28270 | ||
28271 | ||
5c8c7dd3 RD |
28272 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) { |
28273 | int argc; | |
28274 | PyObject *argv[5]; | |
70d7cb34 | 28275 | |
5c8c7dd3 RD |
28276 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail; |
28277 | --argc; | |
28278 | if ((argc >= 2) && (argc <= 3)) { | |
28279 | int _v = 0; | |
28280 | { | |
4fe9ce47 RD |
28281 | { |
28282 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2); | |
28283 | } | |
5c8c7dd3 RD |
28284 | } |
28285 | if (!_v) goto check_1; | |
28286 | if (argc > 2) { | |
28287 | { | |
28288 | { | |
28289 | int res = SWIG_AsVal_int(argv[2], NULL); | |
28290 | _v = SWIG_CheckState(res); | |
28291 | } | |
28292 | } | |
28293 | if (!_v) goto check_1; | |
28294 | } | |
28295 | return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv); | |
70d7cb34 | 28296 | } |
5c8c7dd3 RD |
28297 | check_1: |
28298 | ||
28299 | if ((argc >= 3) && (argc <= 4)) { | |
28300 | return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv); | |
70d7cb34 | 28301 | } |
5c8c7dd3 | 28302 | |
70d7cb34 | 28303 | fail: |
5c8c7dd3 | 28304 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'"); |
70d7cb34 RD |
28305 | return NULL; |
28306 | } | |
28307 | ||
28308 | ||
5c8c7dd3 | 28309 | SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
28310 | PyObject *obj; |
28311 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5c8c7dd3 | 28312 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj)); |
70d7cb34 RD |
28313 | return SWIG_Py_Void(); |
28314 | } | |
28315 | ||
8f514ab4 RD |
28316 | SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28317 | return SWIG_Python_InitShadowInstance(args); | |
28318 | } | |
28319 | ||
5c8c7dd3 RD |
28320 | SWIGINTERN int NullGraphicsPen_set(PyObject *) { |
28321 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only."); | |
28322 | return 1; | |
28323 | } | |
28324 | ||
28325 | ||
28326 | SWIGINTERN PyObject *NullGraphicsPen_get(void) { | |
28327 | PyObject *pyobj = 0; | |
28328 | ||
28329 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 ); | |
28330 | return pyobj; | |
28331 | } | |
28332 | ||
28333 | ||
28334 | SWIGINTERN int NullGraphicsBrush_set(PyObject *) { | |
28335 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only."); | |
28336 | return 1; | |
28337 | } | |
28338 | ||
28339 | ||
28340 | SWIGINTERN PyObject *NullGraphicsBrush_get(void) { | |
28341 | PyObject *pyobj = 0; | |
28342 | ||
28343 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 ); | |
28344 | return pyobj; | |
28345 | } | |
28346 | ||
28347 | ||
28348 | SWIGINTERN int NullGraphicsFont_set(PyObject *) { | |
28349 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only."); | |
28350 | return 1; | |
28351 | } | |
28352 | ||
28353 | ||
28354 | SWIGINTERN PyObject *NullGraphicsFont_get(void) { | |
28355 | PyObject *pyobj = 0; | |
28356 | ||
28357 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 ); | |
28358 | return pyobj; | |
28359 | } | |
28360 | ||
28361 | ||
28362 | SWIGINTERN int NullGraphicsMatrix_set(PyObject *) { | |
28363 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only."); | |
28364 | return 1; | |
28365 | } | |
28366 | ||
28367 | ||
28368 | SWIGINTERN PyObject *NullGraphicsMatrix_get(void) { | |
28369 | PyObject *pyobj = 0; | |
28370 | ||
28371 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 ); | |
28372 | return pyobj; | |
28373 | } | |
28374 | ||
28375 | ||
28376 | SWIGINTERN int NullGraphicsPath_set(PyObject *) { | |
28377 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only."); | |
28378 | return 1; | |
28379 | } | |
28380 | ||
28381 | ||
28382 | SWIGINTERN PyObject *NullGraphicsPath_get(void) { | |
28383 | PyObject *pyobj = 0; | |
28384 | ||
28385 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 ); | |
28386 | return pyobj; | |
28387 | } | |
28388 | ||
28389 | ||
70d7cb34 RD |
28390 | SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28391 | PyObject *resultobj = 0; | |
28392 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28393 | void *argp1 = 0 ; | |
28394 | int res1 = 0 ; | |
28395 | PyObject *swig_obj[1] ; | |
28396 | ||
28397 | if (!args) SWIG_fail; | |
28398 | swig_obj[0] = args; | |
28399 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 ); | |
28400 | if (!SWIG_IsOK(res1)) { | |
28401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28402 | } | |
28403 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28404 | { | |
28405 | delete arg1; | |
28406 | ||
28407 | if (PyErr_Occurred()) SWIG_fail; | |
28408 | } | |
28409 | resultobj = SWIG_Py_Void(); | |
28410 | return resultobj; | |
28411 | fail: | |
28412 | return NULL; | |
28413 | } | |
28414 | ||
28415 | ||
28416 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28417 | PyObject *resultobj = 0; | |
28418 | wxWindowDC *arg1 = 0 ; | |
28419 | wxGraphicsContext *result = 0 ; | |
28420 | void *argp1 = 0 ; | |
28421 | int res1 = 0 ; | |
28422 | ||
28423 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
28424 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
28425 | if (!SWIG_IsOK(res1)) { | |
28426 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
28427 | } | |
28428 | if (!argp1) { | |
28429 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
28430 | } | |
28431 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
28432 | { | |
28433 | result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1); | |
28434 | if (PyErr_Occurred()) SWIG_fail; | |
28435 | } | |
28436 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28437 | return resultobj; | |
28438 | fail: | |
28439 | return NULL; | |
28440 | } | |
28441 | ||
28442 | ||
28443 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28444 | PyObject *resultobj = 0; | |
28445 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28446 | wxGraphicsContext *result = 0 ; | |
28447 | void *argp1 = 0 ; | |
28448 | int res1 = 0 ; | |
28449 | ||
28450 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
28451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28452 | if (!SWIG_IsOK(res1)) { | |
28453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
28454 | } | |
28455 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
28456 | { | |
28457 | result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1); | |
28458 | if (PyErr_Occurred()) SWIG_fail; | |
28459 | } | |
28460 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28461 | return resultobj; | |
28462 | fail: | |
28463 | return NULL; | |
28464 | } | |
28465 | ||
28466 | ||
28467 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) { | |
28468 | int argc; | |
28469 | PyObject *argv[2]; | |
28470 | ||
28471 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail; | |
28472 | --argc; | |
28473 | if (argc == 1) { | |
28474 | int _v = 0; | |
28475 | { | |
28476 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
28477 | _v = SWIG_CheckState(res); | |
28478 | } | |
28479 | if (!_v) goto check_1; | |
28480 | return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv); | |
28481 | } | |
28482 | check_1: | |
28483 | ||
28484 | if (argc == 1) { | |
28485 | return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv); | |
28486 | } | |
28487 | ||
28488 | fail: | |
28489 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'"); | |
28490 | return NULL; | |
28491 | } | |
28492 | ||
28493 | ||
f89238b9 RD |
28494 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28495 | PyObject *resultobj = 0; | |
28496 | wxGraphicsContext *result = 0 ; | |
28497 | ||
28498 | if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail; | |
28499 | { | |
28500 | result = (wxGraphicsContext *)wxGraphicsContext::Create(); | |
28501 | if (PyErr_Occurred()) SWIG_fail; | |
28502 | } | |
28503 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28504 | return resultobj; | |
28505 | fail: | |
28506 | return NULL; | |
28507 | } | |
28508 | ||
28509 | ||
70d7cb34 RD |
28510 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28511 | PyObject *resultobj = 0; | |
28512 | void *arg1 = (void *) 0 ; | |
28513 | wxGraphicsContext *result = 0 ; | |
28514 | int res1 ; | |
28515 | PyObject * obj0 = 0 ; | |
28516 | char * kwnames[] = { | |
28517 | (char *) "context", NULL | |
28518 | }; | |
28519 | ||
28520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail; | |
28521 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
28522 | if (!SWIG_IsOK(res1)) { | |
28523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'"); | |
28524 | } | |
28525 | { | |
28526 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1); | |
28527 | if (PyErr_Occurred()) SWIG_fail; | |
28528 | } | |
28529 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28530 | return resultobj; | |
28531 | fail: | |
28532 | return NULL; | |
28533 | } | |
28534 | ||
28535 | ||
28536 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28537 | PyObject *resultobj = 0; | |
28538 | void *arg1 = (void *) 0 ; | |
28539 | wxGraphicsContext *result = 0 ; | |
28540 | int res1 ; | |
28541 | PyObject * obj0 = 0 ; | |
28542 | char * kwnames[] = { | |
28543 | (char *) "window", NULL | |
28544 | }; | |
28545 | ||
28546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail; | |
28547 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
28548 | if (!SWIG_IsOK(res1)) { | |
28549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'"); | |
28550 | } | |
28551 | { | |
28552 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1); | |
28553 | if (PyErr_Occurred()) SWIG_fail; | |
28554 | } | |
28555 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28556 | return resultobj; | |
28557 | fail: | |
28558 | return NULL; | |
28559 | } | |
28560 | ||
28561 | ||
28562 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28563 | PyObject *resultobj = 0; | |
28564 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 28565 | wxGraphicsPath result; |
70d7cb34 RD |
28566 | void *argp1 = 0 ; |
28567 | int res1 = 0 ; | |
28568 | PyObject *swig_obj[1] ; | |
28569 | ||
28570 | if (!args) SWIG_fail; | |
28571 | swig_obj[0] = args; | |
28572 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28573 | if (!SWIG_IsOK(res1)) { | |
28574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28575 | } | |
28576 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28577 | { | |
5c8c7dd3 | 28578 | result = (arg1)->CreatePath(); |
70d7cb34 RD |
28579 | if (PyErr_Occurred()) SWIG_fail; |
28580 | } | |
5c8c7dd3 | 28581 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28582 | return resultobj; |
28583 | fail: | |
28584 | return NULL; | |
28585 | } | |
28586 | ||
28587 | ||
70d7cb34 | 28588 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28589 | PyObject *resultobj = 0; |
70d7cb34 RD |
28590 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28591 | wxPen *arg2 = 0 ; | |
28592 | wxGraphicsPen result; | |
72ef6efb RD |
28593 | void *argp1 = 0 ; |
28594 | int res1 = 0 ; | |
70d7cb34 RD |
28595 | void *argp2 = 0 ; |
28596 | int res2 = 0 ; | |
72ef6efb RD |
28597 | PyObject * obj0 = 0 ; |
28598 | PyObject * obj1 = 0 ; | |
72ef6efb | 28599 | char * kwnames[] = { |
70d7cb34 | 28600 | (char *) "self",(char *) "pen", NULL |
72ef6efb RD |
28601 | }; |
28602 | ||
70d7cb34 RD |
28603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; |
28604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28605 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28607 | } |
70d7cb34 RD |
28608 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28609 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
28610 | if (!SWIG_IsOK(res2)) { | |
28611 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28612 | } | |
28613 | if (!argp2) { | |
28614 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28615 | } | |
28616 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
72ef6efb | 28617 | { |
70d7cb34 | 28618 | result = (arg1)->CreatePen((wxPen const &)*arg2); |
72ef6efb RD |
28619 | if (PyErr_Occurred()) SWIG_fail; |
28620 | } | |
70d7cb34 | 28621 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28622 | return resultobj; |
28623 | fail: | |
28624 | return NULL; | |
28625 | } | |
28626 | ||
28627 | ||
70d7cb34 | 28628 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28629 | PyObject *resultobj = 0; |
70d7cb34 RD |
28630 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28631 | wxBrush *arg2 = 0 ; | |
28632 | wxGraphicsBrush result; | |
72ef6efb RD |
28633 | void *argp1 = 0 ; |
28634 | int res1 = 0 ; | |
70d7cb34 RD |
28635 | void *argp2 = 0 ; |
28636 | int res2 = 0 ; | |
72ef6efb RD |
28637 | PyObject * obj0 = 0 ; |
28638 | PyObject * obj1 = 0 ; | |
72ef6efb | 28639 | char * kwnames[] = { |
70d7cb34 | 28640 | (char *) "self",(char *) "brush", NULL |
72ef6efb RD |
28641 | }; |
28642 | ||
70d7cb34 RD |
28643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; |
28644 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28645 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28647 | } |
70d7cb34 RD |
28648 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28649 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
28650 | if (!SWIG_IsOK(res2)) { | |
28651 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28652 | } | |
28653 | if (!argp2) { | |
28654 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28655 | } | |
28656 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
72ef6efb | 28657 | { |
70d7cb34 | 28658 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); |
72ef6efb RD |
28659 | if (PyErr_Occurred()) SWIG_fail; |
28660 | } | |
70d7cb34 | 28661 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28662 | return resultobj; |
28663 | fail: | |
28664 | return NULL; | |
28665 | } | |
28666 | ||
28667 | ||
70d7cb34 | 28668 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28669 | PyObject *resultobj = 0; |
70d7cb34 | 28670 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
28671 | wxDouble arg2 ; |
28672 | wxDouble arg3 ; | |
28673 | wxDouble arg4 ; | |
28674 | wxDouble arg5 ; | |
70d7cb34 RD |
28675 | wxColour *arg6 = 0 ; |
28676 | wxColour *arg7 = 0 ; | |
28677 | wxGraphicsBrush result; | |
72ef6efb RD |
28678 | void *argp1 = 0 ; |
28679 | int res1 = 0 ; | |
28680 | double val2 ; | |
28681 | int ecode2 = 0 ; | |
28682 | double val3 ; | |
28683 | int ecode3 = 0 ; | |
28684 | double val4 ; | |
28685 | int ecode4 = 0 ; | |
28686 | double val5 ; | |
28687 | int ecode5 = 0 ; | |
70d7cb34 RD |
28688 | wxColour temp6 ; |
28689 | wxColour temp7 ; | |
72ef6efb RD |
28690 | PyObject * obj0 = 0 ; |
28691 | PyObject * obj1 = 0 ; | |
28692 | PyObject * obj2 = 0 ; | |
28693 | PyObject * obj3 = 0 ; | |
28694 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
28695 | PyObject * obj5 = 0 ; |
28696 | PyObject * obj6 = 0 ; | |
72ef6efb | 28697 | char * kwnames[] = { |
70d7cb34 | 28698 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
28699 | }; |
28700 | ||
70d7cb34 RD |
28701 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
28702 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28703 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28705 | } |
70d7cb34 | 28706 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
28707 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
28708 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 28709 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
28710 | } |
28711 | arg2 = static_cast< wxDouble >(val2); | |
28712 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28713 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 28714 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28715 | } |
28716 | arg3 = static_cast< wxDouble >(val3); | |
28717 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28718 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 28719 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
28720 | } |
28721 | arg4 = static_cast< wxDouble >(val4); | |
28722 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28723 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 28724 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
28725 | } |
28726 | arg5 = static_cast< wxDouble >(val5); | |
28727 | { | |
70d7cb34 RD |
28728 | arg6 = &temp6; |
28729 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
72ef6efb | 28730 | } |
70d7cb34 RD |
28731 | { |
28732 | arg7 = &temp7; | |
28733 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
72ef6efb | 28734 | } |
72ef6efb | 28735 | { |
70d7cb34 | 28736 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); |
72ef6efb RD |
28737 | if (PyErr_Occurred()) SWIG_fail; |
28738 | } | |
70d7cb34 | 28739 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28740 | return resultobj; |
28741 | fail: | |
28742 | return NULL; | |
28743 | } | |
28744 | ||
28745 | ||
70d7cb34 | 28746 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28747 | PyObject *resultobj = 0; |
70d7cb34 | 28748 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
28749 | wxDouble arg2 ; |
28750 | wxDouble arg3 ; | |
28751 | wxDouble arg4 ; | |
28752 | wxDouble arg5 ; | |
28753 | wxDouble arg6 ; | |
70d7cb34 RD |
28754 | wxColour *arg7 = 0 ; |
28755 | wxColour *arg8 = 0 ; | |
28756 | wxGraphicsBrush result; | |
72ef6efb RD |
28757 | void *argp1 = 0 ; |
28758 | int res1 = 0 ; | |
28759 | double val2 ; | |
28760 | int ecode2 = 0 ; | |
28761 | double val3 ; | |
28762 | int ecode3 = 0 ; | |
28763 | double val4 ; | |
28764 | int ecode4 = 0 ; | |
28765 | double val5 ; | |
28766 | int ecode5 = 0 ; | |
28767 | double val6 ; | |
28768 | int ecode6 = 0 ; | |
70d7cb34 RD |
28769 | wxColour temp7 ; |
28770 | wxColour temp8 ; | |
72ef6efb RD |
28771 | PyObject * obj0 = 0 ; |
28772 | PyObject * obj1 = 0 ; | |
28773 | PyObject * obj2 = 0 ; | |
28774 | PyObject * obj3 = 0 ; | |
28775 | PyObject * obj4 = 0 ; | |
28776 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
28777 | PyObject * obj6 = 0 ; |
28778 | PyObject * obj7 = 0 ; | |
72ef6efb | 28779 | char * kwnames[] = { |
70d7cb34 | 28780 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
28781 | }; |
28782 | ||
70d7cb34 RD |
28783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
28784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28785 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28787 | } |
70d7cb34 | 28788 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
28789 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
28790 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 28791 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
28792 | } |
28793 | arg2 = static_cast< wxDouble >(val2); | |
28794 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28795 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 28796 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28797 | } |
28798 | arg3 = static_cast< wxDouble >(val3); | |
28799 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28800 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 28801 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
28802 | } |
28803 | arg4 = static_cast< wxDouble >(val4); | |
28804 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28805 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 28806 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
28807 | } |
28808 | arg5 = static_cast< wxDouble >(val5); | |
28809 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28810 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 28811 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
28812 | } |
28813 | arg6 = static_cast< wxDouble >(val6); | |
28814 | { | |
70d7cb34 RD |
28815 | arg7 = &temp7; |
28816 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
28817 | } | |
28818 | { | |
28819 | arg8 = &temp8; | |
28820 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
28821 | } | |
28822 | { | |
28823 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
28824 | if (PyErr_Occurred()) SWIG_fail; |
28825 | } | |
70d7cb34 | 28826 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28827 | return resultobj; |
28828 | fail: | |
28829 | return NULL; | |
28830 | } | |
28831 | ||
28832 | ||
70d7cb34 | 28833 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28834 | PyObject *resultobj = 0; |
28835 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 RD |
28836 | wxFont *arg2 = 0 ; |
28837 | wxColour const &arg3_defvalue = *wxBLACK ; | |
28838 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
28839 | wxGraphicsFont result; | |
72ef6efb RD |
28840 | void *argp1 = 0 ; |
28841 | int res1 = 0 ; | |
70d7cb34 RD |
28842 | void *argp2 = 0 ; |
28843 | int res2 = 0 ; | |
28844 | wxColour temp3 ; | |
28845 | PyObject * obj0 = 0 ; | |
28846 | PyObject * obj1 = 0 ; | |
28847 | PyObject * obj2 = 0 ; | |
28848 | char * kwnames[] = { | |
28849 | (char *) "self",(char *) "font",(char *) "col", NULL | |
28850 | }; | |
72ef6efb | 28851 | |
70d7cb34 RD |
28852 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
28853 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28854 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28856 | } |
28857 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
28858 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
28859 | if (!SWIG_IsOK(res2)) { | |
28860 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 28861 | } |
70d7cb34 RD |
28862 | if (!argp2) { |
28863 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 28864 | } |
70d7cb34 RD |
28865 | arg2 = reinterpret_cast< wxFont * >(argp2); |
28866 | if (obj2) { | |
28867 | { | |
28868 | arg3 = &temp3; | |
28869 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
28870 | } | |
72ef6efb | 28871 | } |
72ef6efb | 28872 | { |
70d7cb34 | 28873 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
28874 | if (PyErr_Occurred()) SWIG_fail; |
28875 | } | |
70d7cb34 | 28876 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28877 | return resultobj; |
28878 | fail: | |
28879 | return NULL; | |
28880 | } | |
28881 | ||
28882 | ||
70d7cb34 | 28883 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0a27f394 | 28884 | PyObject *resultobj = 0; |
70d7cb34 RD |
28885 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28886 | wxDouble arg2 = (wxDouble) 1.0 ; | |
28887 | wxDouble arg3 = (wxDouble) 0.0 ; | |
28888 | wxDouble arg4 = (wxDouble) 0.0 ; | |
28889 | wxDouble arg5 = (wxDouble) 1.0 ; | |
28890 | wxDouble arg6 = (wxDouble) 0.0 ; | |
28891 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 28892 | wxGraphicsMatrix result; |
0a27f394 RD |
28893 | void *argp1 = 0 ; |
28894 | int res1 = 0 ; | |
70d7cb34 RD |
28895 | double val2 ; |
28896 | int ecode2 = 0 ; | |
28897 | double val3 ; | |
28898 | int ecode3 = 0 ; | |
28899 | double val4 ; | |
28900 | int ecode4 = 0 ; | |
28901 | double val5 ; | |
28902 | int ecode5 = 0 ; | |
28903 | double val6 ; | |
28904 | int ecode6 = 0 ; | |
28905 | double val7 ; | |
28906 | int ecode7 = 0 ; | |
28907 | PyObject * obj0 = 0 ; | |
28908 | PyObject * obj1 = 0 ; | |
28909 | PyObject * obj2 = 0 ; | |
28910 | PyObject * obj3 = 0 ; | |
28911 | PyObject * obj4 = 0 ; | |
28912 | PyObject * obj5 = 0 ; | |
28913 | PyObject * obj6 = 0 ; | |
28914 | char * kwnames[] = { | |
28915 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
28916 | }; | |
0a27f394 | 28917 | |
70d7cb34 RD |
28918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
28919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
0a27f394 | 28920 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
0a27f394 | 28922 | } |
70d7cb34 RD |
28923 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28924 | if (obj1) { | |
28925 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28926 | if (!SWIG_IsOK(ecode2)) { | |
28927 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28928 | } | |
28929 | arg2 = static_cast< wxDouble >(val2); | |
0a27f394 | 28930 | } |
70d7cb34 RD |
28931 | if (obj2) { |
28932 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28933 | if (!SWIG_IsOK(ecode3)) { | |
28934 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28935 | } | |
28936 | arg3 = static_cast< wxDouble >(val3); | |
0a27f394 | 28937 | } |
70d7cb34 RD |
28938 | if (obj3) { |
28939 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28940 | if (!SWIG_IsOK(ecode4)) { | |
28941 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28942 | } | |
28943 | arg4 = static_cast< wxDouble >(val4); | |
0a27f394 | 28944 | } |
70d7cb34 RD |
28945 | if (obj4) { |
28946 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28947 | if (!SWIG_IsOK(ecode5)) { | |
28948 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28949 | } | |
28950 | arg5 = static_cast< wxDouble >(val5); | |
0a27f394 | 28951 | } |
70d7cb34 RD |
28952 | if (obj5) { |
28953 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28954 | if (!SWIG_IsOK(ecode6)) { | |
28955 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
28956 | } | |
28957 | arg6 = static_cast< wxDouble >(val6); | |
0a27f394 | 28958 | } |
70d7cb34 RD |
28959 | if (obj6) { |
28960 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
28961 | if (!SWIG_IsOK(ecode7)) { | |
28962 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
28963 | } | |
28964 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 28965 | } |
72ef6efb | 28966 | { |
5c8c7dd3 | 28967 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
28968 | if (PyErr_Occurred()) SWIG_fail; |
28969 | } | |
5c8c7dd3 | 28970 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28971 | return resultobj; |
28972 | fail: | |
28973 | return NULL; | |
28974 | } | |
28975 | ||
28976 | ||
28977 | SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28978 | PyObject *resultobj = 0; | |
28979 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28980 | void *argp1 = 0 ; | |
28981 | int res1 = 0 ; | |
28982 | PyObject *swig_obj[1] ; | |
28983 | ||
28984 | if (!args) SWIG_fail; | |
28985 | swig_obj[0] = args; | |
28986 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28987 | if (!SWIG_IsOK(res1)) { | |
28988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28989 | } | |
28990 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28991 | { | |
72ef6efb | 28992 | (arg1)->PushState(); |
72ef6efb RD |
28993 | if (PyErr_Occurred()) SWIG_fail; |
28994 | } | |
28995 | resultobj = SWIG_Py_Void(); | |
28996 | return resultobj; | |
28997 | fail: | |
28998 | return NULL; | |
28999 | } | |
29000 | ||
29001 | ||
29002 | SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29003 | PyObject *resultobj = 0; | |
29004 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29005 | void *argp1 = 0 ; | |
29006 | int res1 = 0 ; | |
29007 | PyObject *swig_obj[1] ; | |
29008 | ||
29009 | if (!args) SWIG_fail; | |
29010 | swig_obj[0] = args; | |
29011 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29012 | if (!SWIG_IsOK(res1)) { | |
29013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29014 | } | |
29015 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29016 | { | |
72ef6efb | 29017 | (arg1)->PopState(); |
72ef6efb RD |
29018 | if (PyErr_Occurred()) SWIG_fail; |
29019 | } | |
29020 | resultobj = SWIG_Py_Void(); | |
29021 | return resultobj; | |
29022 | fail: | |
29023 | return NULL; | |
29024 | } | |
29025 | ||
29026 | ||
0a27f394 | 29027 | SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29028 | PyObject *resultobj = 0; |
29029 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29030 | wxRegion *arg2 = 0 ; | |
29031 | void *argp1 = 0 ; | |
29032 | int res1 = 0 ; | |
29033 | void *argp2 = 0 ; | |
29034 | int res2 = 0 ; | |
29035 | PyObject * obj0 = 0 ; | |
29036 | PyObject * obj1 = 0 ; | |
29037 | char * kwnames[] = { | |
29038 | (char *) "self",(char *) "region", NULL | |
29039 | }; | |
29040 | ||
0a27f394 | 29041 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
29042 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29043 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 29044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29045 | } |
29046 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29047 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
29048 | if (!SWIG_IsOK(res2)) { | |
0a27f394 | 29049 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
29050 | } |
29051 | if (!argp2) { | |
0a27f394 | 29052 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
29053 | } |
29054 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
29055 | { | |
72ef6efb | 29056 | (arg1)->Clip((wxRegion const &)*arg2); |
72ef6efb RD |
29057 | if (PyErr_Occurred()) SWIG_fail; |
29058 | } | |
29059 | resultobj = SWIG_Py_Void(); | |
29060 | return resultobj; | |
29061 | fail: | |
29062 | return NULL; | |
29063 | } | |
29064 | ||
29065 | ||
0a27f394 RD |
29066 | SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29067 | PyObject *resultobj = 0; | |
29068 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29069 | wxDouble arg2 ; | |
29070 | wxDouble arg3 ; | |
29071 | wxDouble arg4 ; | |
29072 | wxDouble arg5 ; | |
29073 | void *argp1 = 0 ; | |
29074 | int res1 = 0 ; | |
29075 | double val2 ; | |
29076 | int ecode2 = 0 ; | |
29077 | double val3 ; | |
29078 | int ecode3 = 0 ; | |
29079 | double val4 ; | |
29080 | int ecode4 = 0 ; | |
29081 | double val5 ; | |
29082 | int ecode5 = 0 ; | |
29083 | PyObject * obj0 = 0 ; | |
29084 | PyObject * obj1 = 0 ; | |
29085 | PyObject * obj2 = 0 ; | |
29086 | PyObject * obj3 = 0 ; | |
29087 | PyObject * obj4 = 0 ; | |
29088 | char * kwnames[] = { | |
29089 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29090 | }; | |
29091 | ||
29092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29094 | if (!SWIG_IsOK(res1)) { | |
29095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29096 | } | |
29097 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29098 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29099 | if (!SWIG_IsOK(ecode2)) { | |
29100 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29101 | } | |
29102 | arg2 = static_cast< wxDouble >(val2); | |
29103 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29104 | if (!SWIG_IsOK(ecode3)) { | |
29105 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29106 | } | |
29107 | arg3 = static_cast< wxDouble >(val3); | |
29108 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29109 | if (!SWIG_IsOK(ecode4)) { | |
29110 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29111 | } | |
29112 | arg4 = static_cast< wxDouble >(val4); | |
29113 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29114 | if (!SWIG_IsOK(ecode5)) { | |
29115 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29116 | } | |
29117 | arg5 = static_cast< wxDouble >(val5); | |
29118 | { | |
29119 | (arg1)->Clip(arg2,arg3,arg4,arg5); | |
29120 | if (PyErr_Occurred()) SWIG_fail; | |
29121 | } | |
29122 | resultobj = SWIG_Py_Void(); | |
29123 | return resultobj; | |
29124 | fail: | |
29125 | return NULL; | |
29126 | } | |
29127 | ||
29128 | ||
29129 | SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29130 | PyObject *resultobj = 0; | |
29131 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29132 | void *argp1 = 0 ; | |
29133 | int res1 = 0 ; | |
29134 | PyObject *swig_obj[1] ; | |
29135 | ||
29136 | if (!args) SWIG_fail; | |
29137 | swig_obj[0] = args; | |
29138 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29139 | if (!SWIG_IsOK(res1)) { | |
29140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29141 | } | |
29142 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29143 | { | |
29144 | (arg1)->ResetClip(); | |
29145 | if (PyErr_Occurred()) SWIG_fail; | |
29146 | } | |
29147 | resultobj = SWIG_Py_Void(); | |
29148 | return resultobj; | |
29149 | fail: | |
29150 | return NULL; | |
29151 | } | |
29152 | ||
29153 | ||
29154 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29155 | PyObject *resultobj = 0; | |
29156 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29157 | void *result = 0 ; | |
29158 | void *argp1 = 0 ; | |
29159 | int res1 = 0 ; | |
29160 | PyObject *swig_obj[1] ; | |
29161 | ||
29162 | if (!args) SWIG_fail; | |
29163 | swig_obj[0] = args; | |
29164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29165 | if (!SWIG_IsOK(res1)) { | |
29166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29167 | } | |
29168 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29169 | { | |
29170 | result = (void *)(arg1)->GetNativeContext(); | |
29171 | if (PyErr_Occurred()) SWIG_fail; | |
29172 | } | |
29173 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
29174 | return resultobj; | |
29175 | fail: | |
29176 | return NULL; | |
29177 | } | |
29178 | ||
29179 | ||
c8aaaf9e RD |
29180 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29181 | PyObject *resultobj = 0; | |
29182 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29183 | int result; | |
29184 | void *argp1 = 0 ; | |
29185 | int res1 = 0 ; | |
29186 | PyObject *swig_obj[1] ; | |
29187 | ||
29188 | if (!args) SWIG_fail; | |
29189 | swig_obj[0] = args; | |
29190 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29191 | if (!SWIG_IsOK(res1)) { | |
29192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
29193 | } | |
29194 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29195 | { | |
29196 | result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction(); | |
29197 | if (PyErr_Occurred()) SWIG_fail; | |
29198 | } | |
29199 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29200 | return resultobj; | |
29201 | fail: | |
29202 | return NULL; | |
29203 | } | |
29204 | ||
29205 | ||
29206 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29207 | PyObject *resultobj = 0; | |
29208 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29209 | int arg2 ; | |
29210 | bool result; | |
29211 | void *argp1 = 0 ; | |
29212 | int res1 = 0 ; | |
29213 | int val2 ; | |
29214 | int ecode2 = 0 ; | |
29215 | PyObject * obj0 = 0 ; | |
29216 | PyObject * obj1 = 0 ; | |
29217 | char * kwnames[] = { | |
29218 | (char *) "self",(char *) "function", NULL | |
29219 | }; | |
29220 | ||
29221 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
29222 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29223 | if (!SWIG_IsOK(res1)) { | |
29224 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29225 | } | |
29226 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29227 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29228 | if (!SWIG_IsOK(ecode2)) { | |
29229 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
29230 | } | |
29231 | arg2 = static_cast< int >(val2); | |
29232 | { | |
29233 | result = (bool)(arg1)->SetLogicalFunction(arg2); | |
29234 | if (PyErr_Occurred()) SWIG_fail; | |
29235 | } | |
29236 | { | |
29237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29238 | } | |
29239 | return resultobj; | |
29240 | fail: | |
29241 | return NULL; | |
29242 | } | |
29243 | ||
29244 | ||
72ef6efb RD |
29245 | SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29246 | PyObject *resultobj = 0; | |
29247 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29248 | wxDouble arg2 ; | |
29249 | wxDouble arg3 ; | |
29250 | void *argp1 = 0 ; | |
29251 | int res1 = 0 ; | |
29252 | double val2 ; | |
29253 | int ecode2 = 0 ; | |
29254 | double val3 ; | |
29255 | int ecode3 = 0 ; | |
29256 | PyObject * obj0 = 0 ; | |
29257 | PyObject * obj1 = 0 ; | |
29258 | PyObject * obj2 = 0 ; | |
29259 | char * kwnames[] = { | |
29260 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
29261 | }; | |
29262 | ||
29263 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29264 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29265 | if (!SWIG_IsOK(res1)) { | |
29266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29267 | } | |
29268 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29269 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29270 | if (!SWIG_IsOK(ecode2)) { | |
29271 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29272 | } | |
29273 | arg2 = static_cast< wxDouble >(val2); | |
29274 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29275 | if (!SWIG_IsOK(ecode3)) { | |
29276 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29277 | } | |
29278 | arg3 = static_cast< wxDouble >(val3); | |
29279 | { | |
72ef6efb | 29280 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
29281 | if (PyErr_Occurred()) SWIG_fail; |
29282 | } | |
29283 | resultobj = SWIG_Py_Void(); | |
29284 | return resultobj; | |
29285 | fail: | |
29286 | return NULL; | |
29287 | } | |
29288 | ||
29289 | ||
29290 | SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29291 | PyObject *resultobj = 0; | |
29292 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29293 | wxDouble arg2 ; | |
29294 | wxDouble arg3 ; | |
29295 | void *argp1 = 0 ; | |
29296 | int res1 = 0 ; | |
29297 | double val2 ; | |
29298 | int ecode2 = 0 ; | |
29299 | double val3 ; | |
29300 | int ecode3 = 0 ; | |
29301 | PyObject * obj0 = 0 ; | |
29302 | PyObject * obj1 = 0 ; | |
29303 | PyObject * obj2 = 0 ; | |
29304 | char * kwnames[] = { | |
29305 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
29306 | }; | |
29307 | ||
29308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29310 | if (!SWIG_IsOK(res1)) { | |
29311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29312 | } | |
29313 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29314 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29315 | if (!SWIG_IsOK(ecode2)) { | |
29316 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29317 | } | |
29318 | arg2 = static_cast< wxDouble >(val2); | |
29319 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29320 | if (!SWIG_IsOK(ecode3)) { | |
29321 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29322 | } | |
29323 | arg3 = static_cast< wxDouble >(val3); | |
29324 | { | |
72ef6efb | 29325 | (arg1)->Scale(arg2,arg3); |
72ef6efb RD |
29326 | if (PyErr_Occurred()) SWIG_fail; |
29327 | } | |
29328 | resultobj = SWIG_Py_Void(); | |
29329 | return resultobj; | |
29330 | fail: | |
29331 | return NULL; | |
29332 | } | |
29333 | ||
29334 | ||
29335 | SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29336 | PyObject *resultobj = 0; | |
29337 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29338 | wxDouble arg2 ; | |
29339 | void *argp1 = 0 ; | |
29340 | int res1 = 0 ; | |
29341 | double val2 ; | |
29342 | int ecode2 = 0 ; | |
29343 | PyObject * obj0 = 0 ; | |
29344 | PyObject * obj1 = 0 ; | |
29345 | char * kwnames[] = { | |
29346 | (char *) "self",(char *) "angle", NULL | |
29347 | }; | |
29348 | ||
29349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; | |
29350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29351 | if (!SWIG_IsOK(res1)) { | |
29352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29353 | } | |
29354 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29355 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29356 | if (!SWIG_IsOK(ecode2)) { | |
29357 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29358 | } | |
29359 | arg2 = static_cast< wxDouble >(val2); | |
29360 | { | |
72ef6efb | 29361 | (arg1)->Rotate(arg2); |
72ef6efb RD |
29362 | if (PyErr_Occurred()) SWIG_fail; |
29363 | } | |
29364 | resultobj = SWIG_Py_Void(); | |
29365 | return resultobj; | |
29366 | fail: | |
29367 | return NULL; | |
29368 | } | |
29369 | ||
29370 | ||
5c8c7dd3 RD |
29371 | SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29372 | PyObject *resultobj = 0; | |
29373 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29374 | wxGraphicsMatrix *arg2 = 0 ; | |
29375 | void *argp1 = 0 ; | |
29376 | int res1 = 0 ; | |
29377 | void *argp2 = 0 ; | |
29378 | int res2 = 0 ; | |
29379 | PyObject * obj0 = 0 ; | |
29380 | PyObject * obj1 = 0 ; | |
29381 | char * kwnames[] = { | |
29382 | (char *) "self",(char *) "matrix", NULL | |
29383 | }; | |
29384 | ||
29385 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
29386 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29387 | if (!SWIG_IsOK(res1)) { | |
29388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29389 | } | |
29390 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29391 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
29392 | if (!SWIG_IsOK(res2)) { | |
29393 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29394 | } | |
29395 | if (!argp2) { | |
29396 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29397 | } | |
29398 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
29399 | { | |
29400 | (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2); | |
29401 | if (PyErr_Occurred()) SWIG_fail; | |
29402 | } | |
29403 | resultobj = SWIG_Py_Void(); | |
29404 | return resultobj; | |
29405 | fail: | |
29406 | return NULL; | |
29407 | } | |
29408 | ||
29409 | ||
29410 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29411 | PyObject *resultobj = 0; | |
29412 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29413 | wxGraphicsMatrix *arg2 = 0 ; | |
29414 | void *argp1 = 0 ; | |
29415 | int res1 = 0 ; | |
29416 | void *argp2 = 0 ; | |
29417 | int res2 = 0 ; | |
29418 | PyObject * obj0 = 0 ; | |
29419 | PyObject * obj1 = 0 ; | |
29420 | char * kwnames[] = { | |
29421 | (char *) "self",(char *) "matrix", NULL | |
29422 | }; | |
29423 | ||
29424 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
29425 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29426 | if (!SWIG_IsOK(res1)) { | |
29427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29428 | } | |
29429 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29430 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
29431 | if (!SWIG_IsOK(res2)) { | |
29432 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29433 | } | |
29434 | if (!argp2) { | |
29435 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29436 | } | |
29437 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
29438 | { | |
29439 | (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2); | |
29440 | if (PyErr_Occurred()) SWIG_fail; | |
29441 | } | |
29442 | resultobj = SWIG_Py_Void(); | |
29443 | return resultobj; | |
29444 | fail: | |
29445 | return NULL; | |
29446 | } | |
29447 | ||
29448 | ||
29449 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29450 | PyObject *resultobj = 0; | |
29451 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29452 | wxGraphicsMatrix result; | |
29453 | void *argp1 = 0 ; | |
29454 | int res1 = 0 ; | |
29455 | PyObject *swig_obj[1] ; | |
29456 | ||
29457 | if (!args) SWIG_fail; | |
29458 | swig_obj[0] = args; | |
29459 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29460 | if (!SWIG_IsOK(res1)) { | |
29461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
29462 | } | |
29463 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29464 | { | |
29465 | result = ((wxGraphicsContext const *)arg1)->GetTransform(); | |
29466 | if (PyErr_Occurred()) SWIG_fail; | |
29467 | } | |
29468 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); | |
29469 | return resultobj; | |
29470 | fail: | |
29471 | return NULL; | |
29472 | } | |
29473 | ||
29474 | ||
70d7cb34 RD |
29475 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
29476 | PyObject *resultobj = 0; | |
29477 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29478 | wxGraphicsPen *arg2 = 0 ; | |
29479 | void *argp1 = 0 ; | |
29480 | int res1 = 0 ; | |
29481 | void *argp2 = 0 ; | |
29482 | int res2 = 0 ; | |
29483 | ||
29484 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29485 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29486 | if (!SWIG_IsOK(res1)) { | |
29487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29488 | } | |
29489 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29490 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0); | |
29491 | if (!SWIG_IsOK(res2)) { | |
29492 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
29493 | } | |
29494 | if (!argp2) { | |
29495 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
29496 | } | |
29497 | arg2 = reinterpret_cast< wxGraphicsPen * >(argp2); | |
29498 | { | |
29499 | (arg1)->SetPen((wxGraphicsPen const &)*arg2); | |
29500 | if (PyErr_Occurred()) SWIG_fail; | |
29501 | } | |
29502 | resultobj = SWIG_Py_Void(); | |
29503 | return resultobj; | |
29504 | fail: | |
29505 | return NULL; | |
29506 | } | |
29507 | ||
29508 | ||
29509 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
29510 | PyObject *resultobj = 0; |
29511 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29512 | wxPen *arg2 = 0 ; | |
29513 | void *argp1 = 0 ; | |
29514 | int res1 = 0 ; | |
29515 | void *argp2 = 0 ; | |
29516 | int res2 = 0 ; | |
72ef6efb | 29517 | |
70d7cb34 RD |
29518 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29519 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29520 | if (!SWIG_IsOK(res1)) { |
29521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29522 | } | |
29523 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29524 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0); |
72ef6efb RD |
29525 | if (!SWIG_IsOK(res2)) { |
29526 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29527 | } | |
29528 | if (!argp2) { | |
29529 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29530 | } | |
29531 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
29532 | { | |
72ef6efb | 29533 | (arg1)->SetPen((wxPen const &)*arg2); |
72ef6efb RD |
29534 | if (PyErr_Occurred()) SWIG_fail; |
29535 | } | |
29536 | resultobj = SWIG_Py_Void(); | |
29537 | return resultobj; | |
29538 | fail: | |
29539 | return NULL; | |
29540 | } | |
29541 | ||
29542 | ||
70d7cb34 RD |
29543 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) { |
29544 | int argc; | |
29545 | PyObject *argv[3]; | |
29546 | ||
29547 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail; | |
29548 | --argc; | |
29549 | if (argc == 2) { | |
29550 | int _v = 0; | |
29551 | { | |
29552 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0); | |
29553 | _v = SWIG_CheckState(res); | |
29554 | } | |
29555 | if (!_v) goto check_1; | |
29556 | return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv); | |
29557 | } | |
29558 | check_1: | |
29559 | ||
29560 | if (argc == 2) { | |
29561 | return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv); | |
29562 | } | |
29563 | ||
29564 | fail: | |
29565 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'"); | |
29566 | return NULL; | |
29567 | } | |
29568 | ||
29569 | ||
29570 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29571 | PyObject *resultobj = 0; | |
29572 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29573 | wxGraphicsBrush *arg2 = 0 ; | |
29574 | void *argp1 = 0 ; | |
29575 | int res1 = 0 ; | |
29576 | void *argp2 = 0 ; | |
29577 | int res2 = 0 ; | |
29578 | ||
29579 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29580 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29581 | if (!SWIG_IsOK(res1)) { | |
29582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29583 | } | |
29584 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29585 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29586 | if (!SWIG_IsOK(res2)) { | |
29587 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
29588 | } | |
29589 | if (!argp2) { | |
29590 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
29591 | } | |
29592 | arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2); | |
29593 | { | |
29594 | (arg1)->SetBrush((wxGraphicsBrush const &)*arg2); | |
29595 | if (PyErr_Occurred()) SWIG_fail; | |
29596 | } | |
29597 | resultobj = SWIG_Py_Void(); | |
29598 | return resultobj; | |
29599 | fail: | |
29600 | return NULL; | |
29601 | } | |
29602 | ||
29603 | ||
29604 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
29605 | PyObject *resultobj = 0; |
29606 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29607 | wxBrush *arg2 = 0 ; | |
29608 | void *argp1 = 0 ; | |
29609 | int res1 = 0 ; | |
29610 | void *argp2 = 0 ; | |
29611 | int res2 = 0 ; | |
72ef6efb | 29612 | |
70d7cb34 RD |
29613 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29614 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29615 | if (!SWIG_IsOK(res1)) { |
29616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29617 | } | |
29618 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29619 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0); |
72ef6efb RD |
29620 | if (!SWIG_IsOK(res2)) { |
29621 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29622 | } | |
29623 | if (!argp2) { | |
29624 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29625 | } | |
29626 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
29627 | { | |
72ef6efb | 29628 | (arg1)->SetBrush((wxBrush const &)*arg2); |
72ef6efb RD |
29629 | if (PyErr_Occurred()) SWIG_fail; |
29630 | } | |
29631 | resultobj = SWIG_Py_Void(); | |
29632 | return resultobj; | |
29633 | fail: | |
29634 | return NULL; | |
29635 | } | |
29636 | ||
29637 | ||
70d7cb34 RD |
29638 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) { |
29639 | int argc; | |
29640 | PyObject *argv[3]; | |
72ef6efb | 29641 | |
70d7cb34 RD |
29642 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail; |
29643 | --argc; | |
29644 | if (argc == 2) { | |
29645 | int _v = 0; | |
29646 | { | |
29647 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0); | |
29648 | _v = SWIG_CheckState(res); | |
29649 | } | |
29650 | if (!_v) goto check_1; | |
29651 | return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv); | |
72ef6efb | 29652 | } |
70d7cb34 RD |
29653 | check_1: |
29654 | ||
29655 | if (argc == 2) { | |
29656 | return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv); | |
72ef6efb | 29657 | } |
70d7cb34 | 29658 | |
72ef6efb | 29659 | fail: |
70d7cb34 | 29660 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'"); |
72ef6efb RD |
29661 | return NULL; |
29662 | } | |
29663 | ||
29664 | ||
70d7cb34 | 29665 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
29666 | PyObject *resultobj = 0; |
29667 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 29668 | wxGraphicsFont *arg2 = 0 ; |
72ef6efb RD |
29669 | void *argp1 = 0 ; |
29670 | int res1 = 0 ; | |
70d7cb34 RD |
29671 | void *argp2 = 0 ; |
29672 | int res2 = 0 ; | |
72ef6efb | 29673 | |
70d7cb34 RD |
29674 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29675 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 29676 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29678 | } |
29679 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
29680 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0); |
29681 | if (!SWIG_IsOK(res2)) { | |
29682 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 29683 | } |
70d7cb34 RD |
29684 | if (!argp2) { |
29685 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 29686 | } |
70d7cb34 | 29687 | arg2 = reinterpret_cast< wxGraphicsFont * >(argp2); |
72ef6efb | 29688 | { |
70d7cb34 | 29689 | (arg1)->SetFont((wxGraphicsFont const &)*arg2); |
72ef6efb RD |
29690 | if (PyErr_Occurred()) SWIG_fail; |
29691 | } | |
29692 | resultobj = SWIG_Py_Void(); | |
29693 | return resultobj; | |
29694 | fail: | |
29695 | return NULL; | |
29696 | } | |
29697 | ||
29698 | ||
70d7cb34 | 29699 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
29700 | PyObject *resultobj = 0; |
29701 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29702 | wxFont *arg2 = 0 ; | |
70d7cb34 RD |
29703 | wxColour const &arg3_defvalue = *wxBLACK ; |
29704 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
72ef6efb RD |
29705 | void *argp1 = 0 ; |
29706 | int res1 = 0 ; | |
29707 | void *argp2 = 0 ; | |
29708 | int res2 = 0 ; | |
70d7cb34 | 29709 | wxColour temp3 ; |
72ef6efb | 29710 | |
70d7cb34 RD |
29711 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
29712 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29713 | if (!SWIG_IsOK(res1)) { |
29714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29715 | } | |
29716 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29717 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
72ef6efb RD |
29718 | if (!SWIG_IsOK(res2)) { |
29719 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
29720 | } | |
29721 | if (!argp2) { | |
29722 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
29723 | } | |
29724 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
70d7cb34 RD |
29725 | if (swig_obj[2]) { |
29726 | { | |
29727 | arg3 = &temp3; | |
29728 | if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail; | |
29729 | } | |
29730 | } | |
72ef6efb | 29731 | { |
70d7cb34 | 29732 | (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
29733 | if (PyErr_Occurred()) SWIG_fail; |
29734 | } | |
29735 | resultobj = SWIG_Py_Void(); | |
29736 | return resultobj; | |
29737 | fail: | |
29738 | return NULL; | |
29739 | } | |
29740 | ||
29741 | ||
70d7cb34 RD |
29742 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) { |
29743 | int argc; | |
29744 | PyObject *argv[4]; | |
72ef6efb | 29745 | |
70d7cb34 RD |
29746 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail; |
29747 | --argc; | |
29748 | if (argc == 2) { | |
29749 | int _v = 0; | |
29750 | { | |
29751 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0); | |
29752 | _v = SWIG_CheckState(res); | |
29753 | } | |
29754 | if (!_v) goto check_1; | |
29755 | return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv); | |
72ef6efb | 29756 | } |
70d7cb34 RD |
29757 | check_1: |
29758 | ||
29759 | if ((argc >= 2) && (argc <= 3)) { | |
29760 | return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv); | |
72ef6efb | 29761 | } |
70d7cb34 | 29762 | |
72ef6efb | 29763 | fail: |
70d7cb34 | 29764 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'"); |
72ef6efb RD |
29765 | return NULL; |
29766 | } | |
29767 | ||
29768 | ||
29769 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29770 | PyObject *resultobj = 0; | |
29771 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29772 | wxGraphicsPath *arg2 = 0 ; |
72ef6efb RD |
29773 | void *argp1 = 0 ; |
29774 | int res1 = 0 ; | |
29775 | void *argp2 = 0 ; | |
29776 | int res2 = 0 ; | |
29777 | PyObject * obj0 = 0 ; | |
29778 | PyObject * obj1 = 0 ; | |
29779 | char * kwnames[] = { | |
29780 | (char *) "self",(char *) "path", NULL | |
29781 | }; | |
29782 | ||
29783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
29784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29785 | if (!SWIG_IsOK(res1)) { | |
29786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29787 | } | |
29788 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29789 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29790 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29791 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29792 | } | |
29793 | if (!argp2) { | |
29794 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29795 | } |
29796 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29797 | { | |
5c8c7dd3 | 29798 | (arg1)->StrokePath((wxGraphicsPath const &)*arg2); |
72ef6efb RD |
29799 | if (PyErr_Occurred()) SWIG_fail; |
29800 | } | |
29801 | resultobj = SWIG_Py_Void(); | |
29802 | return resultobj; | |
29803 | fail: | |
29804 | return NULL; | |
29805 | } | |
29806 | ||
29807 | ||
29808 | SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29809 | PyObject *resultobj = 0; | |
29810 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29811 | wxGraphicsPath *arg2 = 0 ; |
8f514ab4 | 29812 | int arg3 = (int) wxODDEVEN_RULE ; |
72ef6efb RD |
29813 | void *argp1 = 0 ; |
29814 | int res1 = 0 ; | |
29815 | void *argp2 = 0 ; | |
29816 | int res2 = 0 ; | |
29817 | int val3 ; | |
29818 | int ecode3 = 0 ; | |
29819 | PyObject * obj0 = 0 ; | |
29820 | PyObject * obj1 = 0 ; | |
29821 | PyObject * obj2 = 0 ; | |
29822 | char * kwnames[] = { | |
29823 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
29824 | }; | |
29825 | ||
29826 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29827 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29828 | if (!SWIG_IsOK(res1)) { | |
29829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29830 | } | |
29831 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29832 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29833 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29834 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29835 | } | |
29836 | if (!argp2) { | |
29837 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29838 | } |
29839 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29840 | if (obj2) { | |
29841 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29842 | if (!SWIG_IsOK(ecode3)) { | |
29843 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'"); | |
29844 | } | |
29845 | arg3 = static_cast< int >(val3); | |
29846 | } | |
29847 | { | |
5c8c7dd3 | 29848 | (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
29849 | if (PyErr_Occurred()) SWIG_fail; |
29850 | } | |
29851 | resultobj = SWIG_Py_Void(); | |
29852 | return resultobj; | |
29853 | fail: | |
29854 | return NULL; | |
29855 | } | |
29856 | ||
29857 | ||
29858 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29859 | PyObject *resultobj = 0; | |
29860 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29861 | wxGraphicsPath *arg2 = 0 ; |
8f514ab4 | 29862 | int arg3 = (int) wxODDEVEN_RULE ; |
72ef6efb RD |
29863 | void *argp1 = 0 ; |
29864 | int res1 = 0 ; | |
29865 | void *argp2 = 0 ; | |
29866 | int res2 = 0 ; | |
29867 | int val3 ; | |
29868 | int ecode3 = 0 ; | |
29869 | PyObject * obj0 = 0 ; | |
29870 | PyObject * obj1 = 0 ; | |
29871 | PyObject * obj2 = 0 ; | |
29872 | char * kwnames[] = { | |
29873 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
29874 | }; | |
29875 | ||
29876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29878 | if (!SWIG_IsOK(res1)) { | |
29879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29880 | } | |
29881 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29882 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29883 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29884 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29885 | } | |
29886 | if (!argp2) { | |
29887 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29888 | } |
29889 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29890 | if (obj2) { | |
29891 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29892 | if (!SWIG_IsOK(ecode3)) { | |
29893 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'"); | |
29894 | } | |
29895 | arg3 = static_cast< int >(val3); | |
29896 | } | |
29897 | { | |
5c8c7dd3 | 29898 | (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
29899 | if (PyErr_Occurred()) SWIG_fail; |
29900 | } | |
29901 | resultobj = SWIG_Py_Void(); | |
29902 | return resultobj; | |
29903 | fail: | |
29904 | return NULL; | |
29905 | } | |
29906 | ||
29907 | ||
b39fe951 | 29908 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29909 | PyObject *resultobj = 0; |
29910 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29911 | wxString *arg2 = 0 ; | |
29912 | wxDouble arg3 ; | |
29913 | wxDouble arg4 ; | |
f89238b9 RD |
29914 | wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ; |
29915 | wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ; | |
72ef6efb RD |
29916 | void *argp1 = 0 ; |
29917 | int res1 = 0 ; | |
29918 | bool temp2 = false ; | |
29919 | double val3 ; | |
29920 | int ecode3 = 0 ; | |
29921 | double val4 ; | |
29922 | int ecode4 = 0 ; | |
f89238b9 RD |
29923 | void *argp5 = 0 ; |
29924 | int res5 = 0 ; | |
b39fe951 RD |
29925 | PyObject * obj0 = 0 ; |
29926 | PyObject * obj1 = 0 ; | |
29927 | PyObject * obj2 = 0 ; | |
29928 | PyObject * obj3 = 0 ; | |
f89238b9 | 29929 | PyObject * obj4 = 0 ; |
b39fe951 | 29930 | char * kwnames[] = { |
f89238b9 | 29931 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL |
b39fe951 | 29932 | }; |
72ef6efb | 29933 | |
f89238b9 | 29934 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
b39fe951 | 29935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb RD |
29936 | if (!SWIG_IsOK(res1)) { |
29937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29938 | } | |
29939 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29940 | { | |
b39fe951 | 29941 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
29942 | if (arg2 == NULL) SWIG_fail; |
29943 | temp2 = true; | |
29944 | } | |
b39fe951 | 29945 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb RD |
29946 | if (!SWIG_IsOK(ecode3)) { |
29947 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29948 | } | |
29949 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 29950 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb RD |
29951 | if (!SWIG_IsOK(ecode4)) { |
29952 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29953 | } | |
29954 | arg4 = static_cast< wxDouble >(val4); | |
f89238b9 RD |
29955 | if (obj4) { |
29956 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29957 | if (!SWIG_IsOK(res5)) { | |
29958 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29959 | } | |
29960 | if (!argp5) { | |
29961 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29962 | } | |
29963 | arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5); | |
29964 | } | |
72ef6efb | 29965 | { |
f89238b9 | 29966 | wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5); |
72ef6efb RD |
29967 | if (PyErr_Occurred()) SWIG_fail; |
29968 | } | |
29969 | resultobj = SWIG_Py_Void(); | |
29970 | { | |
29971 | if (temp2) | |
29972 | delete arg2; | |
29973 | } | |
29974 | return resultobj; | |
29975 | fail: | |
29976 | { | |
29977 | if (temp2) | |
29978 | delete arg2; | |
29979 | } | |
29980 | return NULL; | |
29981 | } | |
29982 | ||
29983 | ||
b39fe951 | 29984 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29985 | PyObject *resultobj = 0; |
29986 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29987 | wxString *arg2 = 0 ; | |
29988 | wxDouble arg3 ; | |
29989 | wxDouble arg4 ; | |
29990 | wxDouble arg5 ; | |
f89238b9 RD |
29991 | wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ; |
29992 | wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ; | |
72ef6efb RD |
29993 | void *argp1 = 0 ; |
29994 | int res1 = 0 ; | |
29995 | bool temp2 = false ; | |
29996 | double val3 ; | |
29997 | int ecode3 = 0 ; | |
29998 | double val4 ; | |
29999 | int ecode4 = 0 ; | |
30000 | double val5 ; | |
30001 | int ecode5 = 0 ; | |
f89238b9 RD |
30002 | void *argp6 = 0 ; |
30003 | int res6 = 0 ; | |
b39fe951 RD |
30004 | PyObject * obj0 = 0 ; |
30005 | PyObject * obj1 = 0 ; | |
30006 | PyObject * obj2 = 0 ; | |
30007 | PyObject * obj3 = 0 ; | |
30008 | PyObject * obj4 = 0 ; | |
f89238b9 | 30009 | PyObject * obj5 = 0 ; |
b39fe951 | 30010 | char * kwnames[] = { |
f89238b9 | 30011 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL |
b39fe951 | 30012 | }; |
72ef6efb | 30013 | |
f89238b9 | 30014 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
b39fe951 | 30015 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb | 30016 | if (!SWIG_IsOK(res1)) { |
b39fe951 | 30017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30018 | } |
30019 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30020 | { | |
b39fe951 | 30021 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
30022 | if (arg2 == NULL) SWIG_fail; |
30023 | temp2 = true; | |
30024 | } | |
b39fe951 | 30025 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 30026 | if (!SWIG_IsOK(ecode3)) { |
b39fe951 | 30027 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30028 | } |
30029 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 30030 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb | 30031 | if (!SWIG_IsOK(ecode4)) { |
b39fe951 | 30032 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30033 | } |
30034 | arg4 = static_cast< wxDouble >(val4); | |
b39fe951 | 30035 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
72ef6efb | 30036 | if (!SWIG_IsOK(ecode5)) { |
b39fe951 | 30037 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30038 | } |
30039 | arg5 = static_cast< wxDouble >(val5); | |
f89238b9 RD |
30040 | if (obj5) { |
30041 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
30042 | if (!SWIG_IsOK(res6)) { | |
30043 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
30044 | } | |
30045 | if (!argp6) { | |
30046 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
30047 | } | |
30048 | arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6); | |
30049 | } | |
72ef6efb | 30050 | { |
f89238b9 | 30051 | wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6); |
72ef6efb RD |
30052 | if (PyErr_Occurred()) SWIG_fail; |
30053 | } | |
30054 | resultobj = SWIG_Py_Void(); | |
30055 | { | |
30056 | if (temp2) | |
30057 | delete arg2; | |
30058 | } | |
30059 | return resultobj; | |
30060 | fail: | |
30061 | { | |
30062 | if (temp2) | |
30063 | delete arg2; | |
30064 | } | |
30065 | return NULL; | |
30066 | } | |
30067 | ||
30068 | ||
be68621e | 30069 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
30070 | PyObject *resultobj = 0; |
30071 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30072 | wxString *arg2 = 0 ; | |
30073 | wxDouble *arg3 = (wxDouble *) 0 ; | |
30074 | wxDouble *arg4 = (wxDouble *) 0 ; | |
30075 | wxDouble *arg5 = (wxDouble *) 0 ; | |
30076 | wxDouble *arg6 = (wxDouble *) 0 ; | |
30077 | void *argp1 = 0 ; | |
30078 | int res1 = 0 ; | |
30079 | bool temp2 = false ; | |
30080 | wxDouble temp3 ; | |
30081 | int res3 = SWIG_TMPOBJ ; | |
30082 | wxDouble temp4 ; | |
30083 | int res4 = SWIG_TMPOBJ ; | |
30084 | wxDouble temp5 ; | |
30085 | int res5 = SWIG_TMPOBJ ; | |
30086 | wxDouble temp6 ; | |
30087 | int res6 = SWIG_TMPOBJ ; | |
30088 | PyObject * obj0 = 0 ; | |
30089 | PyObject * obj1 = 0 ; | |
30090 | char * kwnames[] = { | |
30091 | (char *) "self",(char *) "text", NULL | |
30092 | }; | |
30093 | ||
30094 | arg3 = &temp3; | |
30095 | arg4 = &temp4; | |
30096 | arg5 = &temp5; | |
30097 | arg6 = &temp6; | |
be68621e | 30098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
30099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30100 | if (!SWIG_IsOK(res1)) { | |
be68621e | 30101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
30102 | } |
30103 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30104 | { | |
30105 | arg2 = wxString_in_helper(obj1); | |
30106 | if (arg2 == NULL) SWIG_fail; | |
30107 | temp2 = true; | |
30108 | } | |
30109 | { | |
72ef6efb | 30110 | ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
30111 | if (PyErr_Occurred()) SWIG_fail; |
30112 | } | |
30113 | resultobj = SWIG_Py_Void(); | |
30114 | if (SWIG_IsTmpObj(res3)) { | |
30115 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
30116 | } else { | |
30117 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
30118 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
30119 | } | |
30120 | if (SWIG_IsTmpObj(res4)) { | |
30121 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
30122 | } else { | |
30123 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
30124 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
30125 | } | |
30126 | if (SWIG_IsTmpObj(res5)) { | |
30127 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
30128 | } else { | |
30129 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
30130 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
30131 | } | |
30132 | if (SWIG_IsTmpObj(res6)) { | |
30133 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
30134 | } else { | |
30135 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
30136 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
30137 | } | |
30138 | { | |
30139 | if (temp2) | |
30140 | delete arg2; | |
30141 | } | |
30142 | return resultobj; | |
30143 | fail: | |
30144 | { | |
30145 | if (temp2) | |
30146 | delete arg2; | |
30147 | } | |
30148 | return NULL; | |
30149 | } | |
30150 | ||
30151 | ||
be68621e RD |
30152 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30153 | PyObject *resultobj = 0; | |
30154 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30155 | wxString *arg2 = 0 ; | |
30156 | PyObject *result = 0 ; | |
30157 | void *argp1 = 0 ; | |
30158 | int res1 = 0 ; | |
30159 | bool temp2 = false ; | |
30160 | PyObject * obj0 = 0 ; | |
30161 | PyObject * obj1 = 0 ; | |
30162 | char * kwnames[] = { | |
30163 | (char *) "self",(char *) "text", NULL | |
30164 | }; | |
30165 | ||
30166 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
30167 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30168 | if (!SWIG_IsOK(res1)) { | |
30169 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30170 | } | |
30171 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30172 | { | |
30173 | arg2 = wxString_in_helper(obj1); | |
30174 | if (arg2 == NULL) SWIG_fail; | |
30175 | temp2 = true; | |
30176 | } | |
30177 | { | |
30178 | result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2); | |
30179 | if (PyErr_Occurred()) SWIG_fail; | |
30180 | } | |
30181 | resultobj = result; | |
30182 | { | |
30183 | if (temp2) | |
30184 | delete arg2; | |
30185 | } | |
30186 | return resultobj; | |
30187 | fail: | |
30188 | { | |
30189 | if (temp2) | |
30190 | delete arg2; | |
30191 | } | |
30192 | return NULL; | |
30193 | } | |
30194 | ||
30195 | ||
72ef6efb RD |
30196 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30197 | PyObject *resultobj = 0; | |
30198 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30199 | wxString *arg2 = 0 ; | |
b39fe951 | 30200 | wxArrayDouble result; |
72ef6efb RD |
30201 | void *argp1 = 0 ; |
30202 | int res1 = 0 ; | |
30203 | bool temp2 = false ; | |
72ef6efb RD |
30204 | PyObject * obj0 = 0 ; |
30205 | PyObject * obj1 = 0 ; | |
72ef6efb | 30206 | char * kwnames[] = { |
b39fe951 | 30207 | (char *) "self",(char *) "text", NULL |
72ef6efb RD |
30208 | }; |
30209 | ||
b39fe951 | 30210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
30211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30212 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 30213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30214 | } |
30215 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30216 | { | |
30217 | arg2 = wxString_in_helper(obj1); | |
30218 | if (arg2 == NULL) SWIG_fail; | |
30219 | temp2 = true; | |
30220 | } | |
72ef6efb | 30221 | { |
b39fe951 | 30222 | result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
72ef6efb RD |
30223 | if (PyErr_Occurred()) SWIG_fail; |
30224 | } | |
b39fe951 RD |
30225 | { |
30226 | resultobj = wxArrayDouble2PyList_helper(result); | |
30227 | } | |
72ef6efb RD |
30228 | { |
30229 | if (temp2) | |
30230 | delete arg2; | |
30231 | } | |
30232 | return resultobj; | |
30233 | fail: | |
30234 | { | |
30235 | if (temp2) | |
30236 | delete arg2; | |
30237 | } | |
30238 | return NULL; | |
30239 | } | |
30240 | ||
30241 | ||
30242 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30243 | PyObject *resultobj = 0; | |
30244 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30245 | wxBitmap *arg2 = 0 ; | |
30246 | wxDouble arg3 ; | |
30247 | wxDouble arg4 ; | |
30248 | wxDouble arg5 ; | |
30249 | wxDouble arg6 ; | |
30250 | void *argp1 = 0 ; | |
30251 | int res1 = 0 ; | |
30252 | void *argp2 = 0 ; | |
30253 | int res2 = 0 ; | |
30254 | double val3 ; | |
30255 | int ecode3 = 0 ; | |
30256 | double val4 ; | |
30257 | int ecode4 = 0 ; | |
30258 | double val5 ; | |
30259 | int ecode5 = 0 ; | |
30260 | double val6 ; | |
30261 | int ecode6 = 0 ; | |
30262 | PyObject * obj0 = 0 ; | |
30263 | PyObject * obj1 = 0 ; | |
30264 | PyObject * obj2 = 0 ; | |
30265 | PyObject * obj3 = 0 ; | |
30266 | PyObject * obj4 = 0 ; | |
30267 | PyObject * obj5 = 0 ; | |
30268 | char * kwnames[] = { | |
30269 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30270 | }; | |
30271 | ||
30272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
30273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30274 | if (!SWIG_IsOK(res1)) { | |
30275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30276 | } | |
30277 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30278 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30279 | if (!SWIG_IsOK(res2)) { | |
30280 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30281 | } | |
30282 | if (!argp2) { | |
30283 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30284 | } | |
30285 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
30286 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30287 | if (!SWIG_IsOK(ecode3)) { | |
30288 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30289 | } | |
30290 | arg3 = static_cast< wxDouble >(val3); | |
30291 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30292 | if (!SWIG_IsOK(ecode4)) { | |
30293 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30294 | } | |
30295 | arg4 = static_cast< wxDouble >(val4); | |
30296 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30297 | if (!SWIG_IsOK(ecode5)) { | |
30298 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30299 | } | |
30300 | arg5 = static_cast< wxDouble >(val5); | |
30301 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30302 | if (!SWIG_IsOK(ecode6)) { | |
30303 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30304 | } | |
30305 | arg6 = static_cast< wxDouble >(val6); | |
30306 | { | |
72ef6efb | 30307 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
30308 | if (PyErr_Occurred()) SWIG_fail; |
30309 | } | |
30310 | resultobj = SWIG_Py_Void(); | |
30311 | return resultobj; | |
30312 | fail: | |
30313 | return NULL; | |
30314 | } | |
30315 | ||
30316 | ||
30317 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30318 | PyObject *resultobj = 0; | |
30319 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30320 | wxIcon *arg2 = 0 ; | |
30321 | wxDouble arg3 ; | |
30322 | wxDouble arg4 ; | |
30323 | wxDouble arg5 ; | |
30324 | wxDouble arg6 ; | |
30325 | void *argp1 = 0 ; | |
30326 | int res1 = 0 ; | |
30327 | void *argp2 = 0 ; | |
30328 | int res2 = 0 ; | |
30329 | double val3 ; | |
30330 | int ecode3 = 0 ; | |
30331 | double val4 ; | |
30332 | int ecode4 = 0 ; | |
30333 | double val5 ; | |
30334 | int ecode5 = 0 ; | |
70d7cb34 RD |
30335 | double val6 ; |
30336 | int ecode6 = 0 ; | |
30337 | PyObject * obj0 = 0 ; | |
30338 | PyObject * obj1 = 0 ; | |
30339 | PyObject * obj2 = 0 ; | |
30340 | PyObject * obj3 = 0 ; | |
30341 | PyObject * obj4 = 0 ; | |
30342 | PyObject * obj5 = 0 ; | |
30343 | char * kwnames[] = { | |
30344 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30345 | }; | |
30346 | ||
30347 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
30348 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30349 | if (!SWIG_IsOK(res1)) { | |
30350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30351 | } | |
30352 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30353 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
30354 | if (!SWIG_IsOK(res2)) { | |
30355 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30356 | } | |
30357 | if (!argp2) { | |
30358 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30359 | } | |
30360 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
30361 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30362 | if (!SWIG_IsOK(ecode3)) { | |
30363 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30364 | } | |
30365 | arg3 = static_cast< wxDouble >(val3); | |
30366 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30367 | if (!SWIG_IsOK(ecode4)) { | |
30368 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30369 | } | |
30370 | arg4 = static_cast< wxDouble >(val4); | |
30371 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30372 | if (!SWIG_IsOK(ecode5)) { | |
30373 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30374 | } | |
30375 | arg5 = static_cast< wxDouble >(val5); | |
30376 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30377 | if (!SWIG_IsOK(ecode6)) { | |
30378 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30379 | } | |
30380 | arg6 = static_cast< wxDouble >(val6); | |
30381 | { | |
30382 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6); | |
30383 | if (PyErr_Occurred()) SWIG_fail; | |
30384 | } | |
30385 | resultobj = SWIG_Py_Void(); | |
30386 | return resultobj; | |
30387 | fail: | |
30388 | return NULL; | |
30389 | } | |
30390 | ||
30391 | ||
30392 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30393 | PyObject *resultobj = 0; | |
30394 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30395 | wxDouble arg2 ; | |
30396 | wxDouble arg3 ; | |
30397 | wxDouble arg4 ; | |
30398 | wxDouble arg5 ; | |
30399 | void *argp1 = 0 ; | |
30400 | int res1 = 0 ; | |
30401 | double val2 ; | |
30402 | int ecode2 = 0 ; | |
30403 | double val3 ; | |
30404 | int ecode3 = 0 ; | |
30405 | double val4 ; | |
30406 | int ecode4 = 0 ; | |
30407 | double val5 ; | |
30408 | int ecode5 = 0 ; | |
30409 | PyObject * obj0 = 0 ; | |
30410 | PyObject * obj1 = 0 ; | |
30411 | PyObject * obj2 = 0 ; | |
30412 | PyObject * obj3 = 0 ; | |
30413 | PyObject * obj4 = 0 ; | |
30414 | char * kwnames[] = { | |
30415 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
30416 | }; | |
30417 | ||
30418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30419 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30420 | if (!SWIG_IsOK(res1)) { | |
30421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30422 | } | |
30423 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30424 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30425 | if (!SWIG_IsOK(ecode2)) { | |
30426 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30427 | } | |
30428 | arg2 = static_cast< wxDouble >(val2); | |
30429 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30430 | if (!SWIG_IsOK(ecode3)) { | |
30431 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30432 | } | |
30433 | arg3 = static_cast< wxDouble >(val3); | |
30434 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30435 | if (!SWIG_IsOK(ecode4)) { | |
30436 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30437 | } | |
30438 | arg4 = static_cast< wxDouble >(val4); | |
30439 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30440 | if (!SWIG_IsOK(ecode5)) { | |
30441 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30442 | } | |
30443 | arg5 = static_cast< wxDouble >(val5); | |
30444 | { | |
30445 | (arg1)->StrokeLine(arg2,arg3,arg4,arg5); | |
30446 | if (PyErr_Occurred()) SWIG_fail; | |
30447 | } | |
30448 | resultobj = SWIG_Py_Void(); | |
30449 | return resultobj; | |
30450 | fail: | |
30451 | return NULL; | |
30452 | } | |
30453 | ||
30454 | ||
30455 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30456 | PyObject *resultobj = 0; | |
30457 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30458 | size_t arg2 ; | |
30459 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
30460 | void *argp1 = 0 ; | |
30461 | int res1 = 0 ; | |
30462 | PyObject * obj0 = 0 ; | |
30463 | PyObject * obj1 = 0 ; | |
30464 | char * kwnames[] = { | |
30465 | (char *) "self",(char *) "points", NULL | |
30466 | }; | |
30467 | ||
30468 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail; | |
30469 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30470 | if (!SWIG_IsOK(res1)) { | |
30471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30472 | } | |
30473 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30474 | { | |
30475 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
30476 | if (arg3 == NULL) SWIG_fail; | |
30477 | } | |
30478 | { | |
30479 | (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3); | |
30480 | if (PyErr_Occurred()) SWIG_fail; | |
30481 | } | |
30482 | resultobj = SWIG_Py_Void(); | |
30483 | { | |
30484 | if (arg3) delete [] arg3; | |
30485 | } | |
30486 | return resultobj; | |
30487 | fail: | |
30488 | { | |
30489 | if (arg3) delete [] arg3; | |
30490 | } | |
30491 | return NULL; | |
30492 | } | |
30493 | ||
30494 | ||
30495 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30496 | PyObject *resultobj = 0; | |
30497 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30498 | PyObject *arg2 = (PyObject *) 0 ; | |
30499 | PyObject *arg3 = (PyObject *) 0 ; | |
30500 | void *argp1 = 0 ; | |
30501 | int res1 = 0 ; | |
30502 | PyObject * obj0 = 0 ; | |
30503 | PyObject * obj1 = 0 ; | |
30504 | PyObject * obj2 = 0 ; | |
30505 | char * kwnames[] = { | |
30506 | (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL | |
30507 | }; | |
30508 | ||
30509 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30510 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30511 | if (!SWIG_IsOK(res1)) { | |
30512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30513 | } | |
30514 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30515 | arg2 = obj1; | |
30516 | arg3 = obj2; | |
30517 | { | |
30518 | wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3); | |
30519 | if (PyErr_Occurred()) SWIG_fail; | |
30520 | } | |
30521 | resultobj = SWIG_Py_Void(); | |
30522 | return resultobj; | |
30523 | fail: | |
30524 | return NULL; | |
30525 | } | |
30526 | ||
30527 | ||
30528 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30529 | PyObject *resultobj = 0; | |
30530 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30531 | size_t arg2 ; | |
30532 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
8f514ab4 | 30533 | int arg4 = (int) wxODDEVEN_RULE ; |
70d7cb34 RD |
30534 | void *argp1 = 0 ; |
30535 | int res1 = 0 ; | |
30536 | int val4 ; | |
30537 | int ecode4 = 0 ; | |
30538 | PyObject * obj0 = 0 ; | |
30539 | PyObject * obj1 = 0 ; | |
30540 | PyObject * obj2 = 0 ; | |
30541 | char * kwnames[] = { | |
30542 | (char *) "self",(char *) "points",(char *) "fillStyle", NULL | |
30543 | }; | |
30544 | ||
30545 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30546 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30547 | if (!SWIG_IsOK(res1)) { | |
30548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30549 | } | |
30550 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30551 | { | |
30552 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
30553 | if (arg3 == NULL) SWIG_fail; | |
30554 | } | |
30555 | if (obj2) { | |
30556 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
30557 | if (!SWIG_IsOK(ecode4)) { | |
30558 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
30559 | } | |
30560 | arg4 = static_cast< int >(val4); | |
30561 | } | |
30562 | { | |
30563 | (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4); | |
30564 | if (PyErr_Occurred()) SWIG_fail; | |
30565 | } | |
30566 | resultobj = SWIG_Py_Void(); | |
30567 | { | |
30568 | if (arg3) delete [] arg3; | |
30569 | } | |
30570 | return resultobj; | |
30571 | fail: | |
30572 | { | |
30573 | if (arg3) delete [] arg3; | |
30574 | } | |
30575 | return NULL; | |
30576 | } | |
30577 | ||
30578 | ||
30579 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30580 | PyObject *resultobj = 0; | |
30581 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30582 | wxDouble arg2 ; | |
30583 | wxDouble arg3 ; | |
30584 | wxDouble arg4 ; | |
30585 | wxDouble arg5 ; | |
30586 | void *argp1 = 0 ; | |
30587 | int res1 = 0 ; | |
30588 | double val2 ; | |
30589 | int ecode2 = 0 ; | |
30590 | double val3 ; | |
30591 | int ecode3 = 0 ; | |
30592 | double val4 ; | |
30593 | int ecode4 = 0 ; | |
30594 | double val5 ; | |
30595 | int ecode5 = 0 ; | |
30596 | PyObject * obj0 = 0 ; | |
30597 | PyObject * obj1 = 0 ; | |
30598 | PyObject * obj2 = 0 ; | |
30599 | PyObject * obj3 = 0 ; | |
30600 | PyObject * obj4 = 0 ; | |
30601 | char * kwnames[] = { | |
30602 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30603 | }; | |
30604 | ||
30605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30607 | if (!SWIG_IsOK(res1)) { | |
30608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30609 | } | |
30610 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30611 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30612 | if (!SWIG_IsOK(ecode2)) { | |
30613 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30614 | } | |
30615 | arg2 = static_cast< wxDouble >(val2); | |
30616 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30617 | if (!SWIG_IsOK(ecode3)) { | |
30618 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30619 | } | |
30620 | arg3 = static_cast< wxDouble >(val3); | |
30621 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30622 | if (!SWIG_IsOK(ecode4)) { | |
30623 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30624 | } | |
30625 | arg4 = static_cast< wxDouble >(val4); | |
30626 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30627 | if (!SWIG_IsOK(ecode5)) { | |
30628 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30629 | } | |
30630 | arg5 = static_cast< wxDouble >(val5); | |
30631 | { | |
30632 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
30633 | if (PyErr_Occurred()) SWIG_fail; | |
30634 | } | |
30635 | resultobj = SWIG_Py_Void(); | |
30636 | return resultobj; | |
30637 | fail: | |
30638 | return NULL; | |
30639 | } | |
30640 | ||
30641 | ||
30642 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30643 | PyObject *resultobj = 0; | |
30644 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30645 | wxDouble arg2 ; | |
30646 | wxDouble arg3 ; | |
30647 | wxDouble arg4 ; | |
30648 | wxDouble arg5 ; | |
30649 | void *argp1 = 0 ; | |
30650 | int res1 = 0 ; | |
30651 | double val2 ; | |
30652 | int ecode2 = 0 ; | |
30653 | double val3 ; | |
30654 | int ecode3 = 0 ; | |
30655 | double val4 ; | |
30656 | int ecode4 = 0 ; | |
30657 | double val5 ; | |
30658 | int ecode5 = 0 ; | |
72ef6efb RD |
30659 | PyObject * obj0 = 0 ; |
30660 | PyObject * obj1 = 0 ; | |
30661 | PyObject * obj2 = 0 ; | |
30662 | PyObject * obj3 = 0 ; | |
30663 | PyObject * obj4 = 0 ; | |
72ef6efb | 30664 | char * kwnames[] = { |
70d7cb34 | 30665 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
72ef6efb RD |
30666 | }; |
30667 | ||
70d7cb34 | 30668 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
72ef6efb RD |
30669 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30670 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 30671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30672 | } |
30673 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
30674 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30675 | if (!SWIG_IsOK(ecode2)) { | |
30676 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30677 | } | |
30678 | arg2 = static_cast< wxDouble >(val2); | |
72ef6efb RD |
30679 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
30680 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30681 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30682 | } |
30683 | arg3 = static_cast< wxDouble >(val3); | |
30684 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30685 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30686 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30687 | } |
30688 | arg4 = static_cast< wxDouble >(val4); | |
30689 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30690 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30691 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30692 | } |
30693 | arg5 = static_cast< wxDouble >(val5); | |
72ef6efb | 30694 | { |
70d7cb34 | 30695 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
72ef6efb RD |
30696 | if (PyErr_Occurred()) SWIG_fail; |
30697 | } | |
30698 | resultobj = SWIG_Py_Void(); | |
30699 | return resultobj; | |
30700 | fail: | |
30701 | return NULL; | |
30702 | } | |
30703 | ||
30704 | ||
70d7cb34 | 30705 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
30706 | PyObject *resultobj = 0; |
30707 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30708 | wxDouble arg2 ; | |
30709 | wxDouble arg3 ; | |
30710 | wxDouble arg4 ; | |
30711 | wxDouble arg5 ; | |
70d7cb34 | 30712 | wxDouble arg6 ; |
72ef6efb RD |
30713 | void *argp1 = 0 ; |
30714 | int res1 = 0 ; | |
30715 | double val2 ; | |
30716 | int ecode2 = 0 ; | |
30717 | double val3 ; | |
30718 | int ecode3 = 0 ; | |
30719 | double val4 ; | |
30720 | int ecode4 = 0 ; | |
30721 | double val5 ; | |
30722 | int ecode5 = 0 ; | |
70d7cb34 RD |
30723 | double val6 ; |
30724 | int ecode6 = 0 ; | |
72ef6efb RD |
30725 | PyObject * obj0 = 0 ; |
30726 | PyObject * obj1 = 0 ; | |
30727 | PyObject * obj2 = 0 ; | |
30728 | PyObject * obj3 = 0 ; | |
30729 | PyObject * obj4 = 0 ; | |
70d7cb34 | 30730 | PyObject * obj5 = 0 ; |
72ef6efb | 30731 | char * kwnames[] = { |
70d7cb34 | 30732 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
72ef6efb RD |
30733 | }; |
30734 | ||
70d7cb34 | 30735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
72ef6efb RD |
30736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30737 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 30738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30739 | } |
30740 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30741 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30742 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30743 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30744 | } |
30745 | arg2 = static_cast< wxDouble >(val2); | |
30746 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30747 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30748 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30749 | } |
30750 | arg3 = static_cast< wxDouble >(val3); | |
30751 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30752 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30753 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30754 | } |
30755 | arg4 = static_cast< wxDouble >(val4); | |
30756 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30757 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30758 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30759 | } |
30760 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 RD |
30761 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
30762 | if (!SWIG_IsOK(ecode6)) { | |
30763 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30764 | } | |
30765 | arg6 = static_cast< wxDouble >(val6); | |
72ef6efb | 30766 | { |
70d7cb34 | 30767 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
30768 | if (PyErr_Occurred()) SWIG_fail; |
30769 | } | |
30770 | resultobj = SWIG_Py_Void(); | |
30771 | return resultobj; | |
30772 | fail: | |
30773 | return NULL; | |
30774 | } | |
30775 | ||
30776 | ||
70d7cb34 | 30777 | SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
30778 | PyObject *resultobj = 0; |
30779 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 30780 | bool result; |
72ef6efb RD |
30781 | void *argp1 = 0 ; |
30782 | int res1 = 0 ; | |
70d7cb34 | 30783 | PyObject *swig_obj[1] ; |
72ef6efb | 30784 | |
70d7cb34 RD |
30785 | if (!args) SWIG_fail; |
30786 | swig_obj[0] = args; | |
30787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 30788 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
30790 | } |
30791 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 | 30792 | { |
70d7cb34 RD |
30793 | result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset(); |
30794 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb | 30795 | } |
72ef6efb | 30796 | { |
70d7cb34 RD |
30797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
30798 | } | |
30799 | return resultobj; | |
30800 | fail: | |
30801 | return NULL; | |
30802 | } | |
30803 | ||
30804 | ||
30805 | SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30806 | PyObject *obj; | |
30807 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30808 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj)); | |
30809 | return SWIG_Py_Void(); | |
30810 | } | |
30811 | ||
30812 | SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30813 | PyObject *resultobj = 0; | |
30814 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30815 | void *argp1 = 0 ; | |
30816 | int res1 = 0 ; | |
30817 | PyObject *swig_obj[1] ; | |
30818 | ||
30819 | if (!args) SWIG_fail; | |
30820 | swig_obj[0] = args; | |
30821 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 ); | |
30822 | if (!SWIG_IsOK(res1)) { | |
30823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30824 | } | |
30825 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30826 | { | |
30827 | delete arg1; | |
30828 | ||
72ef6efb RD |
30829 | if (PyErr_Occurred()) SWIG_fail; |
30830 | } | |
30831 | resultobj = SWIG_Py_Void(); | |
70d7cb34 RD |
30832 | return resultobj; |
30833 | fail: | |
30834 | return NULL; | |
30835 | } | |
30836 | ||
30837 | ||
30838 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30839 | PyObject *resultobj = 0; | |
30840 | wxGraphicsRenderer *result = 0 ; | |
30841 | ||
30842 | if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail; | |
b39fe951 | 30843 | { |
70d7cb34 RD |
30844 | result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer(); |
30845 | if (PyErr_Occurred()) SWIG_fail; | |
30846 | } | |
30847 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30848 | return resultobj; | |
30849 | fail: | |
30850 | return NULL; | |
30851 | } | |
30852 | ||
30853 | ||
30854 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30855 | PyObject *resultobj = 0; | |
30856 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30857 | wxWindowDC *arg2 = 0 ; | |
30858 | wxGraphicsContext *result = 0 ; | |
30859 | void *argp1 = 0 ; | |
30860 | int res1 = 0 ; | |
30861 | void *argp2 = 0 ; | |
30862 | int res2 = 0 ; | |
30863 | ||
30864 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30865 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30866 | if (!SWIG_IsOK(res1)) { | |
30867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30868 | } | |
30869 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30870 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
30871 | if (!SWIG_IsOK(res2)) { | |
30872 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
30873 | } | |
30874 | if (!argp2) { | |
30875 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
30876 | } | |
30877 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30878 | { | |
30879 | result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2); | |
30880 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 30881 | } |
70d7cb34 | 30882 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30883 | return resultobj; |
30884 | fail: | |
70d7cb34 RD |
30885 | return NULL; |
30886 | } | |
30887 | ||
30888 | ||
30889 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30890 | PyObject *resultobj = 0; | |
30891 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30892 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30893 | wxGraphicsContext *result = 0 ; | |
30894 | void *argp1 = 0 ; | |
30895 | int res1 = 0 ; | |
30896 | void *argp2 = 0 ; | |
30897 | int res2 = 0 ; | |
30898 | ||
30899 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30901 | if (!SWIG_IsOK(res1)) { | |
30902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30903 | } | |
30904 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30905 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30906 | if (!SWIG_IsOK(res2)) { | |
30907 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
30908 | } | |
30909 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
b39fe951 | 30910 | { |
70d7cb34 RD |
30911 | result = (wxGraphicsContext *)(arg1)->CreateContext(arg2); |
30912 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 30913 | } |
70d7cb34 RD |
30914 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
30915 | return resultobj; | |
30916 | fail: | |
72ef6efb RD |
30917 | return NULL; |
30918 | } | |
30919 | ||
30920 | ||
70d7cb34 RD |
30921 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) { |
30922 | int argc; | |
30923 | PyObject *argv[3]; | |
30924 | ||
30925 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail; | |
30926 | --argc; | |
30927 | if (argc == 2) { | |
30928 | int _v = 0; | |
30929 | { | |
30930 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0); | |
30931 | _v = SWIG_CheckState(res); | |
30932 | } | |
30933 | if (!_v) goto check_1; | |
30934 | return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv); | |
30935 | } | |
30936 | check_1: | |
30937 | ||
30938 | if (argc == 2) { | |
30939 | return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv); | |
30940 | } | |
30941 | ||
30942 | fail: | |
30943 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'"); | |
30944 | return NULL; | |
30945 | } | |
30946 | ||
30947 | ||
f89238b9 RD |
30948 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30949 | PyObject *resultobj = 0; | |
30950 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30951 | wxGraphicsContext *result = 0 ; | |
30952 | void *argp1 = 0 ; | |
30953 | int res1 = 0 ; | |
30954 | PyObject *swig_obj[1] ; | |
30955 | ||
30956 | if (!args) SWIG_fail; | |
30957 | swig_obj[0] = args; | |
30958 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30959 | if (!SWIG_IsOK(res1)) { | |
30960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30961 | } | |
30962 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30963 | { | |
30964 | result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext(); | |
30965 | if (PyErr_Occurred()) SWIG_fail; | |
30966 | } | |
30967 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30968 | return resultobj; | |
30969 | fail: | |
30970 | return NULL; | |
30971 | } | |
30972 | ||
30973 | ||
70d7cb34 | 30974 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30975 | PyObject *resultobj = 0; |
70d7cb34 RD |
30976 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30977 | void *arg2 = (void *) 0 ; | |
30978 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
30979 | void *argp1 = 0 ; |
30980 | int res1 = 0 ; | |
70d7cb34 | 30981 | int res2 ; |
b39fe951 RD |
30982 | PyObject * obj0 = 0 ; |
30983 | PyObject * obj1 = 0 ; | |
b39fe951 | 30984 | char * kwnames[] = { |
70d7cb34 | 30985 | (char *) "self",(char *) "context", NULL |
b39fe951 | 30986 | }; |
72ef6efb | 30987 | |
70d7cb34 RD |
30988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail; |
30989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30990 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
30991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
30992 | } | |
30993 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30994 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
30995 | if (!SWIG_IsOK(res2)) { | |
30996 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb | 30997 | } |
72ef6efb | 30998 | { |
70d7cb34 | 30999 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2); |
72ef6efb RD |
31000 | if (PyErr_Occurred()) SWIG_fail; |
31001 | } | |
70d7cb34 | 31002 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31003 | return resultobj; |
31004 | fail: | |
31005 | return NULL; | |
31006 | } | |
31007 | ||
31008 | ||
70d7cb34 | 31009 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 31010 | PyObject *resultobj = 0; |
70d7cb34 RD |
31011 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
31012 | void *arg2 = (void *) 0 ; | |
31013 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
31014 | void *argp1 = 0 ; |
31015 | int res1 = 0 ; | |
70d7cb34 | 31016 | int res2 ; |
72ef6efb RD |
31017 | PyObject * obj0 = 0 ; |
31018 | PyObject * obj1 = 0 ; | |
72ef6efb | 31019 | char * kwnames[] = { |
70d7cb34 | 31020 | (char *) "self",(char *) "window", NULL |
72ef6efb RD |
31021 | }; |
31022 | ||
70d7cb34 RD |
31023 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail; |
31024 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31025 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 31026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 31027 | } |
70d7cb34 RD |
31028 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
31029 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
31030 | if (!SWIG_IsOK(res2)) { | |
31031 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb RD |
31032 | } |
31033 | { | |
70d7cb34 | 31034 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2); |
72ef6efb RD |
31035 | if (PyErr_Occurred()) SWIG_fail; |
31036 | } | |
70d7cb34 | 31037 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31038 | return resultobj; |
31039 | fail: | |
70d7cb34 RD |
31040 | return NULL; |
31041 | } | |
31042 | ||
31043 | ||
31044 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31045 | PyObject *resultobj = 0; | |
31046 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
5c8c7dd3 | 31047 | wxGraphicsPath result; |
70d7cb34 RD |
31048 | void *argp1 = 0 ; |
31049 | int res1 = 0 ; | |
31050 | PyObject *swig_obj[1] ; | |
31051 | ||
31052 | if (!args) SWIG_fail; | |
31053 | swig_obj[0] = args; | |
31054 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31055 | if (!SWIG_IsOK(res1)) { | |
31056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31057 | } | |
31058 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
b39fe951 | 31059 | { |
5c8c7dd3 | 31060 | result = (arg1)->CreatePath(); |
70d7cb34 | 31061 | if (PyErr_Occurred()) SWIG_fail; |
b39fe951 | 31062 | } |
5c8c7dd3 | 31063 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
31064 | return resultobj; |
31065 | fail: | |
72ef6efb RD |
31066 | return NULL; |
31067 | } | |
31068 | ||
31069 | ||
70d7cb34 | 31070 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 31071 | PyObject *resultobj = 0; |
70d7cb34 RD |
31072 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
31073 | wxDouble arg2 = (wxDouble) 1.0 ; | |
31074 | wxDouble arg3 = (wxDouble) 0.0 ; | |
31075 | wxDouble arg4 = (wxDouble) 0.0 ; | |
31076 | wxDouble arg5 = (wxDouble) 1.0 ; | |
31077 | wxDouble arg6 = (wxDouble) 0.0 ; | |
31078 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 31079 | wxGraphicsMatrix result; |
72ef6efb RD |
31080 | void *argp1 = 0 ; |
31081 | int res1 = 0 ; | |
31082 | double val2 ; | |
31083 | int ecode2 = 0 ; | |
31084 | double val3 ; | |
31085 | int ecode3 = 0 ; | |
31086 | double val4 ; | |
31087 | int ecode4 = 0 ; | |
31088 | double val5 ; | |
31089 | int ecode5 = 0 ; | |
70d7cb34 RD |
31090 | double val6 ; |
31091 | int ecode6 = 0 ; | |
31092 | double val7 ; | |
31093 | int ecode7 = 0 ; | |
72ef6efb RD |
31094 | PyObject * obj0 = 0 ; |
31095 | PyObject * obj1 = 0 ; | |
31096 | PyObject * obj2 = 0 ; | |
31097 | PyObject * obj3 = 0 ; | |
31098 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
31099 | PyObject * obj5 = 0 ; |
31100 | PyObject * obj6 = 0 ; | |
72ef6efb | 31101 | char * kwnames[] = { |
70d7cb34 | 31102 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL |
72ef6efb RD |
31103 | }; |
31104 | ||
70d7cb34 RD |
31105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
31106 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31107 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
31108 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
31109 | } | |
31110 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31111 | if (obj1) { | |
31112 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
31113 | if (!SWIG_IsOK(ecode2)) { | |
31114 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
31115 | } | |
31116 | arg2 = static_cast< wxDouble >(val2); | |
31117 | } | |
31118 | if (obj2) { | |
31119 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
31120 | if (!SWIG_IsOK(ecode3)) { | |
31121 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
31122 | } | |
31123 | arg3 = static_cast< wxDouble >(val3); | |
31124 | } | |
31125 | if (obj3) { | |
31126 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
31127 | if (!SWIG_IsOK(ecode4)) { | |
31128 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
31129 | } | |
31130 | arg4 = static_cast< wxDouble >(val4); | |
31131 | } | |
31132 | if (obj4) { | |
31133 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
31134 | if (!SWIG_IsOK(ecode5)) { | |
31135 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
31136 | } | |
31137 | arg5 = static_cast< wxDouble >(val5); | |
31138 | } | |
31139 | if (obj5) { | |
31140 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
31141 | if (!SWIG_IsOK(ecode6)) { | |
31142 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
31143 | } | |
31144 | arg6 = static_cast< wxDouble >(val6); | |
31145 | } | |
31146 | if (obj6) { | |
31147 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
31148 | if (!SWIG_IsOK(ecode7)) { | |
31149 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
31150 | } | |
31151 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 31152 | } |
72ef6efb | 31153 | { |
5c8c7dd3 | 31154 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
31155 | if (PyErr_Occurred()) SWIG_fail; |
31156 | } | |
5c8c7dd3 | 31157 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31158 | return resultobj; |
31159 | fail: | |
31160 | return NULL; | |
31161 | } | |
31162 | ||
31163 | ||
70d7cb34 | 31164 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 31165 | PyObject *resultobj = 0; |
70d7cb34 RD |
31166 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
31167 | wxPen *arg2 = 0 ; | |
31168 | wxGraphicsPen result; | |
31169 | void *argp1 = 0 ; | |
31170 | int res1 = 0 ; | |
31171 | void *argp2 = 0 ; | |
31172 | int res2 = 0 ; | |
31173 | PyObject * obj0 = 0 ; | |
31174 | PyObject * obj1 = 0 ; | |
31175 | char * kwnames[] = { | |
31176 | (char *) "self",(char *) "pen", NULL | |
31177 | }; | |
31178 | ||
31179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; | |
31180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31181 | if (!SWIG_IsOK(res1)) { | |
31182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31183 | } | |
31184 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31185 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
31186 | if (!SWIG_IsOK(res2)) { | |
31187 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
31188 | } | |
31189 | if (!argp2) { | |
31190 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
31191 | } | |
31192 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
31193 | { | |
31194 | result = (arg1)->CreatePen((wxPen const &)*arg2); | |
31195 | if (PyErr_Occurred()) SWIG_fail; | |
31196 | } | |
31197 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); | |
31198 | return resultobj; | |
31199 | fail: | |
31200 | return NULL; | |
31201 | } | |
31202 | ||
31203 | ||
31204 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31205 | PyObject *resultobj = 0; | |
31206 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
31207 | wxBrush *arg2 = 0 ; | |
31208 | wxGraphicsBrush result; | |
31209 | void *argp1 = 0 ; | |
31210 | int res1 = 0 ; | |
31211 | void *argp2 = 0 ; | |
31212 | int res2 = 0 ; | |
31213 | PyObject * obj0 = 0 ; | |
31214 | PyObject * obj1 = 0 ; | |
31215 | char * kwnames[] = { | |
31216 | (char *) "self",(char *) "brush", NULL | |
31217 | }; | |
31218 | ||
31219 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
31220 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31221 | if (!SWIG_IsOK(res1)) { | |
31222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31223 | } | |
31224 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31225 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
31226 | if (!SWIG_IsOK(res2)) { | |
31227 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
31228 | } | |
31229 | if (!argp2) { | |
31230 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
31231 | } | |
31232 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
31233 | { | |
31234 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); | |
31235 | if (PyErr_Occurred()) SWIG_fail; | |
31236 | } | |
31237 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); | |
31238 | return resultobj; | |
31239 | fail: | |
31240 | return NULL; | |
31241 | } | |
31242 | ||
31243 | ||
31244 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31245 | PyObject *resultobj = 0; | |
31246 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
72ef6efb RD |
31247 | wxDouble arg2 ; |
31248 | wxDouble arg3 ; | |
31249 | wxDouble arg4 ; | |
31250 | wxDouble arg5 ; | |
70d7cb34 RD |
31251 | wxColour *arg6 = 0 ; |
31252 | wxColour *arg7 = 0 ; | |
31253 | wxGraphicsBrush result; | |
72ef6efb RD |
31254 | void *argp1 = 0 ; |
31255 | int res1 = 0 ; | |
31256 | double val2 ; | |
31257 | int ecode2 = 0 ; | |
31258 | double val3 ; | |
31259 | int ecode3 = 0 ; | |
31260 | double val4 ; | |
31261 | int ecode4 = 0 ; | |
31262 | double val5 ; | |
31263 | int ecode5 = 0 ; | |
70d7cb34 RD |
31264 | wxColour temp6 ; |
31265 | wxColour temp7 ; | |
72ef6efb RD |
31266 | PyObject * obj0 = 0 ; |
31267 | PyObject * obj1 = 0 ; | |
31268 | PyObject * obj2 = 0 ; | |
31269 | PyObject * obj3 = 0 ; | |
31270 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
31271 | PyObject * obj5 = 0 ; |
31272 | PyObject * obj6 = 0 ; | |
72ef6efb | 31273 | char * kwnames[] = { |
70d7cb34 | 31274 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
31275 | }; |
31276 | ||
70d7cb34 RD |
31277 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
31278 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31279 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 31280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 31281 | } |
70d7cb34 | 31282 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
31283 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
31284 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 31285 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
31286 | } |
31287 | arg2 = static_cast< wxDouble >(val2); | |
31288 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
31289 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 31290 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
31291 | } |
31292 | arg3 = static_cast< wxDouble >(val3); | |
31293 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
31294 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 31295 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
31296 | } |
31297 | arg4 = static_cast< wxDouble >(val4); | |
31298 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
31299 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 31300 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
31301 | } |
31302 | arg5 = static_cast< wxDouble >(val5); | |
31303 | { | |
70d7cb34 RD |
31304 | arg6 = &temp6; |
31305 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
31306 | } | |
31307 | { | |
31308 | arg7 = &temp7; | |
31309 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
31310 | } | |
31311 | { | |
31312 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); | |
72ef6efb RD |
31313 | if (PyErr_Occurred()) SWIG_fail; |
31314 | } | |
70d7cb34 | 31315 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31316 | return resultobj; |
31317 | fail: | |
31318 | return NULL; | |
31319 | } | |
31320 | ||
31321 | ||
70d7cb34 | 31322 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 31323 | PyObject *resultobj = 0; |
70d7cb34 | 31324 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
72ef6efb RD |
31325 | wxDouble arg2 ; |
31326 | wxDouble arg3 ; | |
31327 | wxDouble arg4 ; | |
31328 | wxDouble arg5 ; | |
31329 | wxDouble arg6 ; | |
70d7cb34 RD |
31330 | wxColour *arg7 = 0 ; |
31331 | wxColour *arg8 = 0 ; | |
31332 | wxGraphicsBrush result; | |
72ef6efb RD |
31333 | void *argp1 = 0 ; |
31334 | int res1 = 0 ; | |
31335 | double val2 ; | |
31336 | int ecode2 = 0 ; | |
31337 | double val3 ; | |
31338 | int ecode3 = 0 ; | |
31339 | double val4 ; | |
31340 | int ecode4 = 0 ; | |
31341 | double val5 ; | |
31342 | int ecode5 = 0 ; | |
31343 | double val6 ; | |
31344 | int ecode6 = 0 ; | |
70d7cb34 RD |
31345 | wxColour temp7 ; |
31346 | wxColour temp8 ; | |
72ef6efb RD |
31347 | PyObject * obj0 = 0 ; |
31348 | PyObject * obj1 = 0 ; | |
31349 | PyObject * obj2 = 0 ; | |
31350 | PyObject * obj3 = 0 ; | |
31351 | PyObject * obj4 = 0 ; | |
31352 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
31353 | PyObject * obj6 = 0 ; |
31354 | PyObject * obj7 = 0 ; | |
72ef6efb | 31355 | char * kwnames[] = { |
70d7cb34 | 31356 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
31357 | }; |
31358 | ||
70d7cb34 RD |
31359 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
31360 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31361 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 31362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 31363 | } |
70d7cb34 | 31364 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
31365 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
31366 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 31367 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
31368 | } |
31369 | arg2 = static_cast< wxDouble >(val2); | |
31370 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
31371 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 31372 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
31373 | } |
31374 | arg3 = static_cast< wxDouble >(val3); | |
31375 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
31376 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 31377 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
31378 | } |
31379 | arg4 = static_cast< wxDouble >(val4); | |
31380 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
31381 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 31382 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
31383 | } |
31384 | arg5 = static_cast< wxDouble >(val5); | |
31385 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
31386 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 31387 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
31388 | } |
31389 | arg6 = static_cast< wxDouble >(val6); | |
31390 | { | |
70d7cb34 RD |
31391 | arg7 = &temp7; |
31392 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
31393 | } | |
31394 | { | |
31395 | arg8 = &temp8; | |
31396 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
31397 | } | |
31398 | { | |
31399 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
31400 | if (PyErr_Occurred()) SWIG_fail; |
31401 | } | |
70d7cb34 | 31402 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31403 | return resultobj; |
31404 | fail: | |
31405 | return NULL; | |
31406 | } | |
31407 | ||
31408 | ||
70d7cb34 RD |
31409 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31410 | PyObject *resultobj = 0; | |
31411 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
31412 | wxFont *arg2 = 0 ; | |
31413 | wxColour const &arg3_defvalue = *wxBLACK ; | |
31414 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
31415 | wxGraphicsFont result; | |
31416 | void *argp1 = 0 ; | |
31417 | int res1 = 0 ; | |
31418 | void *argp2 = 0 ; | |
31419 | int res2 = 0 ; | |
31420 | wxColour temp3 ; | |
31421 | PyObject * obj0 = 0 ; | |
31422 | PyObject * obj1 = 0 ; | |
31423 | PyObject * obj2 = 0 ; | |
31424 | char * kwnames[] = { | |
31425 | (char *) "self",(char *) "font",(char *) "col", NULL | |
31426 | }; | |
31427 | ||
31428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31430 | if (!SWIG_IsOK(res1)) { | |
31431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31432 | } | |
31433 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31434 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
31435 | if (!SWIG_IsOK(res2)) { | |
31436 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
31437 | } | |
31438 | if (!argp2) { | |
31439 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
31440 | } | |
31441 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
31442 | if (obj2) { | |
31443 | { | |
31444 | arg3 = &temp3; | |
31445 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31446 | } | |
31447 | } | |
31448 | { | |
31449 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); | |
31450 | if (PyErr_Occurred()) SWIG_fail; | |
31451 | } | |
31452 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); | |
31453 | return resultobj; | |
31454 | fail: | |
31455 | return NULL; | |
31456 | } | |
31457 | ||
31458 | ||
31459 | SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
72ef6efb RD |
31460 | PyObject *obj; |
31461 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
70d7cb34 | 31462 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj)); |
72ef6efb RD |
31463 | return SWIG_Py_Void(); |
31464 | } | |
31465 | ||
48a0c021 | 31466 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
31467 | PyObject *resultobj = 0; |
31468 | wxWindowDC *arg1 = 0 ; | |
31469 | wxGCDC *result = 0 ; | |
31470 | void *argp1 = 0 ; | |
31471 | int res1 = 0 ; | |
72ef6efb | 31472 | |
48a0c021 RD |
31473 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; |
31474 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
72ef6efb RD |
31475 | if (!SWIG_IsOK(res1)) { |
31476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
31477 | } | |
31478 | if (!argp1) { | |
31479 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
31480 | } | |
31481 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
31482 | { | |
31483 | if (!wxPyCheckForApp()) SWIG_fail; | |
31484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31485 | result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1); | |
31486 | wxPyEndAllowThreads(__tstate); | |
31487 | if (PyErr_Occurred()) SWIG_fail; | |
31488 | } | |
31489 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
31490 | return resultobj; | |
31491 | fail: | |
31492 | return NULL; | |
31493 | } | |
31494 | ||
31495 | ||
48a0c021 RD |
31496 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
31497 | PyObject *resultobj = 0; | |
31498 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31499 | wxGCDC *result = 0 ; | |
31500 | void *argp1 = 0 ; | |
31501 | int res1 = 0 ; | |
31502 | ||
31503 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
31504 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31505 | if (!SWIG_IsOK(res1)) { | |
31506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
31507 | } | |
31508 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
31509 | { | |
31510 | if (!wxPyCheckForApp()) SWIG_fail; | |
31511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31512 | result = (wxGCDC *)new wxGCDC(arg1); | |
31513 | wxPyEndAllowThreads(__tstate); | |
31514 | if (PyErr_Occurred()) SWIG_fail; | |
31515 | } | |
31516 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
31517 | return resultobj; | |
31518 | fail: | |
31519 | return NULL; | |
31520 | } | |
31521 | ||
31522 | ||
31523 | SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) { | |
31524 | int argc; | |
31525 | PyObject *argv[2]; | |
31526 | ||
31527 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail; | |
31528 | --argc; | |
31529 | if (argc == 1) { | |
31530 | int _v = 0; | |
31531 | { | |
31532 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
31533 | _v = SWIG_CheckState(res); | |
31534 | } | |
31535 | if (!_v) goto check_1; | |
31536 | return _wrap_new_GCDC__SWIG_0(self, argc, argv); | |
31537 | } | |
31538 | check_1: | |
31539 | ||
31540 | if (argc == 1) { | |
31541 | return _wrap_new_GCDC__SWIG_1(self, argc, argv); | |
31542 | } | |
31543 | ||
31544 | fail: | |
31545 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'"); | |
31546 | return NULL; | |
31547 | } | |
31548 | ||
31549 | ||
72ef6efb RD |
31550 | SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31551 | PyObject *resultobj = 0; | |
31552 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31553 | void *argp1 = 0 ; | |
31554 | int res1 = 0 ; | |
31555 | PyObject *swig_obj[1] ; | |
31556 | ||
31557 | if (!args) SWIG_fail; | |
31558 | swig_obj[0] = args; | |
31559 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 ); | |
31560 | if (!SWIG_IsOK(res1)) { | |
31561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
31562 | } | |
31563 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31564 | { | |
72ef6efb RD |
31565 | delete arg1; |
31566 | ||
72ef6efb RD |
31567 | if (PyErr_Occurred()) SWIG_fail; |
31568 | } | |
31569 | resultobj = SWIG_Py_Void(); | |
31570 | return resultobj; | |
31571 | fail: | |
31572 | return NULL; | |
31573 | } | |
31574 | ||
31575 | ||
0a27f394 | 31576 | SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
31577 | PyObject *resultobj = 0; |
31578 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31579 | wxGraphicsContext *result = 0 ; | |
31580 | void *argp1 = 0 ; | |
31581 | int res1 = 0 ; | |
31582 | PyObject *swig_obj[1] ; | |
31583 | ||
31584 | if (!args) SWIG_fail; | |
31585 | swig_obj[0] = args; | |
31586 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
31587 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 31588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); |
72ef6efb RD |
31589 | } |
31590 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31591 | { | |
0a27f394 | 31592 | result = (wxGraphicsContext *)(arg1)->GetGraphicsContext(); |
72ef6efb RD |
31593 | if (PyErr_Occurred()) SWIG_fail; |
31594 | } | |
31595 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
31596 | return resultobj; | |
31597 | fail: | |
31598 | return NULL; | |
31599 | } | |
31600 | ||
31601 | ||
0a27f394 RD |
31602 | SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31603 | PyObject *resultobj = 0; | |
31604 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31605 | wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ; | |
31606 | void *argp1 = 0 ; | |
31607 | int res1 = 0 ; | |
31608 | void *argp2 = 0 ; | |
31609 | int res2 = 0 ; | |
31610 | PyObject * obj0 = 0 ; | |
31611 | PyObject * obj1 = 0 ; | |
31612 | char * kwnames[] = { | |
31613 | (char *) "self",(char *) "ctx", NULL | |
31614 | }; | |
31615 | ||
31616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail; | |
31617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
31618 | if (!SWIG_IsOK(res1)) { | |
31619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
31620 | } | |
31621 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31622 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
31623 | if (!SWIG_IsOK(res2)) { | |
31624 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'"); | |
31625 | } | |
31626 | arg2 = reinterpret_cast< wxGraphicsContext * >(argp2); | |
31627 | { | |
31628 | (arg1)->SetGraphicsContext(arg2); | |
31629 | if (PyErr_Occurred()) SWIG_fail; | |
31630 | } | |
31631 | resultobj = SWIG_Py_Void(); | |
31632 | return resultobj; | |
31633 | fail: | |
31634 | return NULL; | |
31635 | } | |
31636 | ||
31637 | ||
72ef6efb RD |
31638 | SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31639 | PyObject *obj; | |
31640 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31641 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj)); | |
31642 | return SWIG_Py_Void(); | |
31643 | } | |
31644 | ||
31645 | SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31646 | return SWIG_Python_InitShadowInstance(args); | |
31647 | } | |
31648 | ||
b39fe951 RD |
31649 | SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31650 | PyObject *resultobj = 0; | |
31651 | wxOverlay *result = 0 ; | |
31652 | ||
31653 | if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail; | |
31654 | { | |
31655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31656 | result = (wxOverlay *)new wxOverlay(); | |
31657 | wxPyEndAllowThreads(__tstate); | |
31658 | if (PyErr_Occurred()) SWIG_fail; | |
31659 | } | |
31660 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 ); | |
31661 | return resultobj; | |
31662 | fail: | |
31663 | return NULL; | |
31664 | } | |
31665 | ||
31666 | ||
31667 | SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31668 | PyObject *resultobj = 0; | |
31669 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
31670 | void *argp1 = 0 ; | |
31671 | int res1 = 0 ; | |
31672 | PyObject *swig_obj[1] ; | |
31673 | ||
31674 | if (!args) SWIG_fail; | |
31675 | swig_obj[0] = args; | |
31676 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 ); | |
31677 | if (!SWIG_IsOK(res1)) { | |
31678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
31679 | } | |
31680 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31681 | { | |
31682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31683 | delete arg1; | |
31684 | ||
31685 | wxPyEndAllowThreads(__tstate); | |
31686 | if (PyErr_Occurred()) SWIG_fail; | |
31687 | } | |
31688 | resultobj = SWIG_Py_Void(); | |
31689 | return resultobj; | |
31690 | fail: | |
31691 | return NULL; | |
31692 | } | |
31693 | ||
31694 | ||
31695 | SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31696 | PyObject *resultobj = 0; | |
31697 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
31698 | void *argp1 = 0 ; | |
31699 | int res1 = 0 ; | |
31700 | PyObject *swig_obj[1] ; | |
31701 | ||
31702 | if (!args) SWIG_fail; | |
31703 | swig_obj[0] = args; | |
31704 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 ); | |
31705 | if (!SWIG_IsOK(res1)) { | |
31706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
31707 | } | |
31708 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31709 | { | |
31710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31711 | (arg1)->Reset(); | |
31712 | wxPyEndAllowThreads(__tstate); | |
31713 | if (PyErr_Occurred()) SWIG_fail; | |
31714 | } | |
31715 | resultobj = SWIG_Py_Void(); | |
31716 | return resultobj; | |
31717 | fail: | |
31718 | return NULL; | |
31719 | } | |
31720 | ||
31721 | ||
31722 | SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31723 | PyObject *obj; | |
31724 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31725 | SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj)); | |
31726 | return SWIG_Py_Void(); | |
31727 | } | |
31728 | ||
31729 | SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31730 | return SWIG_Python_InitShadowInstance(args); | |
31731 | } | |
31732 | ||
31733 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
31734 | PyObject *resultobj = 0; | |
31735 | wxOverlay *arg1 = 0 ; | |
31736 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
31737 | int arg3 ; | |
31738 | int arg4 ; | |
31739 | int arg5 ; | |
31740 | int arg6 ; | |
31741 | wxDCOverlay *result = 0 ; | |
31742 | void *argp1 = 0 ; | |
31743 | int res1 = 0 ; | |
31744 | void *argp2 = 0 ; | |
31745 | int res2 = 0 ; | |
31746 | int val3 ; | |
31747 | int ecode3 = 0 ; | |
31748 | int val4 ; | |
31749 | int ecode4 = 0 ; | |
31750 | int val5 ; | |
31751 | int ecode5 = 0 ; | |
31752 | int val6 ; | |
31753 | int ecode6 = 0 ; | |
31754 | ||
31755 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; | |
31756 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
31757 | if (!SWIG_IsOK(res1)) { | |
31758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31759 | } | |
31760 | if (!argp1) { | |
31761 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31762 | } | |
31763 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31764 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
31765 | if (!SWIG_IsOK(res2)) { | |
31766 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
31767 | } | |
31768 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
31769 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
31770 | if (!SWIG_IsOK(ecode3)) { | |
31771 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'"); | |
31772 | } | |
31773 | arg3 = static_cast< int >(val3); | |
31774 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
31775 | if (!SWIG_IsOK(ecode4)) { | |
31776 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'"); | |
31777 | } | |
31778 | arg4 = static_cast< int >(val4); | |
31779 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
31780 | if (!SWIG_IsOK(ecode5)) { | |
31781 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'"); | |
31782 | } | |
31783 | arg5 = static_cast< int >(val5); | |
31784 | ecode6 = SWIG_AsVal_int(swig_obj[5], &val6); | |
31785 | if (!SWIG_IsOK(ecode6)) { | |
31786 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'"); | |
31787 | } | |
31788 | arg6 = static_cast< int >(val6); | |
31789 | { | |
31790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31791 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6); | |
31792 | wxPyEndAllowThreads(__tstate); | |
31793 | if (PyErr_Occurred()) SWIG_fail; | |
31794 | } | |
31795 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
31796 | return resultobj; | |
31797 | fail: | |
31798 | return NULL; | |
31799 | } | |
31800 | ||
31801 | ||
31802 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
31803 | PyObject *resultobj = 0; | |
31804 | wxOverlay *arg1 = 0 ; | |
31805 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
31806 | wxDCOverlay *result = 0 ; | |
31807 | void *argp1 = 0 ; | |
31808 | int res1 = 0 ; | |
31809 | void *argp2 = 0 ; | |
31810 | int res2 = 0 ; | |
31811 | ||
31812 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
31813 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
31814 | if (!SWIG_IsOK(res1)) { | |
31815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31816 | } | |
31817 | if (!argp1) { | |
31818 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31819 | } | |
31820 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31821 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
31822 | if (!SWIG_IsOK(res2)) { | |
31823 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
31824 | } | |
31825 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
31826 | { | |
31827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31828 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2); | |
31829 | wxPyEndAllowThreads(__tstate); | |
31830 | if (PyErr_Occurred()) SWIG_fail; | |
31831 | } | |
31832 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
31833 | return resultobj; | |
31834 | fail: | |
31835 | return NULL; | |
31836 | } | |
31837 | ||
31838 | ||
31839 | SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) { | |
31840 | int argc; | |
31841 | PyObject *argv[7]; | |
31842 | ||
31843 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail; | |
31844 | --argc; | |
31845 | if (argc == 2) { | |
31846 | return _wrap_new_DCOverlay__SWIG_1(self, argc, argv); | |
31847 | } | |
31848 | if (argc == 6) { | |
31849 | return _wrap_new_DCOverlay__SWIG_0(self, argc, argv); | |
31850 | } | |
31851 | ||
31852 | fail: | |
31853 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'"); | |
31854 | return NULL; | |
31855 | } | |
31856 | ||
31857 | ||
31858 | SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31859 | PyObject *resultobj = 0; | |
31860 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
31861 | void *argp1 = 0 ; | |
31862 | int res1 = 0 ; | |
31863 | PyObject *swig_obj[1] ; | |
31864 | ||
31865 | if (!args) SWIG_fail; | |
31866 | swig_obj[0] = args; | |
31867 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 ); | |
31868 | if (!SWIG_IsOK(res1)) { | |
31869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
31870 | } | |
31871 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
31872 | { | |
31873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31874 | delete arg1; | |
31875 | ||
31876 | wxPyEndAllowThreads(__tstate); | |
31877 | if (PyErr_Occurred()) SWIG_fail; | |
31878 | } | |
31879 | resultobj = SWIG_Py_Void(); | |
31880 | return resultobj; | |
31881 | fail: | |
31882 | return NULL; | |
31883 | } | |
31884 | ||
31885 | ||
31886 | SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31887 | PyObject *resultobj = 0; | |
31888 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
31889 | void *argp1 = 0 ; | |
31890 | int res1 = 0 ; | |
31891 | PyObject *swig_obj[1] ; | |
31892 | ||
31893 | if (!args) SWIG_fail; | |
31894 | swig_obj[0] = args; | |
31895 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 ); | |
31896 | if (!SWIG_IsOK(res1)) { | |
31897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
31898 | } | |
31899 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
31900 | { | |
31901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31902 | (arg1)->Clear(); | |
31903 | wxPyEndAllowThreads(__tstate); | |
31904 | if (PyErr_Occurred()) SWIG_fail; | |
31905 | } | |
31906 | resultobj = SWIG_Py_Void(); | |
31907 | return resultobj; | |
31908 | fail: | |
31909 | return NULL; | |
31910 | } | |
31911 | ||
31912 | ||
31913 | SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31914 | PyObject *obj; | |
31915 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31916 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj)); | |
31917 | return SWIG_Py_Void(); | |
31918 | } | |
31919 | ||
31920 | SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31921 | return SWIG_Python_InitShadowInstance(args); | |
31922 | } | |
31923 | ||
72ef6efb RD |
31924 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31925 | PyObject *resultobj = 0; | |
31926 | int arg1 ; | |
31927 | int arg2 ; | |
31928 | int arg3 = (int) true ; | |
31929 | int arg4 = (int) 1 ; | |
31930 | wxImageList *result = 0 ; | |
31931 | int val1 ; | |
31932 | int ecode1 = 0 ; | |
31933 | int val2 ; | |
31934 | int ecode2 = 0 ; | |
31935 | int val3 ; | |
31936 | int ecode3 = 0 ; | |
31937 | int val4 ; | |
31938 | int ecode4 = 0 ; | |
31939 | PyObject * obj0 = 0 ; | |
31940 | PyObject * obj1 = 0 ; | |
31941 | PyObject * obj2 = 0 ; | |
31942 | PyObject * obj3 = 0 ; | |
31943 | char * kwnames[] = { | |
31944 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
31945 | }; | |
31946 | ||
31947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31948 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31949 | if (!SWIG_IsOK(ecode1)) { | |
31950 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
31951 | } | |
31952 | arg1 = static_cast< int >(val1); | |
31953 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31954 | if (!SWIG_IsOK(ecode2)) { | |
31955 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
31956 | } | |
31957 | arg2 = static_cast< int >(val2); | |
31958 | if (obj2) { | |
31959 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31960 | if (!SWIG_IsOK(ecode3)) { | |
31961 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
31962 | } | |
31963 | arg3 = static_cast< int >(val3); | |
31964 | } | |
31965 | if (obj3) { | |
31966 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31967 | if (!SWIG_IsOK(ecode4)) { | |
31968 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
31969 | } | |
31970 | arg4 = static_cast< int >(val4); | |
31971 | } | |
31972 | { | |
31973 | if (!wxPyCheckForApp()) SWIG_fail; | |
31974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31975 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
31976 | wxPyEndAllowThreads(__tstate); | |
31977 | if (PyErr_Occurred()) SWIG_fail; | |
31978 | } | |
e02c0a13 | 31979 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 ); |
72ef6efb RD |
31980 | return resultobj; |
31981 | fail: | |
31982 | return NULL; | |
31983 | } | |
31984 | ||
31985 | ||
31986 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31987 | PyObject *resultobj = 0; | |
31988 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31989 | void *argp1 = 0 ; | |
31990 | int res1 = 0 ; | |
31991 | PyObject *swig_obj[1] ; | |
31992 | ||
31993 | if (!args) SWIG_fail; | |
31994 | swig_obj[0] = args; | |
31995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
31996 | if (!SWIG_IsOK(res1)) { | |
31997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31998 | } | |
31999 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32000 | { | |
32001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32002 | delete arg1; | |
32003 | ||
32004 | wxPyEndAllowThreads(__tstate); | |
32005 | if (PyErr_Occurred()) SWIG_fail; | |
32006 | } | |
32007 | resultobj = SWIG_Py_Void(); | |
32008 | return resultobj; | |
32009 | fail: | |
32010 | return NULL; | |
32011 | } | |
32012 | ||
32013 | ||
32014 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32015 | PyObject *resultobj = 0; | |
32016 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32017 | wxBitmap *arg2 = 0 ; | |
32018 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
32019 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
32020 | int result; | |
32021 | void *argp1 = 0 ; | |
32022 | int res1 = 0 ; | |
32023 | void *argp2 = 0 ; | |
32024 | int res2 = 0 ; | |
32025 | void *argp3 = 0 ; | |
32026 | int res3 = 0 ; | |
32027 | PyObject * obj0 = 0 ; | |
32028 | PyObject * obj1 = 0 ; | |
32029 | PyObject * obj2 = 0 ; | |
32030 | char * kwnames[] = { | |
32031 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
32032 | }; | |
32033 | ||
32034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32036 | if (!SWIG_IsOK(res1)) { | |
32037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32038 | } | |
32039 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32040 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32041 | if (!SWIG_IsOK(res2)) { | |
32042 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
32043 | } | |
32044 | if (!argp2) { | |
32045 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
32046 | } | |
32047 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
32048 | if (obj2) { | |
32049 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32050 | if (!SWIG_IsOK(res3)) { | |
32051 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
32052 | } | |
32053 | if (!argp3) { | |
32054 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
32055 | } | |
32056 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
32057 | } | |
32058 | { | |
32059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32060 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
32061 | wxPyEndAllowThreads(__tstate); | |
32062 | if (PyErr_Occurred()) SWIG_fail; | |
32063 | } | |
32064 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32065 | return resultobj; | |
32066 | fail: | |
32067 | return NULL; | |
32068 | } | |
32069 | ||
32070 | ||
32071 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32072 | PyObject *resultobj = 0; | |
32073 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32074 | wxBitmap *arg2 = 0 ; | |
32075 | wxColour *arg3 = 0 ; | |
32076 | int result; | |
32077 | void *argp1 = 0 ; | |
32078 | int res1 = 0 ; | |
32079 | void *argp2 = 0 ; | |
32080 | int res2 = 0 ; | |
32081 | wxColour temp3 ; | |
32082 | PyObject * obj0 = 0 ; | |
32083 | PyObject * obj1 = 0 ; | |
32084 | PyObject * obj2 = 0 ; | |
32085 | char * kwnames[] = { | |
32086 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
32087 | }; | |
32088 | ||
32089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32090 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32091 | if (!SWIG_IsOK(res1)) { | |
32092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32093 | } | |
32094 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32095 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32096 | if (!SWIG_IsOK(res2)) { | |
32097 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
32098 | } | |
32099 | if (!argp2) { | |
32100 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
32101 | } | |
32102 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
32103 | { | |
32104 | arg3 = &temp3; | |
32105 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
32106 | } | |
32107 | { | |
32108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32109 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
32110 | wxPyEndAllowThreads(__tstate); | |
32111 | if (PyErr_Occurred()) SWIG_fail; | |
32112 | } | |
32113 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32114 | return resultobj; | |
32115 | fail: | |
32116 | return NULL; | |
32117 | } | |
32118 | ||
32119 | ||
32120 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32121 | PyObject *resultobj = 0; | |
32122 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32123 | wxIcon *arg2 = 0 ; | |
32124 | int result; | |
32125 | void *argp1 = 0 ; | |
32126 | int res1 = 0 ; | |
32127 | void *argp2 = 0 ; | |
32128 | int res2 = 0 ; | |
32129 | PyObject * obj0 = 0 ; | |
32130 | PyObject * obj1 = 0 ; | |
32131 | char * kwnames[] = { | |
32132 | (char *) "self",(char *) "icon", NULL | |
32133 | }; | |
32134 | ||
32135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
32136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32137 | if (!SWIG_IsOK(res1)) { | |
32138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32139 | } | |
554f62e9 RD |
32140 | arg1 = reinterpret_cast< wxImageList * >(argp1); |
32141 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
32142 | if (!SWIG_IsOK(res2)) { | |
32143 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
32144 | } | |
32145 | if (!argp2) { | |
32146 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
32147 | } | |
32148 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
32149 | { | |
32150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32151 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
32152 | wxPyEndAllowThreads(__tstate); | |
32153 | if (PyErr_Occurred()) SWIG_fail; | |
32154 | } | |
32155 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32156 | return resultobj; | |
32157 | fail: | |
32158 | return NULL; | |
32159 | } | |
32160 | ||
32161 | ||
32162 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32163 | PyObject *resultobj = 0; | |
32164 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32165 | int arg2 ; | |
32166 | SwigValueWrapper<wxBitmap > result; | |
32167 | void *argp1 = 0 ; | |
32168 | int res1 = 0 ; | |
32169 | int val2 ; | |
32170 | int ecode2 = 0 ; | |
32171 | PyObject * obj0 = 0 ; | |
32172 | PyObject * obj1 = 0 ; | |
32173 | char * kwnames[] = { | |
32174 | (char *) "self",(char *) "index", NULL | |
32175 | }; | |
32176 | ||
32177 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
32178 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32179 | if (!SWIG_IsOK(res1)) { | |
32180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
32181 | } | |
32182 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32183 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32184 | if (!SWIG_IsOK(ecode2)) { | |
32185 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
32186 | } | |
32187 | arg2 = static_cast< int >(val2); | |
32188 | { | |
32189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32190 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
32191 | wxPyEndAllowThreads(__tstate); | |
32192 | if (PyErr_Occurred()) SWIG_fail; | |
32193 | } | |
32194 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
32195 | return resultobj; | |
32196 | fail: | |
32197 | return NULL; | |
32198 | } | |
32199 | ||
32200 | ||
32201 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32202 | PyObject *resultobj = 0; | |
32203 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32204 | int arg2 ; | |
32205 | wxIcon result; | |
32206 | void *argp1 = 0 ; | |
32207 | int res1 = 0 ; | |
32208 | int val2 ; | |
32209 | int ecode2 = 0 ; | |
32210 | PyObject * obj0 = 0 ; | |
32211 | PyObject * obj1 = 0 ; | |
32212 | char * kwnames[] = { | |
32213 | (char *) "self",(char *) "index", NULL | |
32214 | }; | |
32215 | ||
32216 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
32217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32218 | if (!SWIG_IsOK(res1)) { | |
32219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
32220 | } | |
32221 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32222 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32223 | if (!SWIG_IsOK(ecode2)) { | |
32224 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
32225 | } | |
32226 | arg2 = static_cast< int >(val2); | |
32227 | { | |
32228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32229 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
32230 | wxPyEndAllowThreads(__tstate); | |
32231 | if (PyErr_Occurred()) SWIG_fail; | |
32232 | } | |
32233 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
32234 | return resultobj; | |
32235 | fail: | |
32236 | return NULL; | |
32237 | } | |
32238 | ||
32239 | ||
32240 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32241 | PyObject *resultobj = 0; | |
32242 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32243 | int arg2 ; | |
32244 | wxBitmap *arg3 = 0 ; | |
32245 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
32246 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
32247 | bool result; | |
32248 | void *argp1 = 0 ; | |
32249 | int res1 = 0 ; | |
32250 | int val2 ; | |
32251 | int ecode2 = 0 ; | |
32252 | void *argp3 = 0 ; | |
32253 | int res3 = 0 ; | |
32254 | void *argp4 = 0 ; | |
32255 | int res4 = 0 ; | |
32256 | PyObject * obj0 = 0 ; | |
32257 | PyObject * obj1 = 0 ; | |
32258 | PyObject * obj2 = 0 ; | |
32259 | PyObject * obj3 = 0 ; | |
32260 | char * kwnames[] = { | |
32261 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
32262 | }; | |
32263 | ||
32264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32266 | if (!SWIG_IsOK(res1)) { | |
32267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32268 | } | |
32269 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32270 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32271 | if (!SWIG_IsOK(ecode2)) { | |
32272 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
32273 | } | |
32274 | arg2 = static_cast< int >(val2); | |
32275 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32276 | if (!SWIG_IsOK(res3)) { | |
32277 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
32278 | } | |
32279 | if (!argp3) { | |
32280 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
32281 | } | |
32282 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
32283 | if (obj3) { | |
32284 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32285 | if (!SWIG_IsOK(res4)) { | |
32286 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 32287 | } |
554f62e9 RD |
32288 | if (!argp4) { |
32289 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 32290 | } |
554f62e9 RD |
32291 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
32292 | } | |
32293 | { | |
32294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32295 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
32296 | wxPyEndAllowThreads(__tstate); | |
32297 | if (PyErr_Occurred()) SWIG_fail; | |
32298 | } | |
32299 | { | |
32300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32301 | } | |
32302 | return resultobj; | |
32303 | fail: | |
32304 | return NULL; | |
32305 | } | |
32306 | ||
32307 | ||
32308 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32309 | PyObject *resultobj = 0; | |
32310 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32311 | int arg2 ; | |
32312 | wxDC *arg3 = 0 ; | |
32313 | int arg4 ; | |
32314 | int arg5 ; | |
32315 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
32316 | bool arg7 = (bool) (bool)false ; | |
32317 | bool result; | |
32318 | void *argp1 = 0 ; | |
32319 | int res1 = 0 ; | |
32320 | int val2 ; | |
32321 | int ecode2 = 0 ; | |
32322 | void *argp3 = 0 ; | |
32323 | int res3 = 0 ; | |
32324 | int val4 ; | |
32325 | int ecode4 = 0 ; | |
32326 | int val5 ; | |
32327 | int ecode5 = 0 ; | |
32328 | int val6 ; | |
32329 | int ecode6 = 0 ; | |
32330 | bool val7 ; | |
32331 | int ecode7 = 0 ; | |
32332 | PyObject * obj0 = 0 ; | |
32333 | PyObject * obj1 = 0 ; | |
32334 | PyObject * obj2 = 0 ; | |
32335 | PyObject * obj3 = 0 ; | |
32336 | PyObject * obj4 = 0 ; | |
32337 | PyObject * obj5 = 0 ; | |
32338 | PyObject * obj6 = 0 ; | |
32339 | char * kwnames[] = { | |
32340 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
32341 | }; | |
32342 | ||
32343 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
32344 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32345 | if (!SWIG_IsOK(res1)) { | |
32346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32347 | } | |
32348 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32349 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32350 | if (!SWIG_IsOK(ecode2)) { | |
32351 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
32352 | } | |
32353 | arg2 = static_cast< int >(val2); | |
32354 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
32355 | if (!SWIG_IsOK(res3)) { | |
32356 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
32357 | } | |
32358 | if (!argp3) { | |
32359 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
32360 | } | |
32361 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
32362 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32363 | if (!SWIG_IsOK(ecode4)) { | |
32364 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
32365 | } | |
32366 | arg4 = static_cast< int >(val4); | |
32367 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32368 | if (!SWIG_IsOK(ecode5)) { | |
32369 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
32370 | } | |
32371 | arg5 = static_cast< int >(val5); | |
32372 | if (obj5) { | |
32373 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
32374 | if (!SWIG_IsOK(ecode6)) { | |
32375 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
32376 | } | |
32377 | arg6 = static_cast< int >(val6); | |
32378 | } | |
32379 | if (obj6) { | |
32380 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
32381 | if (!SWIG_IsOK(ecode7)) { | |
32382 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
32383 | } | |
32384 | arg7 = static_cast< bool >(val7); | |
32385 | } | |
32386 | { | |
32387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32388 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
32389 | wxPyEndAllowThreads(__tstate); | |
32390 | if (PyErr_Occurred()) SWIG_fail; | |
32391 | } | |
32392 | { | |
32393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32394 | } | |
32395 | return resultobj; | |
32396 | fail: | |
32397 | return NULL; | |
32398 | } | |
32399 | ||
32400 | ||
32401 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32402 | PyObject *resultobj = 0; | |
32403 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32404 | int result; | |
32405 | void *argp1 = 0 ; | |
32406 | int res1 = 0 ; | |
32407 | PyObject *swig_obj[1] ; | |
32408 | ||
32409 | if (!args) SWIG_fail; | |
32410 | swig_obj[0] = args; | |
32411 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32412 | if (!SWIG_IsOK(res1)) { | |
32413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32414 | } | |
32415 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32416 | { | |
32417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32418 | result = (int)(arg1)->GetImageCount(); | |
32419 | wxPyEndAllowThreads(__tstate); | |
32420 | if (PyErr_Occurred()) SWIG_fail; | |
32421 | } | |
32422 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32423 | return resultobj; | |
32424 | fail: | |
32425 | return NULL; | |
32426 | } | |
32427 | ||
32428 | ||
32429 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32430 | PyObject *resultobj = 0; | |
32431 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32432 | int arg2 ; | |
32433 | bool result; | |
32434 | void *argp1 = 0 ; | |
32435 | int res1 = 0 ; | |
32436 | int val2 ; | |
32437 | int ecode2 = 0 ; | |
32438 | PyObject * obj0 = 0 ; | |
32439 | PyObject * obj1 = 0 ; | |
32440 | char * kwnames[] = { | |
32441 | (char *) "self",(char *) "index", NULL | |
32442 | }; | |
32443 | ||
32444 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
32445 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32446 | if (!SWIG_IsOK(res1)) { | |
32447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32448 | } | |
32449 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32450 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32451 | if (!SWIG_IsOK(ecode2)) { | |
32452 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
32453 | } | |
32454 | arg2 = static_cast< int >(val2); | |
32455 | { | |
32456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32457 | result = (bool)(arg1)->Remove(arg2); | |
32458 | wxPyEndAllowThreads(__tstate); | |
32459 | if (PyErr_Occurred()) SWIG_fail; | |
32460 | } | |
32461 | { | |
32462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32463 | } | |
32464 | return resultobj; | |
32465 | fail: | |
32466 | return NULL; | |
32467 | } | |
32468 | ||
32469 | ||
32470 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32471 | PyObject *resultobj = 0; | |
32472 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32473 | bool result; | |
32474 | void *argp1 = 0 ; | |
32475 | int res1 = 0 ; | |
32476 | PyObject *swig_obj[1] ; | |
32477 | ||
32478 | if (!args) SWIG_fail; | |
32479 | swig_obj[0] = args; | |
32480 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32481 | if (!SWIG_IsOK(res1)) { | |
32482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32483 | } | |
32484 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32485 | { | |
32486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32487 | result = (bool)(arg1)->RemoveAll(); | |
32488 | wxPyEndAllowThreads(__tstate); | |
32489 | if (PyErr_Occurred()) SWIG_fail; | |
32490 | } | |
32491 | { | |
32492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32493 | } | |
32494 | return resultobj; | |
32495 | fail: | |
32496 | return NULL; | |
32497 | } | |
32498 | ||
32499 | ||
32500 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32501 | PyObject *resultobj = 0; | |
32502 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32503 | int arg2 ; | |
32504 | int *arg3 = 0 ; | |
32505 | int *arg4 = 0 ; | |
32506 | void *argp1 = 0 ; | |
32507 | int res1 = 0 ; | |
32508 | int val2 ; | |
32509 | int ecode2 = 0 ; | |
32510 | int temp3 ; | |
32511 | int res3 = SWIG_TMPOBJ ; | |
32512 | int temp4 ; | |
32513 | int res4 = SWIG_TMPOBJ ; | |
32514 | PyObject * obj0 = 0 ; | |
32515 | PyObject * obj1 = 0 ; | |
32516 | char * kwnames[] = { | |
32517 | (char *) "self",(char *) "index", NULL | |
32518 | }; | |
32519 | ||
32520 | arg3 = &temp3; | |
32521 | arg4 = &temp4; | |
32522 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
32523 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32524 | if (!SWIG_IsOK(res1)) { | |
32525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32526 | } | |
32527 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32528 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32529 | if (!SWIG_IsOK(ecode2)) { | |
32530 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
32531 | } | |
32532 | arg2 = static_cast< int >(val2); | |
32533 | { | |
32534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32535 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
32536 | wxPyEndAllowThreads(__tstate); | |
32537 | if (PyErr_Occurred()) SWIG_fail; | |
32538 | } | |
32539 | resultobj = SWIG_Py_Void(); | |
32540 | if (SWIG_IsTmpObj(res3)) { | |
32541 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
32542 | } else { | |
32543 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
32544 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
32545 | } | |
32546 | if (SWIG_IsTmpObj(res4)) { | |
32547 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
32548 | } else { | |
32549 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
32550 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
32551 | } | |
32552 | return resultobj; | |
32553 | fail: | |
32554 | return NULL; | |
32555 | } | |
32556 | ||
32557 | ||
32558 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32559 | PyObject *obj; | |
32560 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32561 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
32562 | return SWIG_Py_Void(); | |
32563 | } | |
32564 | ||
32565 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32566 | return SWIG_Python_InitShadowInstance(args); | |
32567 | } | |
32568 | ||
50efceee RD |
32569 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32570 | PyObject *resultobj = 0; | |
32571 | wxStockGDI *result = 0 ; | |
554f62e9 | 32572 | |
50efceee RD |
32573 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
32574 | { | |
32575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32576 | result = (wxStockGDI *)new wxStockGDI(); | |
32577 | wxPyEndAllowThreads(__tstate); | |
32578 | if (PyErr_Occurred()) SWIG_fail; | |
32579 | } | |
32580 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
32581 | return resultobj; | |
32582 | fail: | |
32583 | return NULL; | |
554f62e9 RD |
32584 | } |
32585 | ||
32586 | ||
50efceee RD |
32587 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32588 | PyObject *resultobj = 0; | |
32589 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
32590 | void *argp1 = 0 ; | |
32591 | int res1 = 0 ; | |
32592 | PyObject *swig_obj[1] ; | |
554f62e9 | 32593 | |
50efceee RD |
32594 | if (!args) SWIG_fail; |
32595 | swig_obj[0] = args; | |
32596 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
32597 | if (!SWIG_IsOK(res1)) { | |
32598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
32599 | } | |
32600 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
32601 | { | |
32602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32603 | delete arg1; | |
32604 | ||
32605 | wxPyEndAllowThreads(__tstate); | |
32606 | if (PyErr_Occurred()) SWIG_fail; | |
32607 | } | |
32608 | resultobj = SWIG_Py_Void(); | |
32609 | return resultobj; | |
32610 | fail: | |
32611 | return NULL; | |
554f62e9 RD |
32612 | } |
32613 | ||
32614 | ||
50efceee RD |
32615 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32616 | PyObject *resultobj = 0; | |
554f62e9 | 32617 | |
50efceee RD |
32618 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
32619 | { | |
32620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32621 | wxStockGDI::DeleteAll(); | |
32622 | wxPyEndAllowThreads(__tstate); | |
32623 | if (PyErr_Occurred()) SWIG_fail; | |
32624 | } | |
32625 | resultobj = SWIG_Py_Void(); | |
32626 | return resultobj; | |
32627 | fail: | |
32628 | return NULL; | |
554f62e9 RD |
32629 | } |
32630 | ||
32631 | ||
50efceee RD |
32632 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32633 | PyObject *resultobj = 0; | |
32634 | wxStockGDI *result = 0 ; | |
554f62e9 | 32635 | |
50efceee RD |
32636 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
32637 | { | |
32638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32639 | { | |
32640 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
32641 | result = (wxStockGDI *) &_result_ref; | |
32642 | } | |
32643 | wxPyEndAllowThreads(__tstate); | |
32644 | if (PyErr_Occurred()) SWIG_fail; | |
32645 | } | |
32646 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
32647 | return resultobj; | |
32648 | fail: | |
32649 | return NULL; | |
554f62e9 RD |
32650 | } |
32651 | ||
32652 | ||
50efceee RD |
32653 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32654 | PyObject *resultobj = 0; | |
32655 | wxStockGDI::Item arg1 ; | |
32656 | wxBrush *result = 0 ; | |
32657 | int val1 ; | |
32658 | int ecode1 = 0 ; | |
32659 | PyObject * obj0 = 0 ; | |
32660 | char * kwnames[] = { | |
32661 | (char *) "item", NULL | |
32662 | }; | |
32663 | ||
32664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
32665 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32666 | if (!SWIG_IsOK(ecode1)) { | |
32667 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32668 | } | |
32669 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32670 | { | |
32671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32672 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
32673 | wxPyEndAllowThreads(__tstate); | |
32674 | if (PyErr_Occurred()) SWIG_fail; | |
32675 | } | |
32676 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32677 | return resultobj; | |
32678 | fail: | |
32679 | return NULL; | |
554f62e9 RD |
32680 | } |
32681 | ||
32682 | ||
50efceee RD |
32683 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32684 | PyObject *resultobj = 0; | |
32685 | wxStockGDI::Item arg1 ; | |
32686 | wxColour *result = 0 ; | |
32687 | int val1 ; | |
32688 | int ecode1 = 0 ; | |
32689 | PyObject * obj0 = 0 ; | |
32690 | char * kwnames[] = { | |
32691 | (char *) "item", NULL | |
32692 | }; | |
554f62e9 | 32693 | |
50efceee RD |
32694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
32695 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32696 | if (!SWIG_IsOK(ecode1)) { | |
32697 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32698 | } | |
32699 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32700 | { | |
32701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32702 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
32703 | wxPyEndAllowThreads(__tstate); | |
32704 | if (PyErr_Occurred()) SWIG_fail; | |
32705 | } | |
32706 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
32707 | return resultobj; | |
32708 | fail: | |
32709 | return NULL; | |
554f62e9 RD |
32710 | } |
32711 | ||
32712 | ||
50efceee RD |
32713 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32714 | PyObject *resultobj = 0; | |
32715 | wxStockGDI::Item arg1 ; | |
32716 | wxCursor *result = 0 ; | |
32717 | int val1 ; | |
32718 | int ecode1 = 0 ; | |
32719 | PyObject * obj0 = 0 ; | |
32720 | char * kwnames[] = { | |
32721 | (char *) "item", NULL | |
32722 | }; | |
32723 | ||
32724 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
32725 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32726 | if (!SWIG_IsOK(ecode1)) { | |
32727 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32728 | } | |
32729 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32730 | { | |
32731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32732 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
32733 | wxPyEndAllowThreads(__tstate); | |
32734 | if (PyErr_Occurred()) SWIG_fail; | |
32735 | } | |
32736 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
32737 | return resultobj; | |
32738 | fail: | |
32739 | return NULL; | |
554f62e9 RD |
32740 | } |
32741 | ||
32742 | ||
50efceee RD |
32743 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32744 | PyObject *resultobj = 0; | |
32745 | wxStockGDI::Item arg1 ; | |
32746 | wxPen *result = 0 ; | |
32747 | int val1 ; | |
32748 | int ecode1 = 0 ; | |
32749 | PyObject * obj0 = 0 ; | |
32750 | char * kwnames[] = { | |
32751 | (char *) "item", NULL | |
32752 | }; | |
32753 | ||
32754 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
32755 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32756 | if (!SWIG_IsOK(ecode1)) { | |
32757 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32758 | } | |
32759 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32760 | { | |
32761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32762 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
32763 | wxPyEndAllowThreads(__tstate); | |
32764 | if (PyErr_Occurred()) SWIG_fail; | |
32765 | } | |
32766 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
32767 | return resultobj; | |
32768 | fail: | |
32769 | return NULL; | |
554f62e9 RD |
32770 | } |
32771 | ||
32772 | ||
50efceee RD |
32773 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32774 | PyObject *resultobj = 0; | |
32775 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
32776 | wxStockGDI::Item arg2 ; | |
32777 | wxFont *result = 0 ; | |
32778 | void *argp1 = 0 ; | |
32779 | int res1 = 0 ; | |
32780 | int val2 ; | |
32781 | int ecode2 = 0 ; | |
32782 | PyObject * obj0 = 0 ; | |
32783 | PyObject * obj1 = 0 ; | |
32784 | char * kwnames[] = { | |
32785 | (char *) "self",(char *) "item", NULL | |
32786 | }; | |
554f62e9 | 32787 | |
50efceee RD |
32788 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32789 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
32790 | if (!SWIG_IsOK(res1)) { | |
32791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
32792 | } | |
32793 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
32794 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32795 | if (!SWIG_IsOK(ecode2)) { | |
32796 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
32797 | } | |
32798 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
32799 | { | |
32800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32801 | result = (wxFont *)(arg1)->GetFont(arg2); | |
32802 | wxPyEndAllowThreads(__tstate); | |
32803 | if (PyErr_Occurred()) SWIG_fail; | |
32804 | } | |
32805 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
32806 | return resultobj; | |
32807 | fail: | |
32808 | return NULL; | |
554f62e9 RD |
32809 | } |
32810 | ||
32811 | ||
50efceee RD |
32812 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32813 | PyObject *obj; | |
32814 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32815 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
32816 | return SWIG_Py_Void(); | |
554f62e9 RD |
32817 | } |
32818 | ||
50efceee RD |
32819 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32820 | return SWIG_Python_InitShadowInstance(args); | |
554f62e9 RD |
32821 | } |
32822 | ||
554f62e9 RD |
32823 | SWIGINTERN int NullBitmap_set(PyObject *) { |
32824 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
32825 | return 1; | |
32826 | } | |
32827 | ||
32828 | ||
32829 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
32830 | PyObject *pyobj = 0; | |
32831 | ||
32832 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
32833 | return pyobj; | |
32834 | } | |
32835 | ||
32836 | ||
32837 | SWIGINTERN int NullIcon_set(PyObject *) { | |
32838 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
32839 | return 1; | |
32840 | } | |
32841 | ||
32842 | ||
32843 | SWIGINTERN PyObject *NullIcon_get(void) { | |
32844 | PyObject *pyobj = 0; | |
32845 | ||
32846 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
32847 | return pyobj; | |
32848 | } | |
32849 | ||
32850 | ||
32851 | SWIGINTERN int NullCursor_set(PyObject *) { | |
32852 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
32853 | return 1; | |
32854 | } | |
32855 | ||
32856 | ||
32857 | SWIGINTERN PyObject *NullCursor_get(void) { | |
32858 | PyObject *pyobj = 0; | |
32859 | ||
32860 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
32861 | return pyobj; | |
32862 | } | |
32863 | ||
32864 | ||
32865 | SWIGINTERN int NullPen_set(PyObject *) { | |
32866 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
32867 | return 1; | |
32868 | } | |
32869 | ||
32870 | ||
32871 | SWIGINTERN PyObject *NullPen_get(void) { | |
32872 | PyObject *pyobj = 0; | |
32873 | ||
32874 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
32875 | return pyobj; | |
32876 | } | |
32877 | ||
32878 | ||
32879 | SWIGINTERN int NullBrush_set(PyObject *) { | |
32880 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
32881 | return 1; | |
32882 | } | |
32883 | ||
32884 | ||
32885 | SWIGINTERN PyObject *NullBrush_get(void) { | |
32886 | PyObject *pyobj = 0; | |
32887 | ||
32888 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
32889 | return pyobj; | |
32890 | } | |
32891 | ||
32892 | ||
32893 | SWIGINTERN int NullPalette_set(PyObject *) { | |
32894 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
32895 | return 1; | |
32896 | } | |
32897 | ||
32898 | ||
32899 | SWIGINTERN PyObject *NullPalette_get(void) { | |
32900 | PyObject *pyobj = 0; | |
32901 | ||
32902 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
32903 | return pyobj; | |
32904 | } | |
32905 | ||
32906 | ||
32907 | SWIGINTERN int NullFont_set(PyObject *) { | |
32908 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
32909 | return 1; | |
32910 | } | |
32911 | ||
32912 | ||
32913 | SWIGINTERN PyObject *NullFont_get(void) { | |
32914 | PyObject *pyobj = 0; | |
32915 | ||
32916 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
32917 | return pyobj; | |
32918 | } | |
32919 | ||
32920 | ||
32921 | SWIGINTERN int NullColour_set(PyObject *) { | |
32922 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
32923 | return 1; | |
32924 | } | |
32925 | ||
32926 | ||
32927 | SWIGINTERN PyObject *NullColour_get(void) { | |
32928 | PyObject *pyobj = 0; | |
32929 | ||
32930 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
32931 | return pyobj; | |
32932 | } | |
32933 | ||
32934 | ||
50efceee | 32935 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 32936 | PyObject *resultobj = 0; |
50efceee RD |
32937 | wxGDIObjListBase *result = 0 ; |
32938 | ||
32939 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
32940 | { | |
32941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32942 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
32943 | wxPyEndAllowThreads(__tstate); | |
32944 | if (PyErr_Occurred()) SWIG_fail; | |
32945 | } | |
32946 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
32947 | return resultobj; | |
32948 | fail: | |
32949 | return NULL; | |
32950 | } | |
32951 | ||
32952 | ||
32953 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32954 | PyObject *resultobj = 0; | |
32955 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
554f62e9 RD |
32956 | void *argp1 = 0 ; |
32957 | int res1 = 0 ; | |
50efceee | 32958 | PyObject *swig_obj[1] ; |
554f62e9 | 32959 | |
50efceee RD |
32960 | if (!args) SWIG_fail; |
32961 | swig_obj[0] = args; | |
32962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
554f62e9 | 32963 | if (!SWIG_IsOK(res1)) { |
50efceee | 32964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
554f62e9 | 32965 | } |
50efceee | 32966 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
554f62e9 RD |
32967 | { |
32968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee RD |
32969 | delete arg1; |
32970 | ||
554f62e9 RD |
32971 | wxPyEndAllowThreads(__tstate); |
32972 | if (PyErr_Occurred()) SWIG_fail; | |
32973 | } | |
32974 | resultobj = SWIG_Py_Void(); | |
32975 | return resultobj; | |
32976 | fail: | |
32977 | return NULL; | |
32978 | } | |
32979 | ||
32980 | ||
50efceee RD |
32981 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32982 | PyObject *obj; | |
32983 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32984 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
32985 | return SWIG_Py_Void(); | |
32986 | } | |
32987 | ||
32988 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32989 | return SWIG_Python_InitShadowInstance(args); | |
32990 | } | |
32991 | ||
554f62e9 RD |
32992 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32993 | PyObject *resultobj = 0; | |
32994 | wxPenList *arg1 = (wxPenList *) 0 ; | |
32995 | wxColour *arg2 = 0 ; | |
32996 | int arg3 ; | |
32997 | int arg4 ; | |
32998 | wxPen *result = 0 ; | |
32999 | void *argp1 = 0 ; | |
33000 | int res1 = 0 ; | |
33001 | wxColour temp2 ; | |
33002 | int val3 ; | |
33003 | int ecode3 = 0 ; | |
33004 | int val4 ; | |
33005 | int ecode4 = 0 ; | |
33006 | PyObject * obj0 = 0 ; | |
33007 | PyObject * obj1 = 0 ; | |
33008 | PyObject * obj2 = 0 ; | |
33009 | PyObject * obj3 = 0 ; | |
33010 | char * kwnames[] = { | |
33011 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
33012 | }; | |
33013 | ||
33014 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33015 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
33016 | if (!SWIG_IsOK(res1)) { | |
33017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
33018 | } | |
33019 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
33020 | { | |
33021 | arg2 = &temp2; | |
33022 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33023 | } | |
33024 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33025 | if (!SWIG_IsOK(ecode3)) { | |
33026 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
33027 | } | |
33028 | arg3 = static_cast< int >(val3); | |
33029 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33030 | if (!SWIG_IsOK(ecode4)) { | |
33031 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
33032 | } | |
33033 | arg4 = static_cast< int >(val4); | |
33034 | { | |
33035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33036 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
33037 | wxPyEndAllowThreads(__tstate); | |
33038 | if (PyErr_Occurred()) SWIG_fail; | |
33039 | } | |
33040 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
33041 | return resultobj; | |
33042 | fail: | |
33043 | return NULL; | |
33044 | } | |
33045 | ||
33046 | ||
50efceee | 33047 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
33048 | PyObject *resultobj = 0; |
33049 | wxPenList *arg1 = (wxPenList *) 0 ; | |
33050 | wxPen *arg2 = (wxPen *) 0 ; | |
33051 | void *argp1 = 0 ; | |
33052 | int res1 = 0 ; | |
33053 | void *argp2 = 0 ; | |
33054 | int res2 = 0 ; | |
33055 | PyObject * obj0 = 0 ; | |
33056 | PyObject * obj1 = 0 ; | |
33057 | char * kwnames[] = { | |
33058 | (char *) "self",(char *) "pen", NULL | |
33059 | }; | |
33060 | ||
50efceee | 33061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; |
554f62e9 RD |
33062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); |
33063 | if (!SWIG_IsOK(res1)) { | |
50efceee | 33064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
554f62e9 RD |
33065 | } |
33066 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
33067 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
33068 | if (!SWIG_IsOK(res2)) { | |
50efceee | 33069 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); |
554f62e9 RD |
33070 | } |
33071 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
33072 | { | |
33073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33074 | (arg1)->AddPen(arg2); |
554f62e9 RD |
33075 | wxPyEndAllowThreads(__tstate); |
33076 | if (PyErr_Occurred()) SWIG_fail; | |
33077 | } | |
33078 | resultobj = SWIG_Py_Void(); | |
33079 | return resultobj; | |
33080 | fail: | |
33081 | return NULL; | |
33082 | } | |
33083 | ||
33084 | ||
50efceee | 33085 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
33086 | PyObject *resultobj = 0; |
33087 | wxPenList *arg1 = (wxPenList *) 0 ; | |
50efceee | 33088 | wxPen *arg2 = (wxPen *) 0 ; |
554f62e9 RD |
33089 | void *argp1 = 0 ; |
33090 | int res1 = 0 ; | |
50efceee RD |
33091 | void *argp2 = 0 ; |
33092 | int res2 = 0 ; | |
33093 | PyObject * obj0 = 0 ; | |
33094 | PyObject * obj1 = 0 ; | |
33095 | char * kwnames[] = { | |
33096 | (char *) "self",(char *) "pen", NULL | |
33097 | }; | |
554f62e9 | 33098 | |
50efceee RD |
33099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; |
33100 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
554f62e9 | 33101 | if (!SWIG_IsOK(res1)) { |
50efceee | 33102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
554f62e9 RD |
33103 | } |
33104 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
50efceee RD |
33105 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); |
33106 | if (!SWIG_IsOK(res2)) { | |
33107 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
33108 | } | |
33109 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
554f62e9 RD |
33110 | { |
33111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33112 | (arg1)->RemovePen(arg2); |
554f62e9 RD |
33113 | wxPyEndAllowThreads(__tstate); |
33114 | if (PyErr_Occurred()) SWIG_fail; | |
33115 | } | |
50efceee | 33116 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
33117 | return resultobj; |
33118 | fail: | |
33119 | return NULL; | |
33120 | } | |
33121 | ||
33122 | ||
33123 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33124 | PyObject *obj; | |
33125 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33126 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
33127 | return SWIG_Py_Void(); | |
33128 | } | |
33129 | ||
50efceee RD |
33130 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33131 | PyObject *resultobj = 0; | |
33132 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
33133 | wxColour *arg2 = 0 ; | |
33134 | int arg3 = (int) wxSOLID ; | |
33135 | wxBrush *result = 0 ; | |
33136 | void *argp1 = 0 ; | |
33137 | int res1 = 0 ; | |
33138 | wxColour temp2 ; | |
33139 | int val3 ; | |
33140 | int ecode3 = 0 ; | |
33141 | PyObject * obj0 = 0 ; | |
33142 | PyObject * obj1 = 0 ; | |
33143 | PyObject * obj2 = 0 ; | |
33144 | char * kwnames[] = { | |
33145 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
33146 | }; | |
33147 | ||
33148 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33149 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33150 | if (!SWIG_IsOK(res1)) { | |
33151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
33152 | } | |
33153 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
33154 | { | |
33155 | arg2 = &temp2; | |
33156 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33157 | } | |
33158 | if (obj2) { | |
33159 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33160 | if (!SWIG_IsOK(ecode3)) { | |
33161 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
33162 | } | |
33163 | arg3 = static_cast< int >(val3); | |
33164 | } | |
33165 | { | |
33166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33167 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
33168 | wxPyEndAllowThreads(__tstate); | |
33169 | if (PyErr_Occurred()) SWIG_fail; | |
33170 | } | |
33171 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
33172 | return resultobj; | |
33173 | fail: | |
33174 | return NULL; | |
33175 | } | |
33176 | ||
33177 | ||
554f62e9 RD |
33178 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33179 | PyObject *resultobj = 0; | |
33180 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
33181 | wxBrush *arg2 = (wxBrush *) 0 ; | |
33182 | void *argp1 = 0 ; | |
33183 | int res1 = 0 ; | |
33184 | void *argp2 = 0 ; | |
33185 | int res2 = 0 ; | |
33186 | PyObject * obj0 = 0 ; | |
33187 | PyObject * obj1 = 0 ; | |
33188 | char * kwnames[] = { | |
33189 | (char *) "self",(char *) "brush", NULL | |
33190 | }; | |
33191 | ||
33192 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
33193 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33194 | if (!SWIG_IsOK(res1)) { | |
33195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
33196 | } | |
33197 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
33198 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
33199 | if (!SWIG_IsOK(res2)) { | |
33200 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
33201 | } | |
33202 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
33203 | { | |
33204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33205 | (arg1)->AddBrush(arg2); | |
33206 | wxPyEndAllowThreads(__tstate); | |
33207 | if (PyErr_Occurred()) SWIG_fail; | |
33208 | } | |
33209 | resultobj = SWIG_Py_Void(); | |
33210 | return resultobj; | |
33211 | fail: | |
33212 | return NULL; | |
33213 | } | |
33214 | ||
33215 | ||
50efceee | 33216 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
33217 | PyObject *resultobj = 0; |
33218 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
50efceee | 33219 | wxBrush *arg2 = (wxBrush *) 0 ; |
554f62e9 RD |
33220 | void *argp1 = 0 ; |
33221 | int res1 = 0 ; | |
50efceee RD |
33222 | void *argp2 = 0 ; |
33223 | int res2 = 0 ; | |
33224 | PyObject * obj0 = 0 ; | |
33225 | PyObject * obj1 = 0 ; | |
33226 | char * kwnames[] = { | |
33227 | (char *) "self",(char *) "brush", NULL | |
33228 | }; | |
33229 | ||
33230 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
33231 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33232 | if (!SWIG_IsOK(res1)) { | |
33233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
33234 | } | |
33235 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
33236 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
33237 | if (!SWIG_IsOK(res2)) { | |
33238 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
33239 | } | |
33240 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
33241 | { | |
33242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33243 | (arg1)->RemoveBrush(arg2); | |
33244 | wxPyEndAllowThreads(__tstate); | |
33245 | if (PyErr_Occurred()) SWIG_fail; | |
33246 | } | |
33247 | resultobj = SWIG_Py_Void(); | |
33248 | return resultobj; | |
33249 | fail: | |
33250 | return NULL; | |
33251 | } | |
33252 | ||
33253 | ||
33254 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33255 | PyObject *obj; | |
33256 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33257 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
33258 | return SWIG_Py_Void(); | |
33259 | } | |
33260 | ||
33261 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33262 | PyObject *resultobj = 0; | |
33263 | wxFontList *arg1 = (wxFontList *) 0 ; | |
33264 | int arg2 ; | |
33265 | int arg3 ; | |
33266 | int arg4 ; | |
33267 | int arg5 ; | |
33268 | bool arg6 = (bool) false ; | |
33269 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
33270 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33271 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
33272 | wxFont *result = 0 ; | |
33273 | void *argp1 = 0 ; | |
33274 | int res1 = 0 ; | |
33275 | int val2 ; | |
33276 | int ecode2 = 0 ; | |
554f62e9 RD |
33277 | int val3 ; |
33278 | int ecode3 = 0 ; | |
50efceee RD |
33279 | int val4 ; |
33280 | int ecode4 = 0 ; | |
33281 | int val5 ; | |
33282 | int ecode5 = 0 ; | |
33283 | bool val6 ; | |
33284 | int ecode6 = 0 ; | |
33285 | bool temp7 = false ; | |
33286 | int val8 ; | |
33287 | int ecode8 = 0 ; | |
554f62e9 RD |
33288 | PyObject * obj0 = 0 ; |
33289 | PyObject * obj1 = 0 ; | |
33290 | PyObject * obj2 = 0 ; | |
50efceee RD |
33291 | PyObject * obj3 = 0 ; |
33292 | PyObject * obj4 = 0 ; | |
33293 | PyObject * obj5 = 0 ; | |
33294 | PyObject * obj6 = 0 ; | |
33295 | PyObject * obj7 = 0 ; | |
554f62e9 | 33296 | char * kwnames[] = { |
50efceee | 33297 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
554f62e9 RD |
33298 | }; |
33299 | ||
50efceee RD |
33300 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
33301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 33302 | if (!SWIG_IsOK(res1)) { |
50efceee | 33303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 33304 | } |
50efceee RD |
33305 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
33306 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33307 | if (!SWIG_IsOK(ecode2)) { | |
33308 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
33309 | } | |
33310 | arg2 = static_cast< int >(val2); | |
33311 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33312 | if (!SWIG_IsOK(ecode3)) { | |
33313 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
33314 | } | |
33315 | arg3 = static_cast< int >(val3); | |
33316 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33317 | if (!SWIG_IsOK(ecode4)) { | |
33318 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
33319 | } | |
33320 | arg4 = static_cast< int >(val4); | |
33321 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33322 | if (!SWIG_IsOK(ecode5)) { | |
33323 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
33324 | } | |
33325 | arg5 = static_cast< int >(val5); | |
33326 | if (obj5) { | |
33327 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
33328 | if (!SWIG_IsOK(ecode6)) { | |
33329 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
33330 | } | |
33331 | arg6 = static_cast< bool >(val6); | |
554f62e9 | 33332 | } |
50efceee RD |
33333 | if (obj6) { |
33334 | { | |
33335 | arg7 = wxString_in_helper(obj6); | |
33336 | if (arg7 == NULL) SWIG_fail; | |
33337 | temp7 = true; | |
33338 | } | |
33339 | } | |
33340 | if (obj7) { | |
33341 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
33342 | if (!SWIG_IsOK(ecode8)) { | |
33343 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
554f62e9 | 33344 | } |
50efceee | 33345 | arg8 = static_cast< wxFontEncoding >(val8); |
554f62e9 RD |
33346 | } |
33347 | { | |
33348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33349 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
554f62e9 RD |
33350 | wxPyEndAllowThreads(__tstate); |
33351 | if (PyErr_Occurred()) SWIG_fail; | |
33352 | } | |
50efceee RD |
33353 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
33354 | { | |
33355 | if (temp7) | |
33356 | delete arg7; | |
33357 | } | |
554f62e9 RD |
33358 | return resultobj; |
33359 | fail: | |
50efceee RD |
33360 | { |
33361 | if (temp7) | |
33362 | delete arg7; | |
33363 | } | |
554f62e9 RD |
33364 | return NULL; |
33365 | } | |
33366 | ||
33367 | ||
50efceee | 33368 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 33369 | PyObject *resultobj = 0; |
50efceee RD |
33370 | wxFontList *arg1 = (wxFontList *) 0 ; |
33371 | wxFont *arg2 = (wxFont *) 0 ; | |
554f62e9 RD |
33372 | void *argp1 = 0 ; |
33373 | int res1 = 0 ; | |
33374 | void *argp2 = 0 ; | |
33375 | int res2 = 0 ; | |
33376 | PyObject * obj0 = 0 ; | |
33377 | PyObject * obj1 = 0 ; | |
33378 | char * kwnames[] = { | |
50efceee | 33379 | (char *) "self",(char *) "font", NULL |
554f62e9 RD |
33380 | }; |
33381 | ||
50efceee RD |
33382 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; |
33383 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 33384 | if (!SWIG_IsOK(res1)) { |
50efceee | 33385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 33386 | } |
50efceee RD |
33387 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
33388 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
554f62e9 | 33389 | if (!SWIG_IsOK(res2)) { |
50efceee | 33390 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); |
554f62e9 | 33391 | } |
50efceee | 33392 | arg2 = reinterpret_cast< wxFont * >(argp2); |
554f62e9 RD |
33393 | { |
33394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33395 | (arg1)->AddFont(arg2); |
554f62e9 RD |
33396 | wxPyEndAllowThreads(__tstate); |
33397 | if (PyErr_Occurred()) SWIG_fail; | |
33398 | } | |
33399 | resultobj = SWIG_Py_Void(); | |
33400 | return resultobj; | |
33401 | fail: | |
33402 | return NULL; | |
33403 | } | |
33404 | ||
33405 | ||
50efceee | 33406 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 33407 | PyObject *resultobj = 0; |
50efceee RD |
33408 | wxFontList *arg1 = (wxFontList *) 0 ; |
33409 | wxFont *arg2 = (wxFont *) 0 ; | |
554f62e9 RD |
33410 | void *argp1 = 0 ; |
33411 | int res1 = 0 ; | |
50efceee RD |
33412 | void *argp2 = 0 ; |
33413 | int res2 = 0 ; | |
33414 | PyObject * obj0 = 0 ; | |
33415 | PyObject * obj1 = 0 ; | |
33416 | char * kwnames[] = { | |
33417 | (char *) "self",(char *) "font", NULL | |
33418 | }; | |
554f62e9 | 33419 | |
50efceee RD |
33420 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; |
33421 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 33422 | if (!SWIG_IsOK(res1)) { |
50efceee | 33423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 33424 | } |
50efceee RD |
33425 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
33426 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
33427 | if (!SWIG_IsOK(res2)) { | |
33428 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
33429 | } | |
33430 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
554f62e9 RD |
33431 | { |
33432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33433 | (arg1)->RemoveFont(arg2); |
554f62e9 RD |
33434 | wxPyEndAllowThreads(__tstate); |
33435 | if (PyErr_Occurred()) SWIG_fail; | |
33436 | } | |
50efceee | 33437 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
33438 | return resultobj; |
33439 | fail: | |
33440 | return NULL; | |
33441 | } | |
33442 | ||
33443 | ||
50efceee | 33444 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
33445 | PyObject *obj; |
33446 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
50efceee | 33447 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
554f62e9 RD |
33448 | return SWIG_Py_Void(); |
33449 | } | |
33450 | ||
33451 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33452 | PyObject *resultobj = 0; | |
33453 | wxColourDatabase *result = 0 ; | |
33454 | ||
33455 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
33456 | { | |
33457 | if (!wxPyCheckForApp()) SWIG_fail; | |
33458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33459 | result = (wxColourDatabase *)new wxColourDatabase(); | |
33460 | wxPyEndAllowThreads(__tstate); | |
33461 | if (PyErr_Occurred()) SWIG_fail; | |
33462 | } | |
33463 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
33464 | return resultobj; | |
33465 | fail: | |
33466 | return NULL; | |
33467 | } | |
33468 | ||
33469 | ||
33470 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33471 | PyObject *resultobj = 0; | |
33472 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33473 | void *argp1 = 0 ; | |
33474 | int res1 = 0 ; | |
33475 | PyObject *swig_obj[1] ; | |
33476 | ||
33477 | if (!args) SWIG_fail; | |
33478 | swig_obj[0] = args; | |
33479 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
33480 | if (!SWIG_IsOK(res1)) { | |
33481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
33482 | } | |
33483 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33484 | { | |
33485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33486 | delete arg1; | |
33487 | ||
33488 | wxPyEndAllowThreads(__tstate); | |
33489 | if (PyErr_Occurred()) SWIG_fail; | |
33490 | } | |
33491 | resultobj = SWIG_Py_Void(); | |
33492 | return resultobj; | |
33493 | fail: | |
33494 | return NULL; | |
33495 | } | |
33496 | ||
33497 | ||
33498 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33499 | PyObject *resultobj = 0; | |
33500 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33501 | wxString *arg2 = 0 ; | |
33502 | wxColour result; | |
33503 | void *argp1 = 0 ; | |
33504 | int res1 = 0 ; | |
33505 | bool temp2 = false ; | |
33506 | PyObject * obj0 = 0 ; | |
33507 | PyObject * obj1 = 0 ; | |
33508 | char * kwnames[] = { | |
33509 | (char *) "self",(char *) "name", NULL | |
33510 | }; | |
33511 | ||
33512 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
33513 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33514 | if (!SWIG_IsOK(res1)) { | |
33515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
33516 | } | |
33517 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33518 | { | |
33519 | arg2 = wxString_in_helper(obj1); | |
33520 | if (arg2 == NULL) SWIG_fail; | |
33521 | temp2 = true; | |
33522 | } | |
33523 | { | |
33524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33525 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
33526 | wxPyEndAllowThreads(__tstate); | |
33527 | if (PyErr_Occurred()) SWIG_fail; | |
33528 | } | |
33529 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33530 | { | |
33531 | if (temp2) | |
33532 | delete arg2; | |
33533 | } | |
33534 | return resultobj; | |
33535 | fail: | |
33536 | { | |
33537 | if (temp2) | |
33538 | delete arg2; | |
33539 | } | |
33540 | return NULL; | |
33541 | } | |
33542 | ||
33543 | ||
33544 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33545 | PyObject *resultobj = 0; | |
33546 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33547 | wxColour *arg2 = 0 ; | |
33548 | wxString result; | |
33549 | void *argp1 = 0 ; | |
33550 | int res1 = 0 ; | |
33551 | wxColour temp2 ; | |
33552 | PyObject * obj0 = 0 ; | |
33553 | PyObject * obj1 = 0 ; | |
33554 | char * kwnames[] = { | |
33555 | (char *) "self",(char *) "colour", NULL | |
33556 | }; | |
33557 | ||
33558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
33559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33560 | if (!SWIG_IsOK(res1)) { | |
33561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
33562 | } | |
33563 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33564 | { | |
33565 | arg2 = &temp2; | |
33566 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33567 | } | |
33568 | { | |
33569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33570 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
33571 | wxPyEndAllowThreads(__tstate); | |
33572 | if (PyErr_Occurred()) SWIG_fail; | |
33573 | } | |
33574 | { | |
33575 | #if wxUSE_UNICODE | |
33576 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33577 | #else | |
33578 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33579 | #endif | |
33580 | } | |
33581 | return resultobj; | |
33582 | fail: | |
33583 | return NULL; | |
33584 | } | |
33585 | ||
33586 | ||
33587 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33588 | PyObject *resultobj = 0; | |
33589 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33590 | wxString *arg2 = 0 ; | |
33591 | wxColour *arg3 = 0 ; | |
33592 | void *argp1 = 0 ; | |
33593 | int res1 = 0 ; | |
33594 | bool temp2 = false ; | |
33595 | wxColour temp3 ; | |
33596 | PyObject * obj0 = 0 ; | |
33597 | PyObject * obj1 = 0 ; | |
33598 | PyObject * obj2 = 0 ; | |
33599 | char * kwnames[] = { | |
33600 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
33601 | }; | |
33602 | ||
33603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33605 | if (!SWIG_IsOK(res1)) { | |
33606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
33607 | } | |
33608 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33609 | { | |
33610 | arg2 = wxString_in_helper(obj1); | |
33611 | if (arg2 == NULL) SWIG_fail; | |
33612 | temp2 = true; | |
33613 | } | |
33614 | { | |
33615 | arg3 = &temp3; | |
33616 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
33617 | } | |
33618 | { | |
33619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33620 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
33621 | wxPyEndAllowThreads(__tstate); | |
33622 | if (PyErr_Occurred()) SWIG_fail; | |
33623 | } | |
33624 | resultobj = SWIG_Py_Void(); | |
33625 | { | |
33626 | if (temp2) | |
33627 | delete arg2; | |
33628 | } | |
33629 | return resultobj; | |
33630 | fail: | |
33631 | { | |
33632 | if (temp2) | |
33633 | delete arg2; | |
33634 | } | |
33635 | return NULL; | |
33636 | } | |
33637 | ||
33638 | ||
33639 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33640 | PyObject *resultobj = 0; | |
33641 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33642 | wxString *arg2 = 0 ; | |
33643 | int arg3 ; | |
33644 | int arg4 ; | |
33645 | int arg5 ; | |
33646 | void *argp1 = 0 ; | |
33647 | int res1 = 0 ; | |
33648 | bool temp2 = false ; | |
33649 | int val3 ; | |
33650 | int ecode3 = 0 ; | |
33651 | int val4 ; | |
33652 | int ecode4 = 0 ; | |
50efceee RD |
33653 | int val5 ; |
33654 | int ecode5 = 0 ; | |
554f62e9 RD |
33655 | PyObject * obj0 = 0 ; |
33656 | PyObject * obj1 = 0 ; | |
33657 | PyObject * obj2 = 0 ; | |
33658 | PyObject * obj3 = 0 ; | |
33659 | PyObject * obj4 = 0 ; | |
554f62e9 | 33660 | char * kwnames[] = { |
50efceee | 33661 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
554f62e9 RD |
33662 | }; |
33663 | ||
50efceee RD |
33664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
33665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
554f62e9 | 33666 | if (!SWIG_IsOK(res1)) { |
50efceee RD |
33667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
33668 | } | |
33669 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33670 | { | |
33671 | arg2 = wxString_in_helper(obj1); | |
33672 | if (arg2 == NULL) SWIG_fail; | |
33673 | temp2 = true; | |
554f62e9 | 33674 | } |
554f62e9 RD |
33675 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
33676 | if (!SWIG_IsOK(ecode3)) { | |
50efceee | 33677 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
554f62e9 RD |
33678 | } |
33679 | arg3 = static_cast< int >(val3); | |
33680 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33681 | if (!SWIG_IsOK(ecode4)) { | |
50efceee | 33682 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
554f62e9 RD |
33683 | } |
33684 | arg4 = static_cast< int >(val4); | |
33685 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33686 | if (!SWIG_IsOK(ecode5)) { | |
50efceee | 33687 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
554f62e9 RD |
33688 | } |
33689 | arg5 = static_cast< int >(val5); | |
554f62e9 RD |
33690 | { |
33691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33692 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
554f62e9 RD |
33693 | wxPyEndAllowThreads(__tstate); |
33694 | if (PyErr_Occurred()) SWIG_fail; | |
33695 | } | |
50efceee | 33696 | resultobj = SWIG_Py_Void(); |
554f62e9 | 33697 | { |
50efceee RD |
33698 | if (temp2) |
33699 | delete arg2; | |
554f62e9 RD |
33700 | } |
33701 | return resultobj; | |
33702 | fail: | |
33703 | { | |
50efceee RD |
33704 | if (temp2) |
33705 | delete arg2; | |
554f62e9 RD |
33706 | } |
33707 | return NULL; | |
33708 | } | |
33709 | ||
33710 | ||
50efceee RD |
33711 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33712 | PyObject *obj; | |
33713 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33714 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
33715 | return SWIG_Py_Void(); | |
33716 | } | |
33717 | ||
33718 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33719 | return SWIG_Python_InitShadowInstance(args); | |
33720 | } | |
33721 | ||
33722 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
554f62e9 | 33723 | PyObject *resultobj = 0; |
50efceee | 33724 | wxFontList *result = 0 ; |
554f62e9 | 33725 | |
50efceee | 33726 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
554f62e9 RD |
33727 | { |
33728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33729 | result = (wxFontList *)_wxPyInitTheFontList(); |
554f62e9 RD |
33730 | wxPyEndAllowThreads(__tstate); |
33731 | if (PyErr_Occurred()) SWIG_fail; | |
33732 | } | |
50efceee | 33733 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
554f62e9 RD |
33734 | return resultobj; |
33735 | fail: | |
33736 | return NULL; | |
33737 | } | |
33738 | ||
33739 | ||
50efceee | 33740 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 33741 | PyObject *resultobj = 0; |
50efceee | 33742 | wxPenList *result = 0 ; |
554f62e9 | 33743 | |
50efceee | 33744 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
554f62e9 RD |
33745 | { |
33746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33747 | result = (wxPenList *)_wxPyInitThePenList(); |
554f62e9 RD |
33748 | wxPyEndAllowThreads(__tstate); |
33749 | if (PyErr_Occurred()) SWIG_fail; | |
33750 | } | |
50efceee | 33751 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
554f62e9 RD |
33752 | return resultobj; |
33753 | fail: | |
33754 | return NULL; | |
33755 | } | |
33756 | ||
33757 | ||
50efceee RD |
33758 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33759 | PyObject *resultobj = 0; | |
33760 | wxBrushList *result = 0 ; | |
554f62e9 | 33761 | |
50efceee RD |
33762 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
33763 | { | |
33764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33765 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
33766 | wxPyEndAllowThreads(__tstate); | |
33767 | if (PyErr_Occurred()) SWIG_fail; | |
33768 | } | |
33769 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33770 | return resultobj; | |
33771 | fail: | |
33772 | return NULL; | |
554f62e9 RD |
33773 | } |
33774 | ||
33775 | ||
50efceee RD |
33776 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33777 | PyObject *resultobj = 0; | |
33778 | wxColourDatabase *result = 0 ; | |
554f62e9 | 33779 | |
50efceee RD |
33780 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
33781 | { | |
33782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33783 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
33784 | wxPyEndAllowThreads(__tstate); | |
33785 | if (PyErr_Occurred()) SWIG_fail; | |
33786 | } | |
33787 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33788 | return resultobj; | |
33789 | fail: | |
33790 | return NULL; | |
554f62e9 RD |
33791 | } |
33792 | ||
33793 | ||
33794 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33795 | PyObject *resultobj = 0; | |
33796 | wxEffects *result = 0 ; | |
33797 | ||
33798 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
33799 | { | |
33800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33801 | result = (wxEffects *)new wxEffects(); | |
33802 | wxPyEndAllowThreads(__tstate); | |
33803 | if (PyErr_Occurred()) SWIG_fail; | |
33804 | } | |
33805 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
33806 | return resultobj; | |
33807 | fail: | |
33808 | return NULL; | |
33809 | } | |
33810 | ||
33811 | ||
33812 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33813 | PyObject *resultobj = 0; | |
33814 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33815 | wxColour result; | |
33816 | void *argp1 = 0 ; | |
33817 | int res1 = 0 ; | |
33818 | PyObject *swig_obj[1] ; | |
33819 | ||
33820 | if (!args) SWIG_fail; | |
33821 | swig_obj[0] = args; | |
33822 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33823 | if (!SWIG_IsOK(res1)) { | |
33824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33825 | } | |
33826 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33827 | { | |
33828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33829 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
33830 | wxPyEndAllowThreads(__tstate); | |
33831 | if (PyErr_Occurred()) SWIG_fail; | |
33832 | } | |
33833 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33834 | return resultobj; | |
33835 | fail: | |
33836 | return NULL; | |
33837 | } | |
33838 | ||
33839 | ||
33840 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33841 | PyObject *resultobj = 0; | |
33842 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33843 | wxColour result; | |
33844 | void *argp1 = 0 ; | |
33845 | int res1 = 0 ; | |
33846 | PyObject *swig_obj[1] ; | |
33847 | ||
33848 | if (!args) SWIG_fail; | |
33849 | swig_obj[0] = args; | |
33850 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33851 | if (!SWIG_IsOK(res1)) { | |
33852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33853 | } | |
33854 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33855 | { | |
33856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33857 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
33858 | wxPyEndAllowThreads(__tstate); | |
33859 | if (PyErr_Occurred()) SWIG_fail; | |
33860 | } | |
33861 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33862 | return resultobj; | |
33863 | fail: | |
33864 | return NULL; | |
33865 | } | |
33866 | ||
33867 | ||
33868 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33869 | PyObject *resultobj = 0; | |
33870 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33871 | wxColour result; | |
33872 | void *argp1 = 0 ; | |
33873 | int res1 = 0 ; | |
33874 | PyObject *swig_obj[1] ; | |
33875 | ||
33876 | if (!args) SWIG_fail; | |
33877 | swig_obj[0] = args; | |
33878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33879 | if (!SWIG_IsOK(res1)) { | |
33880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33881 | } | |
33882 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33883 | { | |
33884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33885 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
33886 | wxPyEndAllowThreads(__tstate); | |
33887 | if (PyErr_Occurred()) SWIG_fail; | |
33888 | } | |
33889 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33890 | return resultobj; | |
33891 | fail: | |
33892 | return NULL; | |
33893 | } | |
33894 | ||
33895 | ||
33896 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33897 | PyObject *resultobj = 0; | |
33898 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33899 | wxColour result; | |
33900 | void *argp1 = 0 ; | |
33901 | int res1 = 0 ; | |
33902 | PyObject *swig_obj[1] ; | |
33903 | ||
33904 | if (!args) SWIG_fail; | |
33905 | swig_obj[0] = args; | |
33906 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33907 | if (!SWIG_IsOK(res1)) { | |
33908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33909 | } | |
33910 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33911 | { | |
33912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33913 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
33914 | wxPyEndAllowThreads(__tstate); | |
33915 | if (PyErr_Occurred()) SWIG_fail; | |
33916 | } | |
33917 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33918 | return resultobj; | |
33919 | fail: | |
33920 | return NULL; | |
33921 | } | |
33922 | ||
33923 | ||
33924 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33925 | PyObject *resultobj = 0; | |
33926 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33927 | wxColour result; | |
33928 | void *argp1 = 0 ; | |
33929 | int res1 = 0 ; | |
33930 | PyObject *swig_obj[1] ; | |
33931 | ||
33932 | if (!args) SWIG_fail; | |
33933 | swig_obj[0] = args; | |
33934 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33935 | if (!SWIG_IsOK(res1)) { | |
33936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33937 | } | |
33938 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33939 | { | |
33940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33941 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
33942 | wxPyEndAllowThreads(__tstate); | |
33943 | if (PyErr_Occurred()) SWIG_fail; | |
33944 | } | |
33945 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33946 | return resultobj; | |
33947 | fail: | |
33948 | return NULL; | |
33949 | } | |
33950 | ||
33951 | ||
33952 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33953 | PyObject *resultobj = 0; | |
33954 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33955 | wxColour *arg2 = 0 ; | |
33956 | void *argp1 = 0 ; | |
33957 | int res1 = 0 ; | |
33958 | wxColour temp2 ; | |
33959 | PyObject * obj0 = 0 ; | |
33960 | PyObject * obj1 = 0 ; | |
33961 | char * kwnames[] = { | |
33962 | (char *) "self",(char *) "c", NULL | |
33963 | }; | |
33964 | ||
33965 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33966 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33967 | if (!SWIG_IsOK(res1)) { | |
33968 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33969 | } | |
33970 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33971 | { | |
33972 | arg2 = &temp2; | |
33973 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33974 | } | |
33975 | { | |
33976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33977 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
33978 | wxPyEndAllowThreads(__tstate); | |
33979 | if (PyErr_Occurred()) SWIG_fail; | |
33980 | } | |
33981 | resultobj = SWIG_Py_Void(); | |
33982 | return resultobj; | |
33983 | fail: | |
33984 | return NULL; | |
33985 | } | |
33986 | ||
33987 | ||
33988 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33989 | PyObject *resultobj = 0; | |
33990 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33991 | wxColour *arg2 = 0 ; | |
33992 | void *argp1 = 0 ; | |
33993 | int res1 = 0 ; | |
33994 | wxColour temp2 ; | |
33995 | PyObject * obj0 = 0 ; | |
33996 | PyObject * obj1 = 0 ; | |
33997 | char * kwnames[] = { | |
33998 | (char *) "self",(char *) "c", NULL | |
33999 | }; | |
34000 | ||
34001 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
34002 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34003 | if (!SWIG_IsOK(res1)) { | |
34004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34005 | } | |
34006 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34007 | { | |
34008 | arg2 = &temp2; | |
34009 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
34010 | } | |
34011 | { | |
34012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34013 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
34014 | wxPyEndAllowThreads(__tstate); | |
34015 | if (PyErr_Occurred()) SWIG_fail; | |
34016 | } | |
34017 | resultobj = SWIG_Py_Void(); | |
34018 | return resultobj; | |
34019 | fail: | |
34020 | return NULL; | |
34021 | } | |
34022 | ||
34023 | ||
34024 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34025 | PyObject *resultobj = 0; | |
34026 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34027 | wxColour *arg2 = 0 ; | |
34028 | void *argp1 = 0 ; | |
34029 | int res1 = 0 ; | |
34030 | wxColour temp2 ; | |
34031 | PyObject * obj0 = 0 ; | |
34032 | PyObject * obj1 = 0 ; | |
34033 | char * kwnames[] = { | |
34034 | (char *) "self",(char *) "c", NULL | |
34035 | }; | |
34036 | ||
34037 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
34038 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34039 | if (!SWIG_IsOK(res1)) { | |
34040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34041 | } | |
34042 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34043 | { | |
34044 | arg2 = &temp2; | |
34045 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
34046 | } | |
34047 | { | |
34048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34049 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
34050 | wxPyEndAllowThreads(__tstate); | |
34051 | if (PyErr_Occurred()) SWIG_fail; | |
34052 | } | |
34053 | resultobj = SWIG_Py_Void(); | |
34054 | return resultobj; | |
34055 | fail: | |
34056 | return NULL; | |
34057 | } | |
34058 | ||
34059 | ||
34060 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34061 | PyObject *resultobj = 0; | |
34062 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34063 | wxColour *arg2 = 0 ; | |
34064 | void *argp1 = 0 ; | |
34065 | int res1 = 0 ; | |
34066 | wxColour temp2 ; | |
34067 | PyObject * obj0 = 0 ; | |
34068 | PyObject * obj1 = 0 ; | |
34069 | char * kwnames[] = { | |
34070 | (char *) "self",(char *) "c", NULL | |
34071 | }; | |
34072 | ||
34073 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
34074 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34075 | if (!SWIG_IsOK(res1)) { | |
34076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34077 | } | |
34078 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34079 | { | |
34080 | arg2 = &temp2; | |
34081 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
34082 | } | |
34083 | { | |
34084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34085 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
34086 | wxPyEndAllowThreads(__tstate); | |
34087 | if (PyErr_Occurred()) SWIG_fail; | |
34088 | } | |
34089 | resultobj = SWIG_Py_Void(); | |
34090 | return resultobj; | |
34091 | fail: | |
34092 | return NULL; | |
34093 | } | |
34094 | ||
34095 | ||
34096 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34097 | PyObject *resultobj = 0; | |
34098 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34099 | wxColour *arg2 = 0 ; | |
34100 | void *argp1 = 0 ; | |
34101 | int res1 = 0 ; | |
34102 | wxColour temp2 ; | |
34103 | PyObject * obj0 = 0 ; | |
34104 | PyObject * obj1 = 0 ; | |
34105 | char * kwnames[] = { | |
34106 | (char *) "self",(char *) "c", NULL | |
34107 | }; | |
34108 | ||
34109 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
34110 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34111 | if (!SWIG_IsOK(res1)) { | |
34112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34113 | } | |
34114 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34115 | { | |
34116 | arg2 = &temp2; | |
34117 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
34118 | } | |
34119 | { | |
34120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34121 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
34122 | wxPyEndAllowThreads(__tstate); | |
34123 | if (PyErr_Occurred()) SWIG_fail; | |
34124 | } | |
34125 | resultobj = SWIG_Py_Void(); | |
34126 | return resultobj; | |
34127 | fail: | |
34128 | return NULL; | |
34129 | } | |
34130 | ||
34131 | ||
34132 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34133 | PyObject *resultobj = 0; | |
34134 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34135 | wxColour *arg2 = 0 ; | |
34136 | wxColour *arg3 = 0 ; | |
34137 | wxColour *arg4 = 0 ; | |
34138 | wxColour *arg5 = 0 ; | |
34139 | wxColour *arg6 = 0 ; | |
34140 | void *argp1 = 0 ; | |
34141 | int res1 = 0 ; | |
34142 | wxColour temp2 ; | |
34143 | wxColour temp3 ; | |
34144 | wxColour temp4 ; | |
34145 | wxColour temp5 ; | |
34146 | wxColour temp6 ; | |
34147 | PyObject * obj0 = 0 ; | |
34148 | PyObject * obj1 = 0 ; | |
34149 | PyObject * obj2 = 0 ; | |
34150 | PyObject * obj3 = 0 ; | |
34151 | PyObject * obj4 = 0 ; | |
34152 | PyObject * obj5 = 0 ; | |
34153 | char * kwnames[] = { | |
34154 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
34155 | }; | |
34156 | ||
34157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
34158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34159 | if (!SWIG_IsOK(res1)) { | |
34160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34161 | } | |
34162 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34163 | { | |
34164 | arg2 = &temp2; | |
34165 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
34166 | } | |
34167 | { | |
34168 | arg3 = &temp3; | |
34169 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
34170 | } | |
34171 | { | |
34172 | arg4 = &temp4; | |
34173 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
34174 | } | |
34175 | { | |
34176 | arg5 = &temp5; | |
34177 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
34178 | } | |
34179 | { | |
34180 | arg6 = &temp6; | |
34181 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
34182 | } | |
34183 | { | |
34184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34185 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
34186 | wxPyEndAllowThreads(__tstate); | |
34187 | if (PyErr_Occurred()) SWIG_fail; | |
34188 | } | |
34189 | resultobj = SWIG_Py_Void(); | |
34190 | return resultobj; | |
34191 | fail: | |
34192 | return NULL; | |
34193 | } | |
34194 | ||
34195 | ||
34196 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34197 | PyObject *resultobj = 0; | |
34198 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34199 | wxDC *arg2 = 0 ; | |
34200 | wxRect *arg3 = 0 ; | |
34201 | int arg4 = (int) 1 ; | |
34202 | void *argp1 = 0 ; | |
34203 | int res1 = 0 ; | |
34204 | void *argp2 = 0 ; | |
34205 | int res2 = 0 ; | |
34206 | wxRect temp3 ; | |
34207 | int val4 ; | |
34208 | int ecode4 = 0 ; | |
34209 | PyObject * obj0 = 0 ; | |
34210 | PyObject * obj1 = 0 ; | |
34211 | PyObject * obj2 = 0 ; | |
34212 | PyObject * obj3 = 0 ; | |
34213 | char * kwnames[] = { | |
34214 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
34215 | }; | |
34216 | ||
34217 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34218 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34219 | if (!SWIG_IsOK(res1)) { | |
34220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34221 | } | |
34222 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34223 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
34224 | if (!SWIG_IsOK(res2)) { | |
34225 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
34226 | } | |
34227 | if (!argp2) { | |
34228 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
34229 | } | |
34230 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
34231 | { | |
34232 | arg3 = &temp3; | |
34233 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
34234 | } | |
34235 | if (obj3) { | |
34236 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34237 | if (!SWIG_IsOK(ecode4)) { | |
34238 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
34239 | } | |
34240 | arg4 = static_cast< int >(val4); | |
34241 | } | |
34242 | { | |
34243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34244 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
34245 | wxPyEndAllowThreads(__tstate); | |
34246 | if (PyErr_Occurred()) SWIG_fail; | |
34247 | } | |
34248 | resultobj = SWIG_Py_Void(); | |
34249 | return resultobj; | |
34250 | fail: | |
34251 | return NULL; | |
34252 | } | |
34253 | ||
34254 | ||
34255 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34256 | PyObject *resultobj = 0; | |
34257 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34258 | wxRect *arg2 = 0 ; | |
34259 | wxDC *arg3 = 0 ; | |
34260 | wxBitmap *arg4 = 0 ; | |
34261 | bool result; | |
34262 | void *argp1 = 0 ; | |
34263 | int res1 = 0 ; | |
34264 | wxRect temp2 ; | |
34265 | void *argp3 = 0 ; | |
34266 | int res3 = 0 ; | |
34267 | void *argp4 = 0 ; | |
34268 | int res4 = 0 ; | |
34269 | PyObject * obj0 = 0 ; | |
34270 | PyObject * obj1 = 0 ; | |
34271 | PyObject * obj2 = 0 ; | |
34272 | PyObject * obj3 = 0 ; | |
34273 | char * kwnames[] = { | |
34274 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
34275 | }; | |
34276 | ||
34277 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34278 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34279 | if (!SWIG_IsOK(res1)) { | |
34280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34281 | } | |
34282 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34283 | { | |
34284 | arg2 = &temp2; | |
34285 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
34286 | } | |
34287 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34288 | if (!SWIG_IsOK(res3)) { | |
34289 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34290 | } | |
34291 | if (!argp3) { | |
34292 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34293 | } | |
34294 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34295 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
34296 | if (!SWIG_IsOK(res4)) { | |
34297 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
34298 | } | |
34299 | if (!argp4) { | |
34300 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
34301 | } | |
34302 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
34303 | { | |
34304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34305 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
34306 | wxPyEndAllowThreads(__tstate); | |
34307 | if (PyErr_Occurred()) SWIG_fail; | |
34308 | } | |
34309 | { | |
34310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34311 | } | |
34312 | return resultobj; | |
34313 | fail: | |
34314 | return NULL; | |
34315 | } | |
34316 | ||
34317 | ||
34318 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34319 | PyObject *obj; | |
34320 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34321 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
34322 | return SWIG_Py_Void(); | |
34323 | } | |
34324 | ||
34325 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34326 | return SWIG_Python_InitShadowInstance(args); | |
34327 | } | |
34328 | ||
34329 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34330 | PyObject *resultobj = 0; | |
34331 | int arg1 ; | |
34332 | int arg2 ; | |
34333 | bool arg3 ; | |
34334 | wxSplitterRenderParams *result = 0 ; | |
34335 | int val1 ; | |
34336 | int ecode1 = 0 ; | |
34337 | int val2 ; | |
34338 | int ecode2 = 0 ; | |
34339 | bool val3 ; | |
34340 | int ecode3 = 0 ; | |
34341 | PyObject * obj0 = 0 ; | |
34342 | PyObject * obj1 = 0 ; | |
34343 | PyObject * obj2 = 0 ; | |
34344 | char * kwnames[] = { | |
34345 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
34346 | }; | |
34347 | ||
34348 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34349 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
34350 | if (!SWIG_IsOK(ecode1)) { | |
34351 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
34352 | } | |
34353 | arg1 = static_cast< int >(val1); | |
34354 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34355 | if (!SWIG_IsOK(ecode2)) { | |
34356 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
34357 | } | |
34358 | arg2 = static_cast< int >(val2); | |
34359 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34360 | if (!SWIG_IsOK(ecode3)) { | |
34361 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
34362 | } | |
34363 | arg3 = static_cast< bool >(val3); | |
34364 | { | |
34365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34366 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
34367 | wxPyEndAllowThreads(__tstate); | |
34368 | if (PyErr_Occurred()) SWIG_fail; | |
34369 | } | |
34370 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
34371 | return resultobj; | |
34372 | fail: | |
34373 | return NULL; | |
34374 | } | |
34375 | ||
34376 | ||
34377 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34378 | PyObject *resultobj = 0; | |
34379 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34380 | void *argp1 = 0 ; | |
34381 | int res1 = 0 ; | |
34382 | PyObject *swig_obj[1] ; | |
34383 | ||
34384 | if (!args) SWIG_fail; | |
34385 | swig_obj[0] = args; | |
34386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
34387 | if (!SWIG_IsOK(res1)) { | |
34388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34389 | } | |
34390 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34391 | { | |
34392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34393 | delete arg1; | |
34394 | ||
34395 | wxPyEndAllowThreads(__tstate); | |
34396 | if (PyErr_Occurred()) SWIG_fail; | |
34397 | } | |
34398 | resultobj = SWIG_Py_Void(); | |
34399 | return resultobj; | |
34400 | fail: | |
34401 | return NULL; | |
34402 | } | |
34403 | ||
34404 | ||
34405 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34406 | PyObject *resultobj = 0; | |
34407 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34408 | int result; | |
34409 | void *argp1 = 0 ; | |
34410 | int res1 = 0 ; | |
34411 | PyObject *swig_obj[1] ; | |
34412 | ||
34413 | if (!args) SWIG_fail; | |
34414 | swig_obj[0] = args; | |
34415 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
34416 | if (!SWIG_IsOK(res1)) { | |
34417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34418 | } | |
34419 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34420 | result = (int)(int) ((arg1)->widthSash); | |
34421 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34422 | return resultobj; | |
34423 | fail: | |
34424 | return NULL; | |
34425 | } | |
34426 | ||
34427 | ||
34428 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34429 | PyObject *resultobj = 0; | |
34430 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34431 | int result; | |
34432 | void *argp1 = 0 ; | |
34433 | int res1 = 0 ; | |
34434 | PyObject *swig_obj[1] ; | |
34435 | ||
34436 | if (!args) SWIG_fail; | |
34437 | swig_obj[0] = args; | |
34438 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
34439 | if (!SWIG_IsOK(res1)) { | |
34440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34441 | } | |
34442 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34443 | result = (int)(int) ((arg1)->border); | |
34444 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34445 | return resultobj; | |
34446 | fail: | |
34447 | return NULL; | |
34448 | } | |
34449 | ||
34450 | ||
34451 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34452 | PyObject *resultobj = 0; | |
34453 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34454 | bool result; | |
34455 | void *argp1 = 0 ; | |
34456 | int res1 = 0 ; | |
34457 | PyObject *swig_obj[1] ; | |
34458 | ||
34459 | if (!args) SWIG_fail; | |
34460 | swig_obj[0] = args; | |
34461 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
34462 | if (!SWIG_IsOK(res1)) { | |
34463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34464 | } | |
34465 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34466 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
34467 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
34468 | return resultobj; | |
34469 | fail: | |
34470 | return NULL; | |
34471 | } | |
34472 | ||
34473 | ||
34474 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34475 | PyObject *obj; | |
34476 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34477 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
34478 | return SWIG_Py_Void(); | |
34479 | } | |
34480 | ||
34481 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34482 | return SWIG_Python_InitShadowInstance(args); | |
34483 | } | |
34484 | ||
33d6fd3b RD |
34485 | SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34486 | PyObject *resultobj = 0; | |
34487 | wxHeaderButtonParams *result = 0 ; | |
34488 | ||
34489 | if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail; | |
34490 | { | |
34491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34492 | result = (wxHeaderButtonParams *)new wxHeaderButtonParams(); | |
34493 | wxPyEndAllowThreads(__tstate); | |
34494 | if (PyErr_Occurred()) SWIG_fail; | |
34495 | } | |
34496 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 ); | |
34497 | return resultobj; | |
34498 | fail: | |
34499 | return NULL; | |
34500 | } | |
34501 | ||
34502 | ||
34503 | SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34504 | PyObject *resultobj = 0; | |
34505 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34506 | void *argp1 = 0 ; | |
34507 | int res1 = 0 ; | |
34508 | PyObject *swig_obj[1] ; | |
34509 | ||
34510 | if (!args) SWIG_fail; | |
34511 | swig_obj[0] = args; | |
34512 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 ); | |
34513 | if (!SWIG_IsOK(res1)) { | |
34514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34515 | } | |
34516 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34517 | { | |
34518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34519 | delete arg1; | |
34520 | ||
34521 | wxPyEndAllowThreads(__tstate); | |
34522 | if (PyErr_Occurred()) SWIG_fail; | |
34523 | } | |
34524 | resultobj = SWIG_Py_Void(); | |
34525 | return resultobj; | |
34526 | fail: | |
34527 | return NULL; | |
34528 | } | |
34529 | ||
34530 | ||
34531 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34532 | PyObject *resultobj = 0; | |
34533 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34534 | wxColour *arg2 = (wxColour *) 0 ; | |
34535 | void *argp1 = 0 ; | |
34536 | int res1 = 0 ; | |
34537 | wxColour temp2 ; | |
34538 | PyObject *swig_obj[2] ; | |
34539 | ||
34540 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail; | |
34541 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34542 | if (!SWIG_IsOK(res1)) { | |
34543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34544 | } | |
34545 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34546 | { | |
34547 | arg2 = &temp2; | |
34548 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34549 | } | |
34550 | if (arg1) (arg1)->m_arrowColour = *arg2; | |
34551 | ||
34552 | resultobj = SWIG_Py_Void(); | |
34553 | return resultobj; | |
34554 | fail: | |
34555 | return NULL; | |
34556 | } | |
34557 | ||
34558 | ||
34559 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34560 | PyObject *resultobj = 0; | |
34561 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34562 | wxColour *result = 0 ; | |
34563 | void *argp1 = 0 ; | |
34564 | int res1 = 0 ; | |
34565 | PyObject *swig_obj[1] ; | |
34566 | ||
34567 | if (!args) SWIG_fail; | |
34568 | swig_obj[0] = args; | |
34569 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34570 | if (!SWIG_IsOK(res1)) { | |
34571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34572 | } | |
34573 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34574 | result = (wxColour *)& ((arg1)->m_arrowColour); | |
34575 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34576 | return resultobj; | |
34577 | fail: | |
34578 | return NULL; | |
34579 | } | |
34580 | ||
34581 | ||
34582 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34583 | PyObject *resultobj = 0; | |
34584 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34585 | wxColour *arg2 = (wxColour *) 0 ; | |
34586 | void *argp1 = 0 ; | |
34587 | int res1 = 0 ; | |
34588 | wxColour temp2 ; | |
34589 | PyObject *swig_obj[2] ; | |
34590 | ||
34591 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail; | |
34592 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34593 | if (!SWIG_IsOK(res1)) { | |
34594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34595 | } | |
34596 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34597 | { | |
34598 | arg2 = &temp2; | |
34599 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34600 | } | |
34601 | if (arg1) (arg1)->m_selectionColour = *arg2; | |
34602 | ||
34603 | resultobj = SWIG_Py_Void(); | |
34604 | return resultobj; | |
34605 | fail: | |
34606 | return NULL; | |
34607 | } | |
34608 | ||
34609 | ||
34610 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34611 | PyObject *resultobj = 0; | |
34612 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34613 | wxColour *result = 0 ; | |
34614 | void *argp1 = 0 ; | |
34615 | int res1 = 0 ; | |
34616 | PyObject *swig_obj[1] ; | |
34617 | ||
34618 | if (!args) SWIG_fail; | |
34619 | swig_obj[0] = args; | |
34620 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34621 | if (!SWIG_IsOK(res1)) { | |
34622 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34623 | } | |
34624 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34625 | result = (wxColour *)& ((arg1)->m_selectionColour); | |
34626 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34627 | return resultobj; | |
34628 | fail: | |
34629 | return NULL; | |
34630 | } | |
34631 | ||
34632 | ||
34633 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34634 | PyObject *resultobj = 0; | |
34635 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34636 | wxString *arg2 = (wxString *) 0 ; | |
34637 | void *argp1 = 0 ; | |
34638 | int res1 = 0 ; | |
34639 | bool temp2 = false ; | |
34640 | PyObject *swig_obj[2] ; | |
34641 | ||
34642 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail; | |
34643 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34644 | if (!SWIG_IsOK(res1)) { | |
34645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34646 | } | |
34647 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34648 | { | |
34649 | arg2 = wxString_in_helper(swig_obj[1]); | |
34650 | if (arg2 == NULL) SWIG_fail; | |
34651 | temp2 = true; | |
34652 | } | |
34653 | if (arg1) (arg1)->m_labelText = *arg2; | |
34654 | ||
34655 | resultobj = SWIG_Py_Void(); | |
34656 | { | |
34657 | if (temp2) | |
34658 | delete arg2; | |
34659 | } | |
34660 | return resultobj; | |
34661 | fail: | |
34662 | { | |
34663 | if (temp2) | |
34664 | delete arg2; | |
34665 | } | |
34666 | return NULL; | |
34667 | } | |
34668 | ||
34669 | ||
34670 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34671 | PyObject *resultobj = 0; | |
34672 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34673 | wxString *result = 0 ; | |
34674 | void *argp1 = 0 ; | |
34675 | int res1 = 0 ; | |
34676 | PyObject *swig_obj[1] ; | |
34677 | ||
34678 | if (!args) SWIG_fail; | |
34679 | swig_obj[0] = args; | |
34680 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34681 | if (!SWIG_IsOK(res1)) { | |
34682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34683 | } | |
34684 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34685 | result = (wxString *)& ((arg1)->m_labelText); | |
34686 | { | |
34687 | #if wxUSE_UNICODE | |
34688 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
34689 | #else | |
34690 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
34691 | #endif | |
34692 | } | |
34693 | return resultobj; | |
34694 | fail: | |
34695 | return NULL; | |
34696 | } | |
34697 | ||
34698 | ||
34699 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34700 | PyObject *resultobj = 0; | |
34701 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34702 | wxFont *arg2 = (wxFont *) 0 ; | |
34703 | void *argp1 = 0 ; | |
34704 | int res1 = 0 ; | |
34705 | void *argp2 = 0 ; | |
34706 | int res2 = 0 ; | |
34707 | PyObject *swig_obj[2] ; | |
34708 | ||
34709 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail; | |
34710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34711 | if (!SWIG_IsOK(res1)) { | |
34712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34713 | } | |
34714 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34715 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
34716 | if (!SWIG_IsOK(res2)) { | |
34717 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'"); | |
34718 | } | |
34719 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
34720 | if (arg1) (arg1)->m_labelFont = *arg2; | |
34721 | ||
34722 | resultobj = SWIG_Py_Void(); | |
34723 | return resultobj; | |
34724 | fail: | |
34725 | return NULL; | |
34726 | } | |
34727 | ||
34728 | ||
34729 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34730 | PyObject *resultobj = 0; | |
34731 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34732 | wxFont *result = 0 ; | |
34733 | void *argp1 = 0 ; | |
34734 | int res1 = 0 ; | |
34735 | PyObject *swig_obj[1] ; | |
34736 | ||
34737 | if (!args) SWIG_fail; | |
34738 | swig_obj[0] = args; | |
34739 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34740 | if (!SWIG_IsOK(res1)) { | |
34741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34742 | } | |
34743 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34744 | result = (wxFont *)& ((arg1)->m_labelFont); | |
34745 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
34746 | return resultobj; | |
34747 | fail: | |
34748 | return NULL; | |
34749 | } | |
34750 | ||
34751 | ||
34752 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34753 | PyObject *resultobj = 0; | |
34754 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34755 | wxColour *arg2 = (wxColour *) 0 ; | |
34756 | void *argp1 = 0 ; | |
34757 | int res1 = 0 ; | |
34758 | wxColour temp2 ; | |
34759 | PyObject *swig_obj[2] ; | |
34760 | ||
34761 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail; | |
34762 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34763 | if (!SWIG_IsOK(res1)) { | |
34764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34765 | } | |
34766 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34767 | { | |
34768 | arg2 = &temp2; | |
34769 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34770 | } | |
34771 | if (arg1) (arg1)->m_labelColour = *arg2; | |
34772 | ||
34773 | resultobj = SWIG_Py_Void(); | |
34774 | return resultobj; | |
34775 | fail: | |
34776 | return NULL; | |
34777 | } | |
34778 | ||
34779 | ||
34780 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34781 | PyObject *resultobj = 0; | |
34782 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34783 | wxColour *result = 0 ; | |
34784 | void *argp1 = 0 ; | |
34785 | int res1 = 0 ; | |
34786 | PyObject *swig_obj[1] ; | |
34787 | ||
34788 | if (!args) SWIG_fail; | |
34789 | swig_obj[0] = args; | |
34790 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34791 | if (!SWIG_IsOK(res1)) { | |
34792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34793 | } | |
34794 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34795 | result = (wxColour *)& ((arg1)->m_labelColour); | |
34796 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34797 | return resultobj; | |
34798 | fail: | |
34799 | return NULL; | |
34800 | } | |
34801 | ||
34802 | ||
34803 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34804 | PyObject *resultobj = 0; | |
34805 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34806 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
34807 | void *argp1 = 0 ; | |
34808 | int res1 = 0 ; | |
34809 | void *argp2 = 0 ; | |
34810 | int res2 = 0 ; | |
34811 | PyObject *swig_obj[2] ; | |
34812 | ||
34813 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail; | |
34814 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34815 | if (!SWIG_IsOK(res1)) { | |
34816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34817 | } | |
34818 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34819 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
34820 | if (!SWIG_IsOK(res2)) { | |
34821 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
34822 | } | |
34823 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
34824 | if (arg1) (arg1)->m_labelBitmap = *arg2; | |
34825 | ||
34826 | resultobj = SWIG_Py_Void(); | |
34827 | return resultobj; | |
34828 | fail: | |
34829 | return NULL; | |
34830 | } | |
34831 | ||
34832 | ||
34833 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34834 | PyObject *resultobj = 0; | |
34835 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34836 | wxBitmap *result = 0 ; | |
34837 | void *argp1 = 0 ; | |
34838 | int res1 = 0 ; | |
34839 | PyObject *swig_obj[1] ; | |
34840 | ||
34841 | if (!args) SWIG_fail; | |
34842 | swig_obj[0] = args; | |
34843 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34844 | if (!SWIG_IsOK(res1)) { | |
34845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34846 | } | |
34847 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34848 | result = (wxBitmap *)& ((arg1)->m_labelBitmap); | |
34849 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
34850 | return resultobj; | |
34851 | fail: | |
34852 | return NULL; | |
34853 | } | |
34854 | ||
34855 | ||
34856 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34857 | PyObject *resultobj = 0; | |
34858 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34859 | int arg2 ; | |
34860 | void *argp1 = 0 ; | |
34861 | int res1 = 0 ; | |
34862 | int val2 ; | |
34863 | int ecode2 = 0 ; | |
34864 | PyObject *swig_obj[2] ; | |
34865 | ||
34866 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail; | |
34867 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34868 | if (!SWIG_IsOK(res1)) { | |
34869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34870 | } | |
34871 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34872 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
34873 | if (!SWIG_IsOK(ecode2)) { | |
34874 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'"); | |
34875 | } | |
34876 | arg2 = static_cast< int >(val2); | |
34877 | if (arg1) (arg1)->m_labelAlignment = arg2; | |
34878 | ||
34879 | resultobj = SWIG_Py_Void(); | |
34880 | return resultobj; | |
34881 | fail: | |
34882 | return NULL; | |
34883 | } | |
34884 | ||
34885 | ||
34886 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34887 | PyObject *resultobj = 0; | |
34888 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34889 | int result; | |
34890 | void *argp1 = 0 ; | |
34891 | int res1 = 0 ; | |
34892 | PyObject *swig_obj[1] ; | |
34893 | ||
34894 | if (!args) SWIG_fail; | |
34895 | swig_obj[0] = args; | |
34896 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34897 | if (!SWIG_IsOK(res1)) { | |
34898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34899 | } | |
34900 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34901 | result = (int) ((arg1)->m_labelAlignment); | |
34902 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34903 | return resultobj; | |
34904 | fail: | |
34905 | return NULL; | |
34906 | } | |
34907 | ||
34908 | ||
34909 | SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34910 | PyObject *obj; | |
34911 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34912 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj)); | |
34913 | return SWIG_Py_Void(); | |
34914 | } | |
34915 | ||
34916 | SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34917 | return SWIG_Python_InitShadowInstance(args); | |
34918 | } | |
34919 | ||
554f62e9 RD |
34920 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34921 | PyObject *resultobj = 0; | |
34922 | int arg1 ; | |
34923 | int arg2 ; | |
34924 | wxRendererVersion *result = 0 ; | |
34925 | int val1 ; | |
34926 | int ecode1 = 0 ; | |
34927 | int val2 ; | |
34928 | int ecode2 = 0 ; | |
34929 | PyObject * obj0 = 0 ; | |
34930 | PyObject * obj1 = 0 ; | |
34931 | char * kwnames[] = { | |
34932 | (char *) "version_",(char *) "age_", NULL | |
34933 | }; | |
34934 | ||
34935 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
34936 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
34937 | if (!SWIG_IsOK(ecode1)) { | |
34938 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
34939 | } | |
34940 | arg1 = static_cast< int >(val1); | |
34941 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34942 | if (!SWIG_IsOK(ecode2)) { | |
34943 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
34944 | } | |
34945 | arg2 = static_cast< int >(val2); | |
34946 | { | |
34947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34948 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
34949 | wxPyEndAllowThreads(__tstate); | |
34950 | if (PyErr_Occurred()) SWIG_fail; | |
34951 | } | |
34952 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
34953 | return resultobj; | |
34954 | fail: | |
34955 | return NULL; | |
34956 | } | |
34957 | ||
34958 | ||
34959 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34960 | PyObject *resultobj = 0; | |
34961 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34962 | void *argp1 = 0 ; | |
34963 | int res1 = 0 ; | |
34964 | PyObject *swig_obj[1] ; | |
34965 | ||
34966 | if (!args) SWIG_fail; | |
34967 | swig_obj[0] = args; | |
34968 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
34969 | if (!SWIG_IsOK(res1)) { | |
34970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34971 | } | |
34972 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34973 | { | |
34974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34975 | delete arg1; | |
34976 | ||
34977 | wxPyEndAllowThreads(__tstate); | |
34978 | if (PyErr_Occurred()) SWIG_fail; | |
34979 | } | |
34980 | resultobj = SWIG_Py_Void(); | |
34981 | return resultobj; | |
34982 | fail: | |
34983 | return NULL; | |
34984 | } | |
34985 | ||
34986 | ||
34987 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34988 | PyObject *resultobj = 0; | |
34989 | wxRendererVersion *arg1 = 0 ; | |
34990 | bool result; | |
34991 | void *argp1 = 0 ; | |
34992 | int res1 = 0 ; | |
34993 | PyObject * obj0 = 0 ; | |
34994 | char * kwnames[] = { | |
34995 | (char *) "ver", NULL | |
34996 | }; | |
34997 | ||
34998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
34999 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
35000 | if (!SWIG_IsOK(res1)) { | |
35001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
35002 | } | |
35003 | if (!argp1) { | |
35004 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
35005 | } | |
35006 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
35007 | { | |
35008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35009 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
35010 | wxPyEndAllowThreads(__tstate); | |
35011 | if (PyErr_Occurred()) SWIG_fail; | |
35012 | } | |
35013 | { | |
35014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35015 | } | |
35016 | return resultobj; | |
35017 | fail: | |
35018 | return NULL; | |
35019 | } | |
35020 | ||
35021 | ||
35022 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35023 | PyObject *resultobj = 0; | |
35024 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
35025 | int result; | |
35026 | void *argp1 = 0 ; | |
35027 | int res1 = 0 ; | |
35028 | PyObject *swig_obj[1] ; | |
35029 | ||
35030 | if (!args) SWIG_fail; | |
35031 | swig_obj[0] = args; | |
35032 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
35033 | if (!SWIG_IsOK(res1)) { | |
35034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
35035 | } | |
35036 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
35037 | result = (int)(int) ((arg1)->version); | |
35038 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35039 | return resultobj; | |
35040 | fail: | |
35041 | return NULL; | |
35042 | } | |
35043 | ||
35044 | ||
35045 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35046 | PyObject *resultobj = 0; | |
35047 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
35048 | int result; | |
35049 | void *argp1 = 0 ; | |
35050 | int res1 = 0 ; | |
35051 | PyObject *swig_obj[1] ; | |
35052 | ||
35053 | if (!args) SWIG_fail; | |
35054 | swig_obj[0] = args; | |
35055 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
35056 | if (!SWIG_IsOK(res1)) { | |
35057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
35058 | } | |
35059 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
35060 | result = (int)(int) ((arg1)->age); | |
35061 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35062 | return resultobj; | |
35063 | fail: | |
35064 | return NULL; | |
35065 | } | |
35066 | ||
35067 | ||
35068 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35069 | PyObject *obj; | |
35070 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
35071 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
35072 | return SWIG_Py_Void(); | |
35073 | } | |
35074 | ||
35075 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35076 | return SWIG_Python_InitShadowInstance(args); | |
35077 | } | |
35078 | ||
35079 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35080 | PyObject *resultobj = 0; | |
35081 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35082 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35083 | wxDC *arg3 = 0 ; | |
35084 | wxRect *arg4 = 0 ; | |
35085 | int arg5 = (int) 0 ; | |
33d6fd3b RD |
35086 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; |
35087 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
723282b6 | 35088 | int result; |
554f62e9 RD |
35089 | void *argp1 = 0 ; |
35090 | int res1 = 0 ; | |
35091 | void *argp2 = 0 ; | |
35092 | int res2 = 0 ; | |
35093 | void *argp3 = 0 ; | |
35094 | int res3 = 0 ; | |
35095 | wxRect temp4 ; | |
35096 | int val5 ; | |
35097 | int ecode5 = 0 ; | |
33d6fd3b RD |
35098 | int val6 ; |
35099 | int ecode6 = 0 ; | |
35100 | void *argp7 = 0 ; | |
35101 | int res7 = 0 ; | |
554f62e9 RD |
35102 | PyObject * obj0 = 0 ; |
35103 | PyObject * obj1 = 0 ; | |
35104 | PyObject * obj2 = 0 ; | |
35105 | PyObject * obj3 = 0 ; | |
35106 | PyObject * obj4 = 0 ; | |
33d6fd3b RD |
35107 | PyObject * obj5 = 0 ; |
35108 | PyObject * obj6 = 0 ; | |
554f62e9 | 35109 | char * kwnames[] = { |
33d6fd3b | 35110 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL |
554f62e9 RD |
35111 | }; |
35112 | ||
33d6fd3b | 35113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
554f62e9 RD |
35114 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
35115 | if (!SWIG_IsOK(res1)) { | |
35116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35117 | } | |
35118 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35119 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35120 | if (!SWIG_IsOK(res2)) { | |
35121 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35122 | } | |
35123 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35124 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35125 | if (!SWIG_IsOK(res3)) { | |
35126 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35127 | } | |
35128 | if (!argp3) { | |
35129 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35130 | } | |
35131 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35132 | { | |
35133 | arg4 = &temp4; | |
35134 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35135 | } | |
35136 | if (obj4) { | |
35137 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35138 | if (!SWIG_IsOK(ecode5)) { | |
35139 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
35140 | } | |
35141 | arg5 = static_cast< int >(val5); | |
35142 | } | |
33d6fd3b RD |
35143 | if (obj5) { |
35144 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35145 | if (!SWIG_IsOK(ecode6)) { | |
35146 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
35147 | } | |
35148 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
35149 | } | |
35150 | if (obj6) { | |
35151 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
35152 | if (!SWIG_IsOK(res7)) { | |
35153 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
35154 | } | |
35155 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
35156 | } | |
35157 | { | |
35158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
723282b6 | 35159 | result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
33d6fd3b RD |
35160 | wxPyEndAllowThreads(__tstate); |
35161 | if (PyErr_Occurred()) SWIG_fail; | |
35162 | } | |
723282b6 | 35163 | resultobj = SWIG_From_int(static_cast< int >(result)); |
33d6fd3b RD |
35164 | return resultobj; |
35165 | fail: | |
35166 | return NULL; | |
35167 | } | |
35168 | ||
35169 | ||
35170 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35171 | PyObject *resultobj = 0; | |
35172 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35173 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35174 | wxDC *arg3 = 0 ; | |
35175 | wxRect *arg4 = 0 ; | |
35176 | int arg5 = (int) 0 ; | |
35177 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; | |
35178 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
723282b6 | 35179 | int result; |
33d6fd3b RD |
35180 | void *argp1 = 0 ; |
35181 | int res1 = 0 ; | |
35182 | void *argp2 = 0 ; | |
35183 | int res2 = 0 ; | |
35184 | void *argp3 = 0 ; | |
35185 | int res3 = 0 ; | |
35186 | wxRect temp4 ; | |
35187 | int val5 ; | |
35188 | int ecode5 = 0 ; | |
35189 | int val6 ; | |
35190 | int ecode6 = 0 ; | |
35191 | void *argp7 = 0 ; | |
35192 | int res7 = 0 ; | |
35193 | PyObject * obj0 = 0 ; | |
35194 | PyObject * obj1 = 0 ; | |
35195 | PyObject * obj2 = 0 ; | |
35196 | PyObject * obj3 = 0 ; | |
35197 | PyObject * obj4 = 0 ; | |
35198 | PyObject * obj5 = 0 ; | |
35199 | PyObject * obj6 = 0 ; | |
35200 | char * kwnames[] = { | |
35201 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL | |
35202 | }; | |
35203 | ||
35204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35205 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35206 | if (!SWIG_IsOK(res1)) { | |
35207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35208 | } | |
35209 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35210 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35211 | if (!SWIG_IsOK(res2)) { | |
35212 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35213 | } | |
35214 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35215 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35216 | if (!SWIG_IsOK(res3)) { | |
35217 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35218 | } | |
35219 | if (!argp3) { | |
35220 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35221 | } | |
35222 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35223 | { | |
35224 | arg4 = &temp4; | |
35225 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35226 | } | |
35227 | if (obj4) { | |
35228 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35229 | if (!SWIG_IsOK(ecode5)) { | |
35230 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'"); | |
35231 | } | |
35232 | arg5 = static_cast< int >(val5); | |
35233 | } | |
35234 | if (obj5) { | |
35235 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35236 | if (!SWIG_IsOK(ecode6)) { | |
35237 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
35238 | } | |
35239 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
35240 | } | |
35241 | if (obj6) { | |
35242 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
35243 | if (!SWIG_IsOK(res7)) { | |
35244 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
35245 | } | |
35246 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
35247 | } | |
554f62e9 RD |
35248 | { |
35249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
723282b6 | 35250 | result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
554f62e9 RD |
35251 | wxPyEndAllowThreads(__tstate); |
35252 | if (PyErr_Occurred()) SWIG_fail; | |
35253 | } | |
723282b6 | 35254 | resultobj = SWIG_From_int(static_cast< int >(result)); |
554f62e9 RD |
35255 | return resultobj; |
35256 | fail: | |
35257 | return NULL; | |
35258 | } | |
35259 | ||
35260 | ||
33d6fd3b RD |
35261 | SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35262 | PyObject *resultobj = 0; | |
35263 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35264 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35265 | int result; | |
35266 | void *argp1 = 0 ; | |
35267 | int res1 = 0 ; | |
35268 | void *argp2 = 0 ; | |
35269 | int res2 = 0 ; | |
35270 | PyObject * obj0 = 0 ; | |
35271 | PyObject * obj1 = 0 ; | |
35272 | char * kwnames[] = { | |
35273 | (char *) "self",(char *) "win", NULL | |
35274 | }; | |
35275 | ||
35276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
35277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35278 | if (!SWIG_IsOK(res1)) { | |
35279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35280 | } | |
35281 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35282 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35283 | if (!SWIG_IsOK(res2)) { | |
35284 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35285 | } | |
35286 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35287 | { | |
35288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35289 | result = (int)(arg1)->GetHeaderButtonHeight(arg2); | |
35290 | wxPyEndAllowThreads(__tstate); | |
35291 | if (PyErr_Occurred()) SWIG_fail; | |
35292 | } | |
35293 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35294 | return resultobj; | |
35295 | fail: | |
35296 | return NULL; | |
35297 | } | |
35298 | ||
35299 | ||
554f62e9 RD |
35300 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35301 | PyObject *resultobj = 0; | |
35302 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35303 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35304 | wxDC *arg3 = 0 ; | |
35305 | wxRect *arg4 = 0 ; | |
35306 | int arg5 = (int) 0 ; | |
35307 | void *argp1 = 0 ; | |
35308 | int res1 = 0 ; | |
35309 | void *argp2 = 0 ; | |
35310 | int res2 = 0 ; | |
35311 | void *argp3 = 0 ; | |
35312 | int res3 = 0 ; | |
35313 | wxRect temp4 ; | |
35314 | int val5 ; | |
35315 | int ecode5 = 0 ; | |
35316 | PyObject * obj0 = 0 ; | |
35317 | PyObject * obj1 = 0 ; | |
35318 | PyObject * obj2 = 0 ; | |
35319 | PyObject * obj3 = 0 ; | |
35320 | PyObject * obj4 = 0 ; | |
35321 | char * kwnames[] = { | |
35322 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35323 | }; | |
35324 | ||
35325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35327 | if (!SWIG_IsOK(res1)) { | |
35328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35329 | } | |
35330 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35331 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35332 | if (!SWIG_IsOK(res2)) { | |
35333 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35334 | } | |
35335 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35336 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35337 | if (!SWIG_IsOK(res3)) { | |
35338 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35339 | } | |
35340 | if (!argp3) { | |
35341 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35342 | } | |
35343 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35344 | { | |
35345 | arg4 = &temp4; | |
35346 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35347 | } | |
35348 | if (obj4) { | |
35349 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35350 | if (!SWIG_IsOK(ecode5)) { | |
35351 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
35352 | } | |
35353 | arg5 = static_cast< int >(val5); | |
35354 | } | |
35355 | { | |
35356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35357 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35358 | wxPyEndAllowThreads(__tstate); | |
35359 | if (PyErr_Occurred()) SWIG_fail; | |
35360 | } | |
35361 | resultobj = SWIG_Py_Void(); | |
35362 | return resultobj; | |
35363 | fail: | |
35364 | return NULL; | |
35365 | } | |
35366 | ||
35367 | ||
35368 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35369 | PyObject *resultobj = 0; | |
35370 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35371 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35372 | wxDC *arg3 = 0 ; | |
35373 | wxRect *arg4 = 0 ; | |
35374 | int arg5 = (int) 0 ; | |
35375 | void *argp1 = 0 ; | |
35376 | int res1 = 0 ; | |
35377 | void *argp2 = 0 ; | |
35378 | int res2 = 0 ; | |
35379 | void *argp3 = 0 ; | |
35380 | int res3 = 0 ; | |
35381 | wxRect temp4 ; | |
35382 | int val5 ; | |
35383 | int ecode5 = 0 ; | |
35384 | PyObject * obj0 = 0 ; | |
35385 | PyObject * obj1 = 0 ; | |
35386 | PyObject * obj2 = 0 ; | |
35387 | PyObject * obj3 = 0 ; | |
35388 | PyObject * obj4 = 0 ; | |
35389 | char * kwnames[] = { | |
35390 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35391 | }; | |
35392 | ||
35393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35395 | if (!SWIG_IsOK(res1)) { | |
35396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35397 | } | |
35398 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35399 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35400 | if (!SWIG_IsOK(res2)) { | |
35401 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35402 | } | |
35403 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35404 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35405 | if (!SWIG_IsOK(res3)) { | |
35406 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35407 | } | |
35408 | if (!argp3) { | |
35409 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35410 | } | |
35411 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35412 | { | |
35413 | arg4 = &temp4; | |
35414 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35415 | } | |
35416 | if (obj4) { | |
35417 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35418 | if (!SWIG_IsOK(ecode5)) { | |
35419 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
35420 | } | |
35421 | arg5 = static_cast< int >(val5); | |
35422 | } | |
35423 | { | |
35424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35425 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35426 | wxPyEndAllowThreads(__tstate); | |
35427 | if (PyErr_Occurred()) SWIG_fail; | |
35428 | } | |
35429 | resultobj = SWIG_Py_Void(); | |
35430 | return resultobj; | |
35431 | fail: | |
35432 | return NULL; | |
35433 | } | |
35434 | ||
35435 | ||
35436 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35437 | PyObject *resultobj = 0; | |
35438 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35439 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35440 | wxDC *arg3 = 0 ; | |
35441 | wxSize *arg4 = 0 ; | |
35442 | int arg5 ; | |
35443 | wxOrientation arg6 ; | |
35444 | int arg7 = (int) 0 ; | |
35445 | void *argp1 = 0 ; | |
35446 | int res1 = 0 ; | |
35447 | void *argp2 = 0 ; | |
35448 | int res2 = 0 ; | |
35449 | void *argp3 = 0 ; | |
35450 | int res3 = 0 ; | |
35451 | wxSize temp4 ; | |
35452 | int val5 ; | |
35453 | int ecode5 = 0 ; | |
35454 | int val6 ; | |
35455 | int ecode6 = 0 ; | |
35456 | int val7 ; | |
35457 | int ecode7 = 0 ; | |
35458 | PyObject * obj0 = 0 ; | |
35459 | PyObject * obj1 = 0 ; | |
35460 | PyObject * obj2 = 0 ; | |
35461 | PyObject * obj3 = 0 ; | |
35462 | PyObject * obj4 = 0 ; | |
35463 | PyObject * obj5 = 0 ; | |
35464 | PyObject * obj6 = 0 ; | |
35465 | char * kwnames[] = { | |
35466 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
35467 | }; | |
35468 | ||
35469 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35470 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35471 | if (!SWIG_IsOK(res1)) { | |
35472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35473 | } | |
35474 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35475 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35476 | if (!SWIG_IsOK(res2)) { | |
35477 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35478 | } | |
35479 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35480 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35481 | if (!SWIG_IsOK(res3)) { | |
35482 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35483 | } | |
35484 | if (!argp3) { | |
35485 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35486 | } | |
35487 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35488 | { | |
35489 | arg4 = &temp4; | |
35490 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
35491 | } | |
35492 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35493 | if (!SWIG_IsOK(ecode5)) { | |
35494 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
35495 | } | |
35496 | arg5 = static_cast< int >(val5); | |
35497 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35498 | if (!SWIG_IsOK(ecode6)) { | |
35499 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
35500 | } | |
35501 | arg6 = static_cast< wxOrientation >(val6); | |
35502 | if (obj6) { | |
35503 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
35504 | if (!SWIG_IsOK(ecode7)) { | |
35505 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
35506 | } | |
35507 | arg7 = static_cast< int >(val7); | |
35508 | } | |
35509 | { | |
35510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35511 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
35512 | wxPyEndAllowThreads(__tstate); | |
35513 | if (PyErr_Occurred()) SWIG_fail; | |
35514 | } | |
35515 | resultobj = SWIG_Py_Void(); | |
35516 | return resultobj; | |
35517 | fail: | |
35518 | return NULL; | |
35519 | } | |
35520 | ||
35521 | ||
35522 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35523 | PyObject *resultobj = 0; | |
35524 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35525 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35526 | wxDC *arg3 = 0 ; | |
35527 | wxRect *arg4 = 0 ; | |
35528 | int arg5 = (int) 0 ; | |
35529 | void *argp1 = 0 ; | |
35530 | int res1 = 0 ; | |
35531 | void *argp2 = 0 ; | |
35532 | int res2 = 0 ; | |
35533 | void *argp3 = 0 ; | |
35534 | int res3 = 0 ; | |
35535 | wxRect temp4 ; | |
35536 | int val5 ; | |
35537 | int ecode5 = 0 ; | |
35538 | PyObject * obj0 = 0 ; | |
35539 | PyObject * obj1 = 0 ; | |
35540 | PyObject * obj2 = 0 ; | |
35541 | PyObject * obj3 = 0 ; | |
35542 | PyObject * obj4 = 0 ; | |
35543 | char * kwnames[] = { | |
35544 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35545 | }; | |
35546 | ||
35547 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35548 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35549 | if (!SWIG_IsOK(res1)) { | |
35550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35551 | } | |
35552 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35553 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35554 | if (!SWIG_IsOK(res2)) { | |
35555 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35556 | } | |
35557 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35558 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35559 | if (!SWIG_IsOK(res3)) { | |
35560 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35561 | } | |
35562 | if (!argp3) { | |
35563 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35564 | } | |
35565 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35566 | { | |
35567 | arg4 = &temp4; | |
35568 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35569 | } | |
35570 | if (obj4) { | |
35571 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35572 | if (!SWIG_IsOK(ecode5)) { | |
35573 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
35574 | } | |
35575 | arg5 = static_cast< int >(val5); | |
35576 | } | |
35577 | { | |
35578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35579 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35580 | wxPyEndAllowThreads(__tstate); | |
35581 | if (PyErr_Occurred()) SWIG_fail; | |
35582 | } | |
35583 | resultobj = SWIG_Py_Void(); | |
35584 | return resultobj; | |
35585 | fail: | |
35586 | return NULL; | |
35587 | } | |
35588 | ||
35589 | ||
35590 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35591 | PyObject *resultobj = 0; | |
35592 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35593 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35594 | wxDC *arg3 = 0 ; | |
35595 | wxRect *arg4 = 0 ; | |
35596 | int arg5 = (int) 0 ; | |
35597 | void *argp1 = 0 ; | |
35598 | int res1 = 0 ; | |
35599 | void *argp2 = 0 ; | |
35600 | int res2 = 0 ; | |
35601 | void *argp3 = 0 ; | |
35602 | int res3 = 0 ; | |
35603 | wxRect temp4 ; | |
35604 | int val5 ; | |
35605 | int ecode5 = 0 ; | |
35606 | PyObject * obj0 = 0 ; | |
35607 | PyObject * obj1 = 0 ; | |
35608 | PyObject * obj2 = 0 ; | |
35609 | PyObject * obj3 = 0 ; | |
35610 | PyObject * obj4 = 0 ; | |
35611 | char * kwnames[] = { | |
35612 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35613 | }; | |
35614 | ||
35615 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35616 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35617 | if (!SWIG_IsOK(res1)) { | |
35618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35619 | } | |
35620 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35621 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35622 | if (!SWIG_IsOK(res2)) { | |
35623 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35624 | } | |
35625 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35626 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35627 | if (!SWIG_IsOK(res3)) { | |
35628 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35629 | } | |
35630 | if (!argp3) { | |
35631 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35632 | } | |
35633 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35634 | { | |
35635 | arg4 = &temp4; | |
35636 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35637 | } | |
35638 | if (obj4) { | |
35639 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35640 | if (!SWIG_IsOK(ecode5)) { | |
35641 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
35642 | } | |
35643 | arg5 = static_cast< int >(val5); | |
35644 | } | |
35645 | { | |
35646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35647 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35648 | wxPyEndAllowThreads(__tstate); | |
35649 | if (PyErr_Occurred()) SWIG_fail; | |
35650 | } | |
35651 | resultobj = SWIG_Py_Void(); | |
35652 | return resultobj; | |
35653 | fail: | |
35654 | return NULL; | |
35655 | } | |
35656 | ||
35657 | ||
f460c29d RD |
35658 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35659 | PyObject *resultobj = 0; | |
35660 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35661 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35662 | wxDC *arg3 = 0 ; | |
35663 | wxRect *arg4 = 0 ; | |
35664 | int arg5 = (int) 0 ; | |
35665 | void *argp1 = 0 ; | |
35666 | int res1 = 0 ; | |
35667 | void *argp2 = 0 ; | |
35668 | int res2 = 0 ; | |
35669 | void *argp3 = 0 ; | |
35670 | int res3 = 0 ; | |
35671 | wxRect temp4 ; | |
35672 | int val5 ; | |
35673 | int ecode5 = 0 ; | |
35674 | PyObject * obj0 = 0 ; | |
35675 | PyObject * obj1 = 0 ; | |
35676 | PyObject * obj2 = 0 ; | |
35677 | PyObject * obj3 = 0 ; | |
35678 | PyObject * obj4 = 0 ; | |
35679 | char * kwnames[] = { | |
35680 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35681 | }; | |
35682 | ||
35683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35685 | if (!SWIG_IsOK(res1)) { | |
35686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35687 | } | |
35688 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35689 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35690 | if (!SWIG_IsOK(res2)) { | |
35691 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35692 | } | |
35693 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35694 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35695 | if (!SWIG_IsOK(res3)) { | |
35696 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35697 | } | |
35698 | if (!argp3) { | |
35699 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35700 | } | |
35701 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35702 | { | |
35703 | arg4 = &temp4; | |
35704 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35705 | } | |
35706 | if (obj4) { | |
35707 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35708 | if (!SWIG_IsOK(ecode5)) { | |
35709 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); | |
35710 | } | |
35711 | arg5 = static_cast< int >(val5); | |
35712 | } | |
35713 | { | |
35714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35715 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35716 | wxPyEndAllowThreads(__tstate); | |
35717 | if (PyErr_Occurred()) SWIG_fail; | |
35718 | } | |
35719 | resultobj = SWIG_Py_Void(); | |
35720 | return resultobj; | |
35721 | fail: | |
35722 | return NULL; | |
35723 | } | |
35724 | ||
35725 | ||
35726 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35727 | PyObject *resultobj = 0; | |
35728 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35729 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35730 | wxDC *arg3 = 0 ; | |
35731 | wxRect *arg4 = 0 ; | |
35732 | int arg5 = (int) 0 ; | |
35733 | void *argp1 = 0 ; | |
35734 | int res1 = 0 ; | |
35735 | void *argp2 = 0 ; | |
35736 | int res2 = 0 ; | |
35737 | void *argp3 = 0 ; | |
35738 | int res3 = 0 ; | |
35739 | wxRect temp4 ; | |
35740 | int val5 ; | |
35741 | int ecode5 = 0 ; | |
35742 | PyObject * obj0 = 0 ; | |
35743 | PyObject * obj1 = 0 ; | |
35744 | PyObject * obj2 = 0 ; | |
35745 | PyObject * obj3 = 0 ; | |
35746 | PyObject * obj4 = 0 ; | |
35747 | char * kwnames[] = { | |
35748 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35749 | }; | |
35750 | ||
35751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35753 | if (!SWIG_IsOK(res1)) { | |
35754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35755 | } | |
35756 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35757 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35758 | if (!SWIG_IsOK(res2)) { | |
35759 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35760 | } | |
35761 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35762 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35763 | if (!SWIG_IsOK(res3)) { | |
35764 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35765 | } | |
35766 | if (!argp3) { | |
35767 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35768 | } | |
35769 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35770 | { | |
35771 | arg4 = &temp4; | |
35772 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35773 | } | |
35774 | if (obj4) { | |
35775 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35776 | if (!SWIG_IsOK(ecode5)) { | |
35777 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
35778 | } | |
35779 | arg5 = static_cast< int >(val5); | |
35780 | } | |
35781 | { | |
35782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35783 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35784 | wxPyEndAllowThreads(__tstate); | |
35785 | if (PyErr_Occurred()) SWIG_fail; | |
35786 | } | |
35787 | resultobj = SWIG_Py_Void(); | |
35788 | return resultobj; | |
35789 | fail: | |
35790 | return NULL; | |
35791 | } | |
35792 | ||
35793 | ||
35794 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
50efceee RD |
35795 | PyObject *resultobj = 0; |
35796 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35797 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35798 | wxDC *arg3 = 0 ; | |
35799 | wxRect *arg4 = 0 ; | |
35800 | int arg5 = (int) 0 ; | |
35801 | void *argp1 = 0 ; | |
35802 | int res1 = 0 ; | |
35803 | void *argp2 = 0 ; | |
35804 | int res2 = 0 ; | |
35805 | void *argp3 = 0 ; | |
35806 | int res3 = 0 ; | |
35807 | wxRect temp4 ; | |
35808 | int val5 ; | |
35809 | int ecode5 = 0 ; | |
35810 | PyObject * obj0 = 0 ; | |
35811 | PyObject * obj1 = 0 ; | |
35812 | PyObject * obj2 = 0 ; | |
35813 | PyObject * obj3 = 0 ; | |
35814 | PyObject * obj4 = 0 ; | |
35815 | char * kwnames[] = { | |
35816 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35817 | }; | |
35818 | ||
f460c29d | 35819 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
50efceee RD |
35820 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
35821 | if (!SWIG_IsOK(res1)) { | |
f460c29d | 35822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
50efceee RD |
35823 | } |
35824 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35825 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35826 | if (!SWIG_IsOK(res2)) { | |
f460c29d | 35827 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); |
50efceee RD |
35828 | } |
35829 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35830 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35831 | if (!SWIG_IsOK(res3)) { | |
f460c29d | 35832 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
35833 | } |
35834 | if (!argp3) { | |
f460c29d | 35835 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
35836 | } |
35837 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35838 | { | |
35839 | arg4 = &temp4; | |
35840 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35841 | } | |
35842 | if (obj4) { | |
35843 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35844 | if (!SWIG_IsOK(ecode5)) { | |
f460c29d | 35845 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); |
50efceee RD |
35846 | } |
35847 | arg5 = static_cast< int >(val5); | |
35848 | } | |
35849 | { | |
35850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f460c29d | 35851 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); |
50efceee RD |
35852 | wxPyEndAllowThreads(__tstate); |
35853 | if (PyErr_Occurred()) SWIG_fail; | |
35854 | } | |
35855 | resultobj = SWIG_Py_Void(); | |
35856 | return resultobj; | |
35857 | fail: | |
35858 | return NULL; | |
35859 | } | |
35860 | ||
35861 | ||
554f62e9 RD |
35862 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35863 | PyObject *resultobj = 0; | |
35864 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35865 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35866 | SwigValueWrapper<wxSplitterRenderParams > result; | |
35867 | void *argp1 = 0 ; | |
35868 | int res1 = 0 ; | |
35869 | void *argp2 = 0 ; | |
35870 | int res2 = 0 ; | |
35871 | PyObject * obj0 = 0 ; | |
35872 | PyObject * obj1 = 0 ; | |
35873 | char * kwnames[] = { | |
35874 | (char *) "self",(char *) "win", NULL | |
35875 | }; | |
35876 | ||
35877 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
35878 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35879 | if (!SWIG_IsOK(res1)) { | |
35880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35881 | } | |
35882 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35883 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35884 | if (!SWIG_IsOK(res2)) { | |
35885 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
35886 | } | |
35887 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35888 | { | |
35889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35890 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
35891 | wxPyEndAllowThreads(__tstate); | |
35892 | if (PyErr_Occurred()) SWIG_fail; | |
35893 | } | |
35894 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
35895 | return resultobj; | |
35896 | fail: | |
35897 | return NULL; | |
35898 | } | |
35899 | ||
35900 | ||
35901 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35902 | PyObject *resultobj = 0; | |
35903 | wxRendererNative *result = 0 ; | |
35904 | ||
35905 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
35906 | { | |
704eda0c | 35907 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 35908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 35909 | { |
554f62e9 RD |
35910 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
35911 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 35912 | } |
554f62e9 RD |
35913 | wxPyEndAllowThreads(__tstate); |
35914 | if (PyErr_Occurred()) SWIG_fail; | |
35915 | } | |
35916 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35917 | return resultobj; | |
35918 | fail: | |
35919 | return NULL; | |
35920 | } | |
35921 | ||
35922 | ||
35923 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35924 | PyObject *resultobj = 0; | |
35925 | wxRendererNative *result = 0 ; | |
35926 | ||
35927 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
35928 | { | |
704eda0c | 35929 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 35930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be9b1dca | 35931 | { |
554f62e9 RD |
35932 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
35933 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 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_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35946 | PyObject *resultobj = 0; | |
35947 | wxRendererNative *result = 0 ; | |
35948 | ||
35949 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",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::GetDefault(); |
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_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35968 | PyObject *resultobj = 0; | |
35969 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35970 | wxRendererNative *result = 0 ; | |
35971 | void *argp1 = 0 ; | |
35972 | int res1 = 0 ; | |
35973 | PyObject * obj0 = 0 ; | |
35974 | char * kwnames[] = { | |
35975 | (char *) "renderer", NULL | |
35976 | }; | |
35977 | ||
35978 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
35979 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35980 | if (!SWIG_IsOK(res1)) { | |
35981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35982 | } | |
35983 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35984 | { | |
704eda0c | 35985 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 RD |
35986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
35987 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
35988 | wxPyEndAllowThreads(__tstate); | |
35989 | if (PyErr_Occurred()) SWIG_fail; | |
35990 | } | |
35991 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35992 | return resultobj; | |
35993 | fail: | |
35994 | return NULL; | |
35995 | } | |
35996 | ||
35997 | ||
35998 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35999 | PyObject *resultobj = 0; | |
36000 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
36001 | SwigValueWrapper<wxRendererVersion > result; | |
36002 | void *argp1 = 0 ; | |
36003 | int res1 = 0 ; | |
36004 | PyObject *swig_obj[1] ; | |
36005 | ||
36006 | if (!args) SWIG_fail; | |
36007 | swig_obj[0] = args; | |
36008 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
36009 | if (!SWIG_IsOK(res1)) { | |
36010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
36011 | } | |
36012 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
36013 | { | |
36014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36015 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
36016 | wxPyEndAllowThreads(__tstate); | |
36017 | if (PyErr_Occurred()) SWIG_fail; | |
36018 | } | |
36019 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
36020 | return resultobj; | |
36021 | fail: | |
36022 | return NULL; | |
36023 | } | |
36024 | ||
36025 | ||
36026 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36027 | PyObject *obj; | |
36028 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
36029 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
36030 | return SWIG_Py_Void(); | |
36031 | } | |
36032 | ||
27e45892 RD |
36033 | SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36034 | PyObject *resultobj = 0; | |
36035 | wxPseudoDC *result = 0 ; | |
36036 | ||
36037 | if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail; | |
36038 | { | |
36039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36040 | result = (wxPseudoDC *)new wxPseudoDC(); | |
36041 | wxPyEndAllowThreads(__tstate); | |
36042 | if (PyErr_Occurred()) SWIG_fail; | |
36043 | } | |
36044 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 ); | |
36045 | return resultobj; | |
36046 | fail: | |
36047 | return NULL; | |
36048 | } | |
36049 | ||
36050 | ||
36051 | SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36052 | PyObject *resultobj = 0; | |
36053 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36054 | void *argp1 = 0 ; | |
36055 | int res1 = 0 ; | |
36056 | PyObject *swig_obj[1] ; | |
36057 | ||
36058 | if (!args) SWIG_fail; | |
36059 | swig_obj[0] = args; | |
36060 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36061 | if (!SWIG_IsOK(res1)) { | |
36062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36063 | } | |
36064 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36065 | { | |
36066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36067 | (arg1)->BeginDrawing(); | |
36068 | wxPyEndAllowThreads(__tstate); | |
36069 | if (PyErr_Occurred()) SWIG_fail; | |
36070 | } | |
36071 | resultobj = SWIG_Py_Void(); | |
36072 | return resultobj; | |
36073 | fail: | |
36074 | return NULL; | |
36075 | } | |
36076 | ||
36077 | ||
36078 | SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36079 | PyObject *resultobj = 0; | |
36080 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36081 | void *argp1 = 0 ; | |
36082 | int res1 = 0 ; | |
36083 | PyObject *swig_obj[1] ; | |
36084 | ||
36085 | if (!args) SWIG_fail; | |
36086 | swig_obj[0] = args; | |
36087 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36088 | if (!SWIG_IsOK(res1)) { | |
36089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36090 | } | |
36091 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36092 | { | |
36093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36094 | (arg1)->EndDrawing(); | |
36095 | wxPyEndAllowThreads(__tstate); | |
36096 | if (PyErr_Occurred()) SWIG_fail; | |
36097 | } | |
36098 | resultobj = SWIG_Py_Void(); | |
36099 | return resultobj; | |
36100 | fail: | |
36101 | return NULL; | |
36102 | } | |
36103 | ||
36104 | ||
36105 | SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36106 | PyObject *resultobj = 0; | |
36107 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36108 | void *argp1 = 0 ; | |
36109 | int res1 = 0 ; | |
36110 | PyObject *swig_obj[1] ; | |
36111 | ||
36112 | if (!args) SWIG_fail; | |
36113 | swig_obj[0] = args; | |
36114 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 ); | |
36115 | if (!SWIG_IsOK(res1)) { | |
36116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36117 | } | |
36118 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36119 | { | |
36120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36121 | delete arg1; | |
36122 | ||
36123 | wxPyEndAllowThreads(__tstate); | |
36124 | if (PyErr_Occurred()) SWIG_fail; | |
36125 | } | |
36126 | resultobj = SWIG_Py_Void(); | |
36127 | return resultobj; | |
36128 | fail: | |
36129 | return NULL; | |
36130 | } | |
36131 | ||
36132 | ||
36133 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36134 | PyObject *resultobj = 0; | |
36135 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36136 | void *argp1 = 0 ; | |
36137 | int res1 = 0 ; | |
36138 | PyObject *swig_obj[1] ; | |
36139 | ||
36140 | if (!args) SWIG_fail; | |
36141 | swig_obj[0] = args; | |
36142 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36143 | if (!SWIG_IsOK(res1)) { | |
36144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36145 | } | |
36146 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36147 | { | |
36148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36149 | (arg1)->RemoveAll(); | |
36150 | wxPyEndAllowThreads(__tstate); | |
36151 | if (PyErr_Occurred()) SWIG_fail; | |
36152 | } | |
36153 | resultobj = SWIG_Py_Void(); | |
36154 | return resultobj; | |
36155 | fail: | |
36156 | return NULL; | |
36157 | } | |
36158 | ||
36159 | ||
36160 | SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36161 | PyObject *resultobj = 0; | |
36162 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36163 | int result; | |
36164 | void *argp1 = 0 ; | |
36165 | int res1 = 0 ; | |
36166 | PyObject *swig_obj[1] ; | |
36167 | ||
36168 | if (!args) SWIG_fail; | |
36169 | swig_obj[0] = args; | |
36170 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36171 | if (!SWIG_IsOK(res1)) { | |
36172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36173 | } | |
36174 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36175 | { | |
36176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36177 | result = (int)(arg1)->GetLen(); | |
36178 | wxPyEndAllowThreads(__tstate); | |
36179 | if (PyErr_Occurred()) SWIG_fail; | |
36180 | } | |
36181 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
36182 | return resultobj; | |
36183 | fail: | |
36184 | return NULL; | |
36185 | } | |
36186 | ||
36187 | ||
36188 | SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36189 | PyObject *resultobj = 0; | |
36190 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36191 | int arg2 ; | |
36192 | void *argp1 = 0 ; | |
36193 | int res1 = 0 ; | |
36194 | int val2 ; | |
36195 | int ecode2 = 0 ; | |
36196 | PyObject * obj0 = 0 ; | |
36197 | PyObject * obj1 = 0 ; | |
36198 | char * kwnames[] = { | |
36199 | (char *) "self",(char *) "id", NULL | |
36200 | }; | |
36201 | ||
36202 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
36203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36204 | if (!SWIG_IsOK(res1)) { | |
36205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36206 | } | |
36207 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36208 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36209 | if (!SWIG_IsOK(ecode2)) { | |
36210 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'"); | |
36211 | } | |
36212 | arg2 = static_cast< int >(val2); | |
36213 | { | |
36214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36215 | (arg1)->SetId(arg2); | |
36216 | wxPyEndAllowThreads(__tstate); | |
36217 | if (PyErr_Occurred()) SWIG_fail; | |
36218 | } | |
36219 | resultobj = SWIG_Py_Void(); | |
36220 | return resultobj; | |
36221 | fail: | |
36222 | return NULL; | |
36223 | } | |
36224 | ||
36225 | ||
36226 | SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36227 | PyObject *resultobj = 0; | |
36228 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36229 | int arg2 ; | |
36230 | void *argp1 = 0 ; | |
36231 | int res1 = 0 ; | |
36232 | int val2 ; | |
36233 | int ecode2 = 0 ; | |
36234 | PyObject * obj0 = 0 ; | |
36235 | PyObject * obj1 = 0 ; | |
36236 | char * kwnames[] = { | |
36237 | (char *) "self",(char *) "id", NULL | |
36238 | }; | |
36239 | ||
36240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail; | |
36241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36242 | if (!SWIG_IsOK(res1)) { | |
36243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36244 | } | |
36245 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36246 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36247 | if (!SWIG_IsOK(ecode2)) { | |
36248 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'"); | |
36249 | } | |
36250 | arg2 = static_cast< int >(val2); | |
36251 | { | |
36252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36253 | (arg1)->ClearId(arg2); | |
36254 | wxPyEndAllowThreads(__tstate); | |
36255 | if (PyErr_Occurred()) SWIG_fail; | |
36256 | } | |
36257 | resultobj = SWIG_Py_Void(); | |
36258 | return resultobj; | |
36259 | fail: | |
36260 | return NULL; | |
36261 | } | |
36262 | ||
36263 | ||
36264 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36265 | PyObject *resultobj = 0; | |
36266 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36267 | int arg2 ; | |
36268 | void *argp1 = 0 ; | |
36269 | int res1 = 0 ; | |
36270 | int val2 ; | |
36271 | int ecode2 = 0 ; | |
36272 | PyObject * obj0 = 0 ; | |
36273 | PyObject * obj1 = 0 ; | |
36274 | char * kwnames[] = { | |
36275 | (char *) "self",(char *) "id", NULL | |
36276 | }; | |
36277 | ||
36278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail; | |
36279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36280 | if (!SWIG_IsOK(res1)) { | |
36281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36282 | } | |
36283 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36284 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36285 | if (!SWIG_IsOK(ecode2)) { | |
36286 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'"); | |
36287 | } | |
36288 | arg2 = static_cast< int >(val2); | |
36289 | { | |
36290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36291 | (arg1)->RemoveId(arg2); | |
36292 | wxPyEndAllowThreads(__tstate); | |
36293 | if (PyErr_Occurred()) SWIG_fail; | |
36294 | } | |
36295 | resultobj = SWIG_Py_Void(); | |
36296 | return resultobj; | |
36297 | fail: | |
36298 | return NULL; | |
36299 | } | |
36300 | ||
36301 | ||
36302 | SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36303 | PyObject *resultobj = 0; | |
36304 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36305 | int arg2 ; | |
36306 | int arg3 ; | |
36307 | int arg4 ; | |
36308 | void *argp1 = 0 ; | |
36309 | int res1 = 0 ; | |
36310 | int val2 ; | |
36311 | int ecode2 = 0 ; | |
36312 | int val3 ; | |
36313 | int ecode3 = 0 ; | |
36314 | int val4 ; | |
36315 | int ecode4 = 0 ; | |
36316 | PyObject * obj0 = 0 ; | |
36317 | PyObject * obj1 = 0 ; | |
36318 | PyObject * obj2 = 0 ; | |
36319 | PyObject * obj3 = 0 ; | |
36320 | char * kwnames[] = { | |
36321 | (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL | |
36322 | }; | |
36323 | ||
36324 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36325 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36326 | if (!SWIG_IsOK(res1)) { | |
36327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36328 | } | |
36329 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36330 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36331 | if (!SWIG_IsOK(ecode2)) { | |
36332 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'"); | |
36333 | } | |
36334 | arg2 = static_cast< int >(val2); | |
36335 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36336 | if (!SWIG_IsOK(ecode3)) { | |
36337 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'"); | |
36338 | } | |
36339 | arg3 = static_cast< int >(val3); | |
36340 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36341 | if (!SWIG_IsOK(ecode4)) { | |
36342 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'"); | |
36343 | } | |
36344 | arg4 = static_cast< int >(val4); | |
36345 | { | |
36346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36347 | (arg1)->TranslateId(arg2,arg3,arg4); | |
36348 | wxPyEndAllowThreads(__tstate); | |
36349 | if (PyErr_Occurred()) SWIG_fail; | |
36350 | } | |
36351 | resultobj = SWIG_Py_Void(); | |
36352 | return resultobj; | |
36353 | fail: | |
36354 | return NULL; | |
36355 | } | |
36356 | ||
36357 | ||
72ef6efb RD |
36358 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36359 | PyObject *resultobj = 0; | |
36360 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36361 | int arg2 ; | |
36362 | bool arg3 = (bool) true ; | |
36363 | void *argp1 = 0 ; | |
36364 | int res1 = 0 ; | |
36365 | int val2 ; | |
36366 | int ecode2 = 0 ; | |
36367 | bool val3 ; | |
36368 | int ecode3 = 0 ; | |
36369 | PyObject * obj0 = 0 ; | |
36370 | PyObject * obj1 = 0 ; | |
36371 | PyObject * obj2 = 0 ; | |
36372 | char * kwnames[] = { | |
36373 | (char *) "self",(char *) "id",(char *) "greyout", NULL | |
36374 | }; | |
36375 | ||
36376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36378 | if (!SWIG_IsOK(res1)) { | |
36379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36380 | } | |
36381 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36382 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36383 | if (!SWIG_IsOK(ecode2)) { | |
36384 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
36385 | } | |
36386 | arg2 = static_cast< int >(val2); | |
36387 | if (obj2) { | |
36388 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
36389 | if (!SWIG_IsOK(ecode3)) { | |
36390 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'"); | |
36391 | } | |
36392 | arg3 = static_cast< bool >(val3); | |
36393 | } | |
36394 | { | |
36395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36396 | (arg1)->SetIdGreyedOut(arg2,arg3); | |
36397 | wxPyEndAllowThreads(__tstate); | |
36398 | if (PyErr_Occurred()) SWIG_fail; | |
36399 | } | |
36400 | resultobj = SWIG_Py_Void(); | |
36401 | return resultobj; | |
36402 | fail: | |
36403 | return NULL; | |
36404 | } | |
36405 | ||
36406 | ||
36407 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36408 | PyObject *resultobj = 0; | |
36409 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36410 | int arg2 ; | |
36411 | bool result; | |
36412 | void *argp1 = 0 ; | |
36413 | int res1 = 0 ; | |
36414 | int val2 ; | |
36415 | int ecode2 = 0 ; | |
36416 | PyObject * obj0 = 0 ; | |
36417 | PyObject * obj1 = 0 ; | |
36418 | char * kwnames[] = { | |
36419 | (char *) "self",(char *) "id", NULL | |
36420 | }; | |
36421 | ||
36422 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail; | |
36423 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36424 | if (!SWIG_IsOK(res1)) { | |
36425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36426 | } | |
36427 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36428 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36429 | if (!SWIG_IsOK(ecode2)) { | |
36430 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
36431 | } | |
36432 | arg2 = static_cast< int >(val2); | |
36433 | { | |
36434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36435 | result = (bool)(arg1)->GetIdGreyedOut(arg2); | |
36436 | wxPyEndAllowThreads(__tstate); | |
36437 | if (PyErr_Occurred()) SWIG_fail; | |
36438 | } | |
36439 | { | |
36440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36441 | } | |
36442 | return resultobj; | |
36443 | fail: | |
36444 | return NULL; | |
36445 | } | |
36446 | ||
36447 | ||
36448 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36449 | PyObject *resultobj = 0; | |
36450 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36451 | int arg2 ; | |
36452 | int arg3 ; | |
36453 | int arg4 = (int) 1 ; | |
36454 | wxColor const &arg5_defvalue = *wxWHITE ; | |
36455 | wxColor *arg5 = (wxColor *) &arg5_defvalue ; | |
36456 | PyObject *result = 0 ; | |
36457 | void *argp1 = 0 ; | |
36458 | int res1 = 0 ; | |
36459 | int val2 ; | |
36460 | int ecode2 = 0 ; | |
36461 | int val3 ; | |
36462 | int ecode3 = 0 ; | |
36463 | int val4 ; | |
36464 | int ecode4 = 0 ; | |
36465 | void *argp5 = 0 ; | |
36466 | int res5 = 0 ; | |
36467 | PyObject * obj0 = 0 ; | |
36468 | PyObject * obj1 = 0 ; | |
36469 | PyObject * obj2 = 0 ; | |
36470 | PyObject * obj3 = 0 ; | |
36471 | PyObject * obj4 = 0 ; | |
36472 | char * kwnames[] = { | |
36473 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL | |
36474 | }; | |
36475 | ||
36476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36478 | if (!SWIG_IsOK(res1)) { | |
36479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36480 | } | |
36481 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36482 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36483 | if (!SWIG_IsOK(ecode2)) { | |
36484 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'"); | |
36485 | } | |
36486 | arg2 = static_cast< int >(val2); | |
36487 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36488 | if (!SWIG_IsOK(ecode3)) { | |
36489 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'"); | |
36490 | } | |
36491 | arg3 = static_cast< int >(val3); | |
36492 | if (obj3) { | |
36493 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36494 | if (!SWIG_IsOK(ecode4)) { | |
36495 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'"); | |
36496 | } | |
36497 | arg4 = static_cast< int >(val4); | |
36498 | } | |
36499 | if (obj4) { | |
36500 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0); | |
36501 | if (!SWIG_IsOK(res5)) { | |
36502 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
36503 | } | |
36504 | if (!argp5) { | |
36505 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
36506 | } | |
36507 | arg5 = reinterpret_cast< wxColor * >(argp5); | |
36508 | } | |
36509 | { | |
36510 | result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5); | |
36511 | if (PyErr_Occurred()) SWIG_fail; | |
36512 | } | |
36513 | resultobj = result; | |
36514 | return resultobj; | |
36515 | fail: | |
36516 | return NULL; | |
36517 | } | |
36518 | ||
36519 | ||
36520 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36521 | PyObject *resultobj = 0; | |
36522 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36523 | int arg2 ; | |
36524 | int arg3 ; | |
36525 | PyObject *result = 0 ; | |
36526 | void *argp1 = 0 ; | |
36527 | int res1 = 0 ; | |
36528 | int val2 ; | |
36529 | int ecode2 = 0 ; | |
36530 | int val3 ; | |
36531 | int ecode3 = 0 ; | |
36532 | PyObject * obj0 = 0 ; | |
36533 | PyObject * obj1 = 0 ; | |
36534 | PyObject * obj2 = 0 ; | |
36535 | char * kwnames[] = { | |
36536 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36537 | }; | |
36538 | ||
36539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36541 | if (!SWIG_IsOK(res1)) { | |
36542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36543 | } | |
36544 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36545 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36546 | if (!SWIG_IsOK(ecode2)) { | |
36547 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'"); | |
36548 | } | |
36549 | arg2 = static_cast< int >(val2); | |
36550 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36551 | if (!SWIG_IsOK(ecode3)) { | |
36552 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'"); | |
36553 | } | |
36554 | arg3 = static_cast< int >(val3); | |
36555 | { | |
36556 | result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3); | |
36557 | if (PyErr_Occurred()) SWIG_fail; | |
36558 | } | |
36559 | resultobj = result; | |
36560 | return resultobj; | |
36561 | fail: | |
36562 | return NULL; | |
36563 | } | |
36564 | ||
36565 | ||
27e45892 RD |
36566 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36567 | PyObject *resultobj = 0; | |
36568 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36569 | int arg2 ; | |
36570 | wxDC *arg3 = (wxDC *) 0 ; | |
36571 | void *argp1 = 0 ; | |
36572 | int res1 = 0 ; | |
36573 | int val2 ; | |
36574 | int ecode2 = 0 ; | |
36575 | void *argp3 = 0 ; | |
36576 | int res3 = 0 ; | |
36577 | PyObject * obj0 = 0 ; | |
36578 | PyObject * obj1 = 0 ; | |
36579 | PyObject * obj2 = 0 ; | |
36580 | char * kwnames[] = { | |
36581 | (char *) "self",(char *) "id",(char *) "dc", NULL | |
36582 | }; | |
36583 | ||
36584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36586 | if (!SWIG_IsOK(res1)) { | |
36587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36588 | } | |
36589 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36590 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36591 | if (!SWIG_IsOK(ecode2)) { | |
36592 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'"); | |
36593 | } | |
36594 | arg2 = static_cast< int >(val2); | |
36595 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36596 | if (!SWIG_IsOK(res3)) { | |
36597 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'"); | |
36598 | } | |
36599 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
36600 | { | |
36601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36602 | (arg1)->DrawIdToDC(arg2,arg3); | |
36603 | wxPyEndAllowThreads(__tstate); | |
36604 | if (PyErr_Occurred()) SWIG_fail; | |
36605 | } | |
36606 | resultobj = SWIG_Py_Void(); | |
36607 | return resultobj; | |
36608 | fail: | |
36609 | return NULL; | |
36610 | } | |
36611 | ||
36612 | ||
36613 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36614 | PyObject *resultobj = 0; | |
36615 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36616 | int arg2 ; | |
36617 | wxRect *arg3 = 0 ; | |
36618 | void *argp1 = 0 ; | |
36619 | int res1 = 0 ; | |
36620 | int val2 ; | |
36621 | int ecode2 = 0 ; | |
36622 | wxRect temp3 ; | |
36623 | PyObject * obj0 = 0 ; | |
36624 | PyObject * obj1 = 0 ; | |
36625 | PyObject * obj2 = 0 ; | |
36626 | char * kwnames[] = { | |
36627 | (char *) "self",(char *) "id",(char *) "rect", NULL | |
36628 | }; | |
36629 | ||
36630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36632 | if (!SWIG_IsOK(res1)) { | |
36633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36634 | } | |
36635 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36636 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36637 | if (!SWIG_IsOK(ecode2)) { | |
36638 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
36639 | } | |
36640 | arg2 = static_cast< int >(val2); | |
36641 | { | |
36642 | arg3 = &temp3; | |
36643 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
36644 | } | |
36645 | { | |
36646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36647 | (arg1)->SetIdBounds(arg2,*arg3); | |
36648 | wxPyEndAllowThreads(__tstate); | |
36649 | if (PyErr_Occurred()) SWIG_fail; | |
36650 | } | |
36651 | resultobj = SWIG_Py_Void(); | |
36652 | return resultobj; | |
36653 | fail: | |
36654 | return NULL; | |
36655 | } | |
36656 | ||
36657 | ||
36658 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36659 | PyObject *resultobj = 0; | |
36660 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36661 | int arg2 ; | |
36662 | wxRect result; | |
36663 | void *argp1 = 0 ; | |
36664 | int res1 = 0 ; | |
36665 | int val2 ; | |
36666 | int ecode2 = 0 ; | |
36667 | PyObject * obj0 = 0 ; | |
36668 | PyObject * obj1 = 0 ; | |
36669 | char * kwnames[] = { | |
36670 | (char *) "self",(char *) "id", NULL | |
36671 | }; | |
36672 | ||
36673 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail; | |
36674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36675 | if (!SWIG_IsOK(res1)) { | |
36676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36677 | } | |
36678 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36679 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36680 | if (!SWIG_IsOK(ecode2)) { | |
36681 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
36682 | } | |
36683 | arg2 = static_cast< int >(val2); | |
36684 | { | |
36685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36686 | result = wxPseudoDC_GetIdBounds(arg1,arg2); | |
36687 | wxPyEndAllowThreads(__tstate); | |
36688 | if (PyErr_Occurred()) SWIG_fail; | |
36689 | } | |
36690 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
36691 | return resultobj; | |
36692 | fail: | |
36693 | return NULL; | |
36694 | } | |
36695 | ||
36696 | ||
36697 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36698 | PyObject *resultobj = 0; | |
36699 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36700 | wxDC *arg2 = (wxDC *) 0 ; | |
36701 | wxRect *arg3 = 0 ; | |
36702 | void *argp1 = 0 ; | |
36703 | int res1 = 0 ; | |
36704 | void *argp2 = 0 ; | |
36705 | int res2 = 0 ; | |
36706 | wxRect temp3 ; | |
36707 | PyObject * obj0 = 0 ; | |
36708 | PyObject * obj1 = 0 ; | |
36709 | PyObject * obj2 = 0 ; | |
36710 | char * kwnames[] = { | |
36711 | (char *) "self",(char *) "dc",(char *) "rect", NULL | |
36712 | }; | |
36713 | ||
36714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36716 | if (!SWIG_IsOK(res1)) { | |
36717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36718 | } | |
36719 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36720 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36721 | if (!SWIG_IsOK(res2)) { | |
36722 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36723 | } | |
36724 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36725 | { | |
36726 | arg3 = &temp3; | |
36727 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
36728 | } | |
36729 | { | |
36730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36731 | (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3); | |
36732 | wxPyEndAllowThreads(__tstate); | |
36733 | if (PyErr_Occurred()) SWIG_fail; | |
36734 | } | |
36735 | resultobj = SWIG_Py_Void(); | |
36736 | return resultobj; | |
36737 | fail: | |
36738 | return NULL; | |
36739 | } | |
36740 | ||
36741 | ||
36742 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36743 | PyObject *resultobj = 0; | |
36744 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36745 | wxDC *arg2 = (wxDC *) 0 ; | |
36746 | wxRegion *arg3 = 0 ; | |
36747 | void *argp1 = 0 ; | |
36748 | int res1 = 0 ; | |
36749 | void *argp2 = 0 ; | |
36750 | int res2 = 0 ; | |
36751 | void *argp3 = 0 ; | |
36752 | int res3 = 0 ; | |
36753 | PyObject * obj0 = 0 ; | |
36754 | PyObject * obj1 = 0 ; | |
36755 | PyObject * obj2 = 0 ; | |
36756 | char * kwnames[] = { | |
36757 | (char *) "self",(char *) "dc",(char *) "region", NULL | |
36758 | }; | |
36759 | ||
36760 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36761 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36762 | if (!SWIG_IsOK(res1)) { | |
36763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36764 | } | |
36765 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36766 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36767 | if (!SWIG_IsOK(res2)) { | |
36768 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36769 | } | |
36770 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36771 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0); | |
36772 | if (!SWIG_IsOK(res3)) { | |
36773 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
36774 | } | |
36775 | if (!argp3) { | |
36776 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
36777 | } | |
36778 | arg3 = reinterpret_cast< wxRegion * >(argp3); | |
36779 | { | |
36780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36781 | (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3); | |
36782 | wxPyEndAllowThreads(__tstate); | |
36783 | if (PyErr_Occurred()) SWIG_fail; | |
36784 | } | |
36785 | resultobj = SWIG_Py_Void(); | |
36786 | return resultobj; | |
36787 | fail: | |
36788 | return NULL; | |
36789 | } | |
36790 | ||
36791 | ||
36792 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36793 | PyObject *resultobj = 0; | |
36794 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36795 | wxDC *arg2 = (wxDC *) 0 ; | |
36796 | void *argp1 = 0 ; | |
36797 | int res1 = 0 ; | |
36798 | void *argp2 = 0 ; | |
36799 | int res2 = 0 ; | |
36800 | PyObject * obj0 = 0 ; | |
36801 | PyObject * obj1 = 0 ; | |
36802 | char * kwnames[] = { | |
36803 | (char *) "self",(char *) "dc", NULL | |
36804 | }; | |
36805 | ||
36806 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
36807 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36808 | if (!SWIG_IsOK(res1)) { | |
36809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36810 | } | |
36811 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36812 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36813 | if (!SWIG_IsOK(res2)) { | |
36814 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36815 | } | |
36816 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36817 | { | |
36818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36819 | (arg1)->DrawToDC(arg2); | |
36820 | wxPyEndAllowThreads(__tstate); | |
36821 | if (PyErr_Occurred()) SWIG_fail; | |
36822 | } | |
36823 | resultobj = SWIG_Py_Void(); | |
36824 | return resultobj; | |
36825 | fail: | |
36826 | return NULL; | |
36827 | } | |
36828 | ||
36829 | ||
36830 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36831 | PyObject *resultobj = 0; | |
36832 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36833 | int arg2 ; | |
36834 | int arg3 ; | |
36835 | wxColour *arg4 = 0 ; | |
36836 | int arg5 = (int) wxFLOOD_SURFACE ; | |
36837 | void *argp1 = 0 ; | |
36838 | int res1 = 0 ; | |
36839 | int val2 ; | |
36840 | int ecode2 = 0 ; | |
36841 | int val3 ; | |
36842 | int ecode3 = 0 ; | |
36843 | wxColour temp4 ; | |
36844 | int val5 ; | |
36845 | int ecode5 = 0 ; | |
36846 | PyObject * obj0 = 0 ; | |
36847 | PyObject * obj1 = 0 ; | |
36848 | PyObject * obj2 = 0 ; | |
36849 | PyObject * obj3 = 0 ; | |
36850 | PyObject * obj4 = 0 ; | |
36851 | char * kwnames[] = { | |
36852 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
36853 | }; | |
36854 | ||
36855 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36856 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36857 | if (!SWIG_IsOK(res1)) { | |
36858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36859 | } | |
36860 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36861 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36862 | if (!SWIG_IsOK(ecode2)) { | |
36863 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
36864 | } | |
36865 | arg2 = static_cast< int >(val2); | |
36866 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36867 | if (!SWIG_IsOK(ecode3)) { | |
36868 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
36869 | } | |
36870 | arg3 = static_cast< int >(val3); | |
36871 | { | |
36872 | arg4 = &temp4; | |
36873 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
36874 | } | |
36875 | if (obj4) { | |
36876 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36877 | if (!SWIG_IsOK(ecode5)) { | |
36878 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
36879 | } | |
36880 | arg5 = static_cast< int >(val5); | |
36881 | } | |
36882 | { | |
36883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36884 | (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
36885 | wxPyEndAllowThreads(__tstate); | |
36886 | if (PyErr_Occurred()) SWIG_fail; | |
36887 | } | |
36888 | resultobj = SWIG_Py_Void(); | |
36889 | return resultobj; | |
36890 | fail: | |
36891 | return NULL; | |
36892 | } | |
36893 | ||
36894 | ||
36895 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36896 | PyObject *resultobj = 0; | |
36897 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36898 | wxPoint *arg2 = 0 ; | |
36899 | wxColour *arg3 = 0 ; | |
36900 | int arg4 = (int) wxFLOOD_SURFACE ; | |
36901 | void *argp1 = 0 ; | |
36902 | int res1 = 0 ; | |
36903 | wxPoint temp2 ; | |
36904 | wxColour temp3 ; | |
36905 | int val4 ; | |
36906 | int ecode4 = 0 ; | |
36907 | PyObject * obj0 = 0 ; | |
36908 | PyObject * obj1 = 0 ; | |
36909 | PyObject * obj2 = 0 ; | |
36910 | PyObject * obj3 = 0 ; | |
36911 | char * kwnames[] = { | |
36912 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
36913 | }; | |
36914 | ||
36915 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36916 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36917 | if (!SWIG_IsOK(res1)) { | |
36918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36919 | } | |
36920 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36921 | { | |
36922 | arg2 = &temp2; | |
36923 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36924 | } | |
36925 | { | |
36926 | arg3 = &temp3; | |
36927 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
36928 | } | |
36929 | if (obj3) { | |
36930 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36931 | if (!SWIG_IsOK(ecode4)) { | |
36932 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
36933 | } | |
36934 | arg4 = static_cast< int >(val4); | |
36935 | } | |
36936 | { | |
36937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36938 | (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
36939 | wxPyEndAllowThreads(__tstate); | |
36940 | if (PyErr_Occurred()) SWIG_fail; | |
36941 | } | |
36942 | resultobj = SWIG_Py_Void(); | |
36943 | return resultobj; | |
36944 | fail: | |
36945 | return NULL; | |
36946 | } | |
36947 | ||
36948 | ||
36949 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36950 | PyObject *resultobj = 0; | |
36951 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36952 | int arg2 ; | |
36953 | int arg3 ; | |
36954 | int arg4 ; | |
36955 | int arg5 ; | |
36956 | void *argp1 = 0 ; | |
36957 | int res1 = 0 ; | |
36958 | int val2 ; | |
36959 | int ecode2 = 0 ; | |
36960 | int val3 ; | |
36961 | int ecode3 = 0 ; | |
36962 | int val4 ; | |
36963 | int ecode4 = 0 ; | |
36964 | int val5 ; | |
36965 | int ecode5 = 0 ; | |
36966 | PyObject * obj0 = 0 ; | |
36967 | PyObject * obj1 = 0 ; | |
36968 | PyObject * obj2 = 0 ; | |
36969 | PyObject * obj3 = 0 ; | |
36970 | PyObject * obj4 = 0 ; | |
36971 | char * kwnames[] = { | |
36972 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
36973 | }; | |
36974 | ||
36975 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36976 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36977 | if (!SWIG_IsOK(res1)) { | |
36978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36979 | } | |
36980 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36981 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36982 | if (!SWIG_IsOK(ecode2)) { | |
36983 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
36984 | } | |
36985 | arg2 = static_cast< int >(val2); | |
36986 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36987 | if (!SWIG_IsOK(ecode3)) { | |
36988 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
36989 | } | |
36990 | arg3 = static_cast< int >(val3); | |
36991 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36992 | if (!SWIG_IsOK(ecode4)) { | |
36993 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
36994 | } | |
36995 | arg4 = static_cast< int >(val4); | |
36996 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36997 | if (!SWIG_IsOK(ecode5)) { | |
36998 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
36999 | } | |
37000 | arg5 = static_cast< int >(val5); | |
37001 | { | |
37002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37003 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
37004 | wxPyEndAllowThreads(__tstate); | |
37005 | if (PyErr_Occurred()) SWIG_fail; | |
37006 | } | |
37007 | resultobj = SWIG_Py_Void(); | |
37008 | return resultobj; | |
37009 | fail: | |
37010 | return NULL; | |
37011 | } | |
37012 | ||
37013 | ||
37014 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37015 | PyObject *resultobj = 0; | |
37016 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37017 | wxPoint *arg2 = 0 ; | |
37018 | wxPoint *arg3 = 0 ; | |
37019 | void *argp1 = 0 ; | |
37020 | int res1 = 0 ; | |
37021 | wxPoint temp2 ; | |
37022 | wxPoint temp3 ; | |
37023 | PyObject * obj0 = 0 ; | |
37024 | PyObject * obj1 = 0 ; | |
37025 | PyObject * obj2 = 0 ; | |
37026 | char * kwnames[] = { | |
37027 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
37028 | }; | |
37029 | ||
37030 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37031 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37032 | if (!SWIG_IsOK(res1)) { | |
37033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37034 | } | |
37035 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37036 | { | |
37037 | arg2 = &temp2; | |
37038 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37039 | } | |
37040 | { | |
37041 | arg3 = &temp3; | |
37042 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37043 | } | |
37044 | { | |
37045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37046 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
37047 | wxPyEndAllowThreads(__tstate); | |
37048 | if (PyErr_Occurred()) SWIG_fail; | |
37049 | } | |
37050 | resultobj = SWIG_Py_Void(); | |
37051 | return resultobj; | |
37052 | fail: | |
37053 | return NULL; | |
37054 | } | |
37055 | ||
37056 | ||
37057 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37058 | PyObject *resultobj = 0; | |
37059 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37060 | int arg2 ; | |
37061 | int arg3 ; | |
37062 | void *argp1 = 0 ; | |
37063 | int res1 = 0 ; | |
37064 | int val2 ; | |
37065 | int ecode2 = 0 ; | |
37066 | int val3 ; | |
37067 | int ecode3 = 0 ; | |
37068 | PyObject * obj0 = 0 ; | |
37069 | PyObject * obj1 = 0 ; | |
37070 | PyObject * obj2 = 0 ; | |
37071 | char * kwnames[] = { | |
37072 | (char *) "self",(char *) "x",(char *) "y", NULL | |
37073 | }; | |
37074 | ||
37075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37077 | if (!SWIG_IsOK(res1)) { | |
37078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37079 | } | |
37080 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37081 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37082 | if (!SWIG_IsOK(ecode2)) { | |
37083 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
37084 | } | |
37085 | arg2 = static_cast< int >(val2); | |
37086 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37087 | if (!SWIG_IsOK(ecode3)) { | |
37088 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
37089 | } | |
37090 | arg3 = static_cast< int >(val3); | |
37091 | { | |
37092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37093 | (arg1)->CrossHair(arg2,arg3); | |
37094 | wxPyEndAllowThreads(__tstate); | |
37095 | if (PyErr_Occurred()) SWIG_fail; | |
37096 | } | |
37097 | resultobj = SWIG_Py_Void(); | |
37098 | return resultobj; | |
37099 | fail: | |
37100 | return NULL; | |
37101 | } | |
37102 | ||
37103 | ||
37104 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37105 | PyObject *resultobj = 0; | |
37106 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37107 | wxPoint *arg2 = 0 ; | |
37108 | void *argp1 = 0 ; | |
37109 | int res1 = 0 ; | |
37110 | wxPoint temp2 ; | |
37111 | PyObject * obj0 = 0 ; | |
37112 | PyObject * obj1 = 0 ; | |
37113 | char * kwnames[] = { | |
37114 | (char *) "self",(char *) "pt", NULL | |
37115 | }; | |
37116 | ||
37117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
37118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37119 | if (!SWIG_IsOK(res1)) { | |
37120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37121 | } | |
37122 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37123 | { | |
37124 | arg2 = &temp2; | |
37125 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37126 | } | |
37127 | { | |
37128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37129 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
37130 | wxPyEndAllowThreads(__tstate); | |
37131 | if (PyErr_Occurred()) SWIG_fail; | |
37132 | } | |
37133 | resultobj = SWIG_Py_Void(); | |
37134 | return resultobj; | |
37135 | fail: | |
37136 | return NULL; | |
37137 | } | |
37138 | ||
37139 | ||
37140 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37141 | PyObject *resultobj = 0; | |
37142 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37143 | int arg2 ; | |
37144 | int arg3 ; | |
37145 | int arg4 ; | |
37146 | int arg5 ; | |
37147 | int arg6 ; | |
37148 | int arg7 ; | |
37149 | void *argp1 = 0 ; | |
37150 | int res1 = 0 ; | |
37151 | int val2 ; | |
37152 | int ecode2 = 0 ; | |
37153 | int val3 ; | |
37154 | int ecode3 = 0 ; | |
37155 | int val4 ; | |
37156 | int ecode4 = 0 ; | |
37157 | int val5 ; | |
37158 | int ecode5 = 0 ; | |
37159 | int val6 ; | |
37160 | int ecode6 = 0 ; | |
37161 | int val7 ; | |
37162 | int ecode7 = 0 ; | |
37163 | PyObject * obj0 = 0 ; | |
37164 | PyObject * obj1 = 0 ; | |
37165 | PyObject * obj2 = 0 ; | |
37166 | PyObject * obj3 = 0 ; | |
37167 | PyObject * obj4 = 0 ; | |
37168 | PyObject * obj5 = 0 ; | |
37169 | PyObject * obj6 = 0 ; | |
37170 | char * kwnames[] = { | |
37171 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
37172 | }; | |
37173 | ||
37174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
37175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37176 | if (!SWIG_IsOK(res1)) { | |
37177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37178 | } | |
37179 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37180 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37181 | if (!SWIG_IsOK(ecode2)) { | |
37182 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
37183 | } | |
37184 | arg2 = static_cast< int >(val2); | |
37185 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37186 | if (!SWIG_IsOK(ecode3)) { | |
37187 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
37188 | } | |
37189 | arg3 = static_cast< int >(val3); | |
37190 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37191 | if (!SWIG_IsOK(ecode4)) { | |
37192 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
37193 | } | |
37194 | arg4 = static_cast< int >(val4); | |
37195 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37196 | if (!SWIG_IsOK(ecode5)) { | |
37197 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
37198 | } | |
37199 | arg5 = static_cast< int >(val5); | |
37200 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
37201 | if (!SWIG_IsOK(ecode6)) { | |
37202 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
37203 | } | |
37204 | arg6 = static_cast< int >(val6); | |
37205 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
37206 | if (!SWIG_IsOK(ecode7)) { | |
37207 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
37208 | } | |
37209 | arg7 = static_cast< int >(val7); | |
37210 | { | |
37211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37212 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
37213 | wxPyEndAllowThreads(__tstate); | |
37214 | if (PyErr_Occurred()) SWIG_fail; | |
37215 | } | |
37216 | resultobj = SWIG_Py_Void(); | |
37217 | return resultobj; | |
37218 | fail: | |
37219 | return NULL; | |
37220 | } | |
37221 | ||
37222 | ||
37223 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37224 | PyObject *resultobj = 0; | |
37225 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37226 | wxPoint *arg2 = 0 ; | |
37227 | wxPoint *arg3 = 0 ; | |
37228 | wxPoint *arg4 = 0 ; | |
37229 | void *argp1 = 0 ; | |
37230 | int res1 = 0 ; | |
37231 | wxPoint temp2 ; | |
37232 | wxPoint temp3 ; | |
37233 | wxPoint temp4 ; | |
37234 | PyObject * obj0 = 0 ; | |
37235 | PyObject * obj1 = 0 ; | |
37236 | PyObject * obj2 = 0 ; | |
37237 | PyObject * obj3 = 0 ; | |
37238 | char * kwnames[] = { | |
37239 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
37240 | }; | |
37241 | ||
37242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37243 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37244 | if (!SWIG_IsOK(res1)) { | |
37245 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37246 | } | |
37247 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37248 | { | |
37249 | arg2 = &temp2; | |
37250 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37251 | } | |
37252 | { | |
37253 | arg3 = &temp3; | |
37254 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37255 | } | |
37256 | { | |
37257 | arg4 = &temp4; | |
37258 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
37259 | } | |
37260 | { | |
37261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37262 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
37263 | wxPyEndAllowThreads(__tstate); | |
37264 | if (PyErr_Occurred()) SWIG_fail; | |
37265 | } | |
37266 | resultobj = SWIG_Py_Void(); | |
37267 | return resultobj; | |
37268 | fail: | |
37269 | return NULL; | |
37270 | } | |
37271 | ||
37272 | ||
37273 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37274 | PyObject *resultobj = 0; | |
37275 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37276 | int arg2 ; | |
37277 | int arg3 ; | |
37278 | int arg4 ; | |
37279 | int arg5 ; | |
37280 | void *argp1 = 0 ; | |
37281 | int res1 = 0 ; | |
37282 | int val2 ; | |
37283 | int ecode2 = 0 ; | |
37284 | int val3 ; | |
37285 | int ecode3 = 0 ; | |
37286 | int val4 ; | |
37287 | int ecode4 = 0 ; | |
37288 | int val5 ; | |
37289 | int ecode5 = 0 ; | |
37290 | PyObject * obj0 = 0 ; | |
37291 | PyObject * obj1 = 0 ; | |
37292 | PyObject * obj2 = 0 ; | |
37293 | PyObject * obj3 = 0 ; | |
37294 | PyObject * obj4 = 0 ; | |
37295 | char * kwnames[] = { | |
37296 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37297 | }; | |
37298 | ||
37299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37301 | if (!SWIG_IsOK(res1)) { | |
37302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37303 | } | |
37304 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37305 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37306 | if (!SWIG_IsOK(ecode2)) { | |
37307 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
37308 | } | |
37309 | arg2 = static_cast< int >(val2); | |
37310 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37311 | if (!SWIG_IsOK(ecode3)) { | |
37312 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
37313 | } | |
37314 | arg3 = static_cast< int >(val3); | |
37315 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37316 | if (!SWIG_IsOK(ecode4)) { | |
37317 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
37318 | } | |
37319 | arg4 = static_cast< int >(val4); | |
37320 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37321 | if (!SWIG_IsOK(ecode5)) { | |
37322 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
37323 | } | |
37324 | arg5 = static_cast< int >(val5); | |
37325 | { | |
37326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37327 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
37328 | wxPyEndAllowThreads(__tstate); | |
37329 | if (PyErr_Occurred()) SWIG_fail; | |
37330 | } | |
37331 | resultobj = SWIG_Py_Void(); | |
37332 | return resultobj; | |
37333 | fail: | |
37334 | return NULL; | |
37335 | } | |
37336 | ||
37337 | ||
37338 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37339 | PyObject *resultobj = 0; | |
37340 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37341 | wxRect *arg2 = 0 ; | |
37342 | void *argp1 = 0 ; | |
37343 | int res1 = 0 ; | |
37344 | wxRect temp2 ; | |
37345 | PyObject * obj0 = 0 ; | |
37346 | PyObject * obj1 = 0 ; | |
37347 | char * kwnames[] = { | |
37348 | (char *) "self",(char *) "rect", NULL | |
37349 | }; | |
37350 | ||
37351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37353 | if (!SWIG_IsOK(res1)) { | |
37354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37355 | } | |
37356 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37357 | { | |
37358 | arg2 = &temp2; | |
37359 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37360 | } | |
37361 | { | |
37362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37363 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
37364 | wxPyEndAllowThreads(__tstate); | |
37365 | if (PyErr_Occurred()) SWIG_fail; | |
37366 | } | |
37367 | resultobj = SWIG_Py_Void(); | |
37368 | return resultobj; | |
37369 | fail: | |
37370 | return NULL; | |
37371 | } | |
37372 | ||
37373 | ||
37374 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37375 | PyObject *resultobj = 0; | |
37376 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37377 | int arg2 ; | |
37378 | int arg3 ; | |
37379 | int arg4 ; | |
37380 | int arg5 ; | |
37381 | double arg6 ; | |
37382 | double arg7 ; | |
37383 | void *argp1 = 0 ; | |
37384 | int res1 = 0 ; | |
37385 | int val2 ; | |
37386 | int ecode2 = 0 ; | |
37387 | int val3 ; | |
37388 | int ecode3 = 0 ; | |
37389 | int val4 ; | |
37390 | int ecode4 = 0 ; | |
37391 | int val5 ; | |
37392 | int ecode5 = 0 ; | |
37393 | double val6 ; | |
37394 | int ecode6 = 0 ; | |
37395 | double val7 ; | |
37396 | int ecode7 = 0 ; | |
37397 | PyObject * obj0 = 0 ; | |
37398 | PyObject * obj1 = 0 ; | |
37399 | PyObject * obj2 = 0 ; | |
37400 | PyObject * obj3 = 0 ; | |
37401 | PyObject * obj4 = 0 ; | |
37402 | PyObject * obj5 = 0 ; | |
37403 | PyObject * obj6 = 0 ; | |
37404 | char * kwnames[] = { | |
37405 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
37406 | }; | |
37407 | ||
37408 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
37409 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37410 | if (!SWIG_IsOK(res1)) { | |
37411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37412 | } | |
37413 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37414 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37415 | if (!SWIG_IsOK(ecode2)) { | |
37416 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
37417 | } | |
37418 | arg2 = static_cast< int >(val2); | |
37419 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37420 | if (!SWIG_IsOK(ecode3)) { | |
37421 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
37422 | } | |
37423 | arg3 = static_cast< int >(val3); | |
37424 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37425 | if (!SWIG_IsOK(ecode4)) { | |
37426 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
37427 | } | |
37428 | arg4 = static_cast< int >(val4); | |
37429 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37430 | if (!SWIG_IsOK(ecode5)) { | |
37431 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
37432 | } | |
37433 | arg5 = static_cast< int >(val5); | |
37434 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
37435 | if (!SWIG_IsOK(ecode6)) { | |
37436 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
37437 | } | |
37438 | arg6 = static_cast< double >(val6); | |
37439 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
37440 | if (!SWIG_IsOK(ecode7)) { | |
37441 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
37442 | } | |
37443 | arg7 = static_cast< double >(val7); | |
37444 | { | |
37445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37446 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
37447 | wxPyEndAllowThreads(__tstate); | |
37448 | if (PyErr_Occurred()) SWIG_fail; | |
37449 | } | |
37450 | resultobj = SWIG_Py_Void(); | |
37451 | return resultobj; | |
37452 | fail: | |
37453 | return NULL; | |
37454 | } | |
37455 | ||
37456 | ||
37457 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37458 | PyObject *resultobj = 0; | |
37459 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37460 | wxPoint *arg2 = 0 ; | |
37461 | wxSize *arg3 = 0 ; | |
37462 | double arg4 ; | |
37463 | double arg5 ; | |
37464 | void *argp1 = 0 ; | |
37465 | int res1 = 0 ; | |
37466 | wxPoint temp2 ; | |
37467 | wxSize temp3 ; | |
37468 | double val4 ; | |
37469 | int ecode4 = 0 ; | |
37470 | double val5 ; | |
37471 | int ecode5 = 0 ; | |
37472 | PyObject * obj0 = 0 ; | |
37473 | PyObject * obj1 = 0 ; | |
37474 | PyObject * obj2 = 0 ; | |
37475 | PyObject * obj3 = 0 ; | |
37476 | PyObject * obj4 = 0 ; | |
37477 | char * kwnames[] = { | |
37478 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
37479 | }; | |
37480 | ||
37481 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37482 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37483 | if (!SWIG_IsOK(res1)) { | |
37484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37485 | } | |
37486 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37487 | { | |
37488 | arg2 = &temp2; | |
37489 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37490 | } | |
37491 | { | |
37492 | arg3 = &temp3; | |
37493 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37494 | } | |
37495 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37496 | if (!SWIG_IsOK(ecode4)) { | |
37497 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
37498 | } | |
37499 | arg4 = static_cast< double >(val4); | |
37500 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
37501 | if (!SWIG_IsOK(ecode5)) { | |
37502 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
37503 | } | |
37504 | arg5 = static_cast< double >(val5); | |
37505 | { | |
37506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37507 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
37508 | wxPyEndAllowThreads(__tstate); | |
37509 | if (PyErr_Occurred()) SWIG_fail; | |
37510 | } | |
37511 | resultobj = SWIG_Py_Void(); | |
37512 | return resultobj; | |
37513 | fail: | |
37514 | return NULL; | |
37515 | } | |
37516 | ||
37517 | ||
37518 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37519 | PyObject *resultobj = 0; | |
37520 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37521 | int arg2 ; | |
37522 | int arg3 ; | |
37523 | void *argp1 = 0 ; | |
37524 | int res1 = 0 ; | |
37525 | int val2 ; | |
37526 | int ecode2 = 0 ; | |
37527 | int val3 ; | |
37528 | int ecode3 = 0 ; | |
37529 | PyObject * obj0 = 0 ; | |
37530 | PyObject * obj1 = 0 ; | |
37531 | PyObject * obj2 = 0 ; | |
37532 | char * kwnames[] = { | |
37533 | (char *) "self",(char *) "x",(char *) "y", NULL | |
37534 | }; | |
37535 | ||
37536 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37537 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37538 | if (!SWIG_IsOK(res1)) { | |
37539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37540 | } | |
37541 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37542 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37543 | if (!SWIG_IsOK(ecode2)) { | |
37544 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
37545 | } | |
37546 | arg2 = static_cast< int >(val2); | |
37547 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37548 | if (!SWIG_IsOK(ecode3)) { | |
37549 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
37550 | } | |
37551 | arg3 = static_cast< int >(val3); | |
37552 | { | |
37553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37554 | (arg1)->DrawPoint(arg2,arg3); | |
37555 | wxPyEndAllowThreads(__tstate); | |
37556 | if (PyErr_Occurred()) SWIG_fail; | |
37557 | } | |
37558 | resultobj = SWIG_Py_Void(); | |
37559 | return resultobj; | |
37560 | fail: | |
37561 | return NULL; | |
37562 | } | |
37563 | ||
37564 | ||
37565 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37566 | PyObject *resultobj = 0; | |
37567 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37568 | wxPoint *arg2 = 0 ; | |
37569 | void *argp1 = 0 ; | |
37570 | int res1 = 0 ; | |
37571 | wxPoint temp2 ; | |
37572 | PyObject * obj0 = 0 ; | |
37573 | PyObject * obj1 = 0 ; | |
37574 | char * kwnames[] = { | |
37575 | (char *) "self",(char *) "pt", NULL | |
37576 | }; | |
37577 | ||
37578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
37579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37580 | if (!SWIG_IsOK(res1)) { | |
37581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37582 | } | |
37583 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37584 | { | |
37585 | arg2 = &temp2; | |
37586 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37587 | } | |
37588 | { | |
37589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37590 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
37591 | wxPyEndAllowThreads(__tstate); | |
37592 | if (PyErr_Occurred()) SWIG_fail; | |
37593 | } | |
37594 | resultobj = SWIG_Py_Void(); | |
37595 | return resultobj; | |
37596 | fail: | |
37597 | return NULL; | |
37598 | } | |
37599 | ||
37600 | ||
37601 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37602 | PyObject *resultobj = 0; | |
37603 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37604 | int arg2 ; | |
37605 | int arg3 ; | |
37606 | int arg4 ; | |
37607 | int arg5 ; | |
37608 | void *argp1 = 0 ; | |
37609 | int res1 = 0 ; | |
37610 | int val2 ; | |
37611 | int ecode2 = 0 ; | |
37612 | int val3 ; | |
37613 | int ecode3 = 0 ; | |
37614 | int val4 ; | |
37615 | int ecode4 = 0 ; | |
37616 | int val5 ; | |
37617 | int ecode5 = 0 ; | |
37618 | PyObject * obj0 = 0 ; | |
37619 | PyObject * obj1 = 0 ; | |
37620 | PyObject * obj2 = 0 ; | |
37621 | PyObject * obj3 = 0 ; | |
37622 | PyObject * obj4 = 0 ; | |
37623 | char * kwnames[] = { | |
37624 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37625 | }; | |
37626 | ||
37627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37629 | if (!SWIG_IsOK(res1)) { | |
37630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37631 | } | |
37632 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37633 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37634 | if (!SWIG_IsOK(ecode2)) { | |
37635 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
37636 | } | |
37637 | arg2 = static_cast< int >(val2); | |
37638 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37639 | if (!SWIG_IsOK(ecode3)) { | |
37640 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
37641 | } | |
37642 | arg3 = static_cast< int >(val3); | |
37643 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37644 | if (!SWIG_IsOK(ecode4)) { | |
37645 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
37646 | } | |
37647 | arg4 = static_cast< int >(val4); | |
37648 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37649 | if (!SWIG_IsOK(ecode5)) { | |
37650 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
37651 | } | |
37652 | arg5 = static_cast< int >(val5); | |
37653 | { | |
37654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37655 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
37656 | wxPyEndAllowThreads(__tstate); | |
37657 | if (PyErr_Occurred()) SWIG_fail; | |
37658 | } | |
37659 | resultobj = SWIG_Py_Void(); | |
37660 | return resultobj; | |
37661 | fail: | |
37662 | return NULL; | |
37663 | } | |
37664 | ||
37665 | ||
37666 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37667 | PyObject *resultobj = 0; | |
37668 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37669 | wxRect *arg2 = 0 ; | |
37670 | void *argp1 = 0 ; | |
37671 | int res1 = 0 ; | |
37672 | wxRect temp2 ; | |
37673 | PyObject * obj0 = 0 ; | |
37674 | PyObject * obj1 = 0 ; | |
37675 | char * kwnames[] = { | |
37676 | (char *) "self",(char *) "rect", NULL | |
37677 | }; | |
37678 | ||
37679 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37680 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37681 | if (!SWIG_IsOK(res1)) { | |
37682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37683 | } | |
37684 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37685 | { | |
37686 | arg2 = &temp2; | |
37687 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37688 | } | |
37689 | { | |
37690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37691 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
37692 | wxPyEndAllowThreads(__tstate); | |
37693 | if (PyErr_Occurred()) SWIG_fail; | |
37694 | } | |
37695 | resultobj = SWIG_Py_Void(); | |
37696 | return resultobj; | |
37697 | fail: | |
37698 | return NULL; | |
37699 | } | |
37700 | ||
37701 | ||
37702 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37703 | PyObject *resultobj = 0; | |
37704 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37705 | wxPoint *arg2 = 0 ; | |
37706 | wxSize *arg3 = 0 ; | |
37707 | void *argp1 = 0 ; | |
37708 | int res1 = 0 ; | |
37709 | wxPoint temp2 ; | |
37710 | wxSize temp3 ; | |
37711 | PyObject * obj0 = 0 ; | |
37712 | PyObject * obj1 = 0 ; | |
37713 | PyObject * obj2 = 0 ; | |
37714 | char * kwnames[] = { | |
37715 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
37716 | }; | |
37717 | ||
37718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37719 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37720 | if (!SWIG_IsOK(res1)) { | |
37721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37722 | } | |
37723 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37724 | { | |
37725 | arg2 = &temp2; | |
37726 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37727 | } | |
37728 | { | |
37729 | arg3 = &temp3; | |
37730 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37731 | } | |
37732 | { | |
37733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37734 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
37735 | wxPyEndAllowThreads(__tstate); | |
37736 | if (PyErr_Occurred()) SWIG_fail; | |
37737 | } | |
37738 | resultobj = SWIG_Py_Void(); | |
37739 | return resultobj; | |
37740 | fail: | |
37741 | return NULL; | |
37742 | } | |
37743 | ||
37744 | ||
37745 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37746 | PyObject *resultobj = 0; | |
37747 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37748 | int arg2 ; | |
37749 | int arg3 ; | |
37750 | int arg4 ; | |
37751 | int arg5 ; | |
37752 | double arg6 ; | |
37753 | void *argp1 = 0 ; | |
37754 | int res1 = 0 ; | |
37755 | int val2 ; | |
37756 | int ecode2 = 0 ; | |
37757 | int val3 ; | |
37758 | int ecode3 = 0 ; | |
37759 | int val4 ; | |
37760 | int ecode4 = 0 ; | |
37761 | int val5 ; | |
37762 | int ecode5 = 0 ; | |
37763 | double val6 ; | |
37764 | int ecode6 = 0 ; | |
37765 | PyObject * obj0 = 0 ; | |
37766 | PyObject * obj1 = 0 ; | |
37767 | PyObject * obj2 = 0 ; | |
37768 | PyObject * obj3 = 0 ; | |
37769 | PyObject * obj4 = 0 ; | |
37770 | PyObject * obj5 = 0 ; | |
37771 | char * kwnames[] = { | |
37772 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
37773 | }; | |
37774 | ||
37775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
37776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37777 | if (!SWIG_IsOK(res1)) { | |
37778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37779 | } | |
37780 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37781 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37782 | if (!SWIG_IsOK(ecode2)) { | |
37783 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
37784 | } | |
37785 | arg2 = static_cast< int >(val2); | |
37786 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37787 | if (!SWIG_IsOK(ecode3)) { | |
37788 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
37789 | } | |
37790 | arg3 = static_cast< int >(val3); | |
37791 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37792 | if (!SWIG_IsOK(ecode4)) { | |
37793 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
37794 | } | |
37795 | arg4 = static_cast< int >(val4); | |
37796 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37797 | if (!SWIG_IsOK(ecode5)) { | |
37798 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
37799 | } | |
37800 | arg5 = static_cast< int >(val5); | |
37801 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
37802 | if (!SWIG_IsOK(ecode6)) { | |
37803 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
37804 | } | |
37805 | arg6 = static_cast< double >(val6); | |
37806 | { | |
37807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37808 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
37809 | wxPyEndAllowThreads(__tstate); | |
37810 | if (PyErr_Occurred()) SWIG_fail; | |
37811 | } | |
37812 | resultobj = SWIG_Py_Void(); | |
37813 | return resultobj; | |
37814 | fail: | |
37815 | return NULL; | |
37816 | } | |
37817 | ||
37818 | ||
37819 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37820 | PyObject *resultobj = 0; | |
37821 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37822 | wxRect *arg2 = 0 ; | |
37823 | double arg3 ; | |
37824 | void *argp1 = 0 ; | |
37825 | int res1 = 0 ; | |
37826 | wxRect temp2 ; | |
37827 | double val3 ; | |
37828 | int ecode3 = 0 ; | |
37829 | PyObject * obj0 = 0 ; | |
37830 | PyObject * obj1 = 0 ; | |
37831 | PyObject * obj2 = 0 ; | |
37832 | char * kwnames[] = { | |
37833 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
37834 | }; | |
37835 | ||
37836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37838 | if (!SWIG_IsOK(res1)) { | |
37839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37840 | } | |
37841 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37842 | { | |
37843 | arg2 = &temp2; | |
37844 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37845 | } | |
37846 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
37847 | if (!SWIG_IsOK(ecode3)) { | |
37848 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
37849 | } | |
37850 | arg3 = static_cast< double >(val3); | |
37851 | { | |
37852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37853 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
37854 | wxPyEndAllowThreads(__tstate); | |
37855 | if (PyErr_Occurred()) SWIG_fail; | |
37856 | } | |
37857 | resultobj = SWIG_Py_Void(); | |
37858 | return resultobj; | |
37859 | fail: | |
37860 | return NULL; | |
37861 | } | |
37862 | ||
37863 | ||
37864 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37865 | PyObject *resultobj = 0; | |
37866 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37867 | wxPoint *arg2 = 0 ; | |
37868 | wxSize *arg3 = 0 ; | |
37869 | double arg4 ; | |
37870 | void *argp1 = 0 ; | |
37871 | int res1 = 0 ; | |
37872 | wxPoint temp2 ; | |
37873 | wxSize temp3 ; | |
37874 | double val4 ; | |
37875 | int ecode4 = 0 ; | |
37876 | PyObject * obj0 = 0 ; | |
37877 | PyObject * obj1 = 0 ; | |
37878 | PyObject * obj2 = 0 ; | |
37879 | PyObject * obj3 = 0 ; | |
37880 | char * kwnames[] = { | |
37881 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
37882 | }; | |
37883 | ||
37884 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37885 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37886 | if (!SWIG_IsOK(res1)) { | |
37887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37888 | } | |
37889 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37890 | { | |
37891 | arg2 = &temp2; | |
37892 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37893 | } | |
37894 | { | |
37895 | arg3 = &temp3; | |
37896 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37897 | } | |
37898 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37899 | if (!SWIG_IsOK(ecode4)) { | |
37900 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
37901 | } | |
37902 | arg4 = static_cast< double >(val4); | |
37903 | { | |
37904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37905 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
37906 | wxPyEndAllowThreads(__tstate); | |
37907 | if (PyErr_Occurred()) SWIG_fail; | |
37908 | } | |
37909 | resultobj = SWIG_Py_Void(); | |
37910 | return resultobj; | |
37911 | fail: | |
37912 | return NULL; | |
37913 | } | |
37914 | ||
37915 | ||
37916 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37917 | PyObject *resultobj = 0; | |
37918 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37919 | int arg2 ; | |
37920 | int arg3 ; | |
37921 | int arg4 ; | |
37922 | void *argp1 = 0 ; | |
37923 | int res1 = 0 ; | |
37924 | int val2 ; | |
37925 | int ecode2 = 0 ; | |
37926 | int val3 ; | |
37927 | int ecode3 = 0 ; | |
37928 | int val4 ; | |
37929 | int ecode4 = 0 ; | |
37930 | PyObject * obj0 = 0 ; | |
37931 | PyObject * obj1 = 0 ; | |
37932 | PyObject * obj2 = 0 ; | |
37933 | PyObject * obj3 = 0 ; | |
37934 | char * kwnames[] = { | |
37935 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
37936 | }; | |
37937 | ||
37938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37940 | if (!SWIG_IsOK(res1)) { | |
37941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37942 | } | |
37943 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37944 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37945 | if (!SWIG_IsOK(ecode2)) { | |
37946 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
37947 | } | |
37948 | arg2 = static_cast< int >(val2); | |
37949 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37950 | if (!SWIG_IsOK(ecode3)) { | |
37951 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
37952 | } | |
37953 | arg3 = static_cast< int >(val3); | |
37954 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37955 | if (!SWIG_IsOK(ecode4)) { | |
37956 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
37957 | } | |
37958 | arg4 = static_cast< int >(val4); | |
37959 | { | |
37960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37961 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
37962 | wxPyEndAllowThreads(__tstate); | |
37963 | if (PyErr_Occurred()) SWIG_fail; | |
37964 | } | |
37965 | resultobj = SWIG_Py_Void(); | |
37966 | return resultobj; | |
37967 | fail: | |
37968 | return NULL; | |
37969 | } | |
37970 | ||
37971 | ||
37972 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37973 | PyObject *resultobj = 0; | |
37974 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37975 | wxPoint *arg2 = 0 ; | |
37976 | int arg3 ; | |
37977 | void *argp1 = 0 ; | |
37978 | int res1 = 0 ; | |
37979 | wxPoint temp2 ; | |
37980 | int val3 ; | |
37981 | int ecode3 = 0 ; | |
37982 | PyObject * obj0 = 0 ; | |
37983 | PyObject * obj1 = 0 ; | |
37984 | PyObject * obj2 = 0 ; | |
37985 | char * kwnames[] = { | |
37986 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
37987 | }; | |
37988 | ||
37989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37991 | if (!SWIG_IsOK(res1)) { | |
37992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37993 | } | |
37994 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37995 | { | |
37996 | arg2 = &temp2; | |
37997 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37998 | } | |
37999 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38000 | if (!SWIG_IsOK(ecode3)) { | |
38001 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
38002 | } | |
38003 | arg3 = static_cast< int >(val3); | |
38004 | { | |
38005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38006 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
38007 | wxPyEndAllowThreads(__tstate); | |
38008 | if (PyErr_Occurred()) SWIG_fail; | |
38009 | } | |
38010 | resultobj = SWIG_Py_Void(); | |
38011 | return resultobj; | |
38012 | fail: | |
38013 | return NULL; | |
38014 | } | |
38015 | ||
38016 | ||
38017 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38018 | PyObject *resultobj = 0; | |
38019 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38020 | int arg2 ; | |
38021 | int arg3 ; | |
38022 | int arg4 ; | |
38023 | int arg5 ; | |
38024 | void *argp1 = 0 ; | |
38025 | int res1 = 0 ; | |
38026 | int val2 ; | |
38027 | int ecode2 = 0 ; | |
38028 | int val3 ; | |
38029 | int ecode3 = 0 ; | |
38030 | int val4 ; | |
38031 | int ecode4 = 0 ; | |
38032 | int val5 ; | |
38033 | int ecode5 = 0 ; | |
38034 | PyObject * obj0 = 0 ; | |
38035 | PyObject * obj1 = 0 ; | |
38036 | PyObject * obj2 = 0 ; | |
38037 | PyObject * obj3 = 0 ; | |
38038 | PyObject * obj4 = 0 ; | |
38039 | char * kwnames[] = { | |
38040 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
38041 | }; | |
38042 | ||
38043 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38045 | if (!SWIG_IsOK(res1)) { | |
38046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38047 | } | |
38048 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38049 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38050 | if (!SWIG_IsOK(ecode2)) { | |
38051 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
38052 | } | |
38053 | arg2 = static_cast< int >(val2); | |
38054 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38055 | if (!SWIG_IsOK(ecode3)) { | |
38056 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
38057 | } | |
38058 | arg3 = static_cast< int >(val3); | |
38059 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38060 | if (!SWIG_IsOK(ecode4)) { | |
38061 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
38062 | } | |
38063 | arg4 = static_cast< int >(val4); | |
38064 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38065 | if (!SWIG_IsOK(ecode5)) { | |
38066 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
38067 | } | |
38068 | arg5 = static_cast< int >(val5); | |
38069 | { | |
38070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38071 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
38072 | wxPyEndAllowThreads(__tstate); | |
38073 | if (PyErr_Occurred()) SWIG_fail; | |
38074 | } | |
38075 | resultobj = SWIG_Py_Void(); | |
38076 | return resultobj; | |
38077 | fail: | |
38078 | return NULL; | |
38079 | } | |
38080 | ||
38081 | ||
38082 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38083 | PyObject *resultobj = 0; | |
38084 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38085 | wxRect *arg2 = 0 ; | |
38086 | void *argp1 = 0 ; | |
38087 | int res1 = 0 ; | |
38088 | wxRect temp2 ; | |
38089 | PyObject * obj0 = 0 ; | |
38090 | PyObject * obj1 = 0 ; | |
38091 | char * kwnames[] = { | |
38092 | (char *) "self",(char *) "rect", NULL | |
38093 | }; | |
38094 | ||
38095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
38096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38097 | if (!SWIG_IsOK(res1)) { | |
38098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38099 | } | |
38100 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38101 | { | |
38102 | arg2 = &temp2; | |
38103 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
38104 | } | |
38105 | { | |
38106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38107 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
38108 | wxPyEndAllowThreads(__tstate); | |
38109 | if (PyErr_Occurred()) SWIG_fail; | |
38110 | } | |
38111 | resultobj = SWIG_Py_Void(); | |
38112 | return resultobj; | |
38113 | fail: | |
38114 | return NULL; | |
38115 | } | |
38116 | ||
38117 | ||
38118 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38119 | PyObject *resultobj = 0; | |
38120 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38121 | wxPoint *arg2 = 0 ; | |
38122 | wxSize *arg3 = 0 ; | |
38123 | void *argp1 = 0 ; | |
38124 | int res1 = 0 ; | |
38125 | wxPoint temp2 ; | |
38126 | wxSize temp3 ; | |
38127 | PyObject * obj0 = 0 ; | |
38128 | PyObject * obj1 = 0 ; | |
38129 | PyObject * obj2 = 0 ; | |
38130 | char * kwnames[] = { | |
38131 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
38132 | }; | |
38133 | ||
38134 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38136 | if (!SWIG_IsOK(res1)) { | |
38137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38138 | } | |
38139 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38140 | { | |
38141 | arg2 = &temp2; | |
38142 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
38143 | } | |
38144 | { | |
38145 | arg3 = &temp3; | |
38146 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
38147 | } | |
38148 | { | |
38149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38150 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
38151 | wxPyEndAllowThreads(__tstate); | |
38152 | if (PyErr_Occurred()) SWIG_fail; | |
38153 | } | |
38154 | resultobj = SWIG_Py_Void(); | |
38155 | return resultobj; | |
38156 | fail: | |
38157 | return NULL; | |
38158 | } | |
38159 | ||
38160 | ||
38161 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38162 | PyObject *resultobj = 0; | |
38163 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38164 | wxIcon *arg2 = 0 ; | |
38165 | int arg3 ; | |
38166 | int arg4 ; | |
38167 | void *argp1 = 0 ; | |
38168 | int res1 = 0 ; | |
38169 | void *argp2 = 0 ; | |
38170 | int res2 = 0 ; | |
38171 | int val3 ; | |
38172 | int ecode3 = 0 ; | |
38173 | int val4 ; | |
38174 | int ecode4 = 0 ; | |
38175 | PyObject * obj0 = 0 ; | |
38176 | PyObject * obj1 = 0 ; | |
38177 | PyObject * obj2 = 0 ; | |
38178 | PyObject * obj3 = 0 ; | |
38179 | char * kwnames[] = { | |
38180 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
38181 | }; | |
38182 | ||
38183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38184 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38185 | if (!SWIG_IsOK(res1)) { | |
38186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38187 | } | |
38188 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38189 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
38190 | if (!SWIG_IsOK(res2)) { | |
38191 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38192 | } | |
38193 | if (!argp2) { | |
38194 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38195 | } | |
38196 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
38197 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38198 | if (!SWIG_IsOK(ecode3)) { | |
38199 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
38200 | } | |
38201 | arg3 = static_cast< int >(val3); | |
38202 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38203 | if (!SWIG_IsOK(ecode4)) { | |
38204 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
38205 | } | |
38206 | arg4 = static_cast< int >(val4); | |
38207 | { | |
38208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38209 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
38210 | wxPyEndAllowThreads(__tstate); | |
38211 | if (PyErr_Occurred()) SWIG_fail; | |
38212 | } | |
38213 | resultobj = SWIG_Py_Void(); | |
38214 | return resultobj; | |
38215 | fail: | |
38216 | return NULL; | |
38217 | } | |
38218 | ||
38219 | ||
38220 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38221 | PyObject *resultobj = 0; | |
38222 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38223 | wxIcon *arg2 = 0 ; | |
38224 | wxPoint *arg3 = 0 ; | |
38225 | void *argp1 = 0 ; | |
38226 | int res1 = 0 ; | |
38227 | void *argp2 = 0 ; | |
38228 | int res2 = 0 ; | |
38229 | wxPoint temp3 ; | |
38230 | PyObject * obj0 = 0 ; | |
38231 | PyObject * obj1 = 0 ; | |
38232 | PyObject * obj2 = 0 ; | |
38233 | char * kwnames[] = { | |
38234 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
38235 | }; | |
38236 | ||
38237 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38239 | if (!SWIG_IsOK(res1)) { | |
38240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38241 | } | |
38242 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38243 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
38244 | if (!SWIG_IsOK(res2)) { | |
38245 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38246 | } | |
38247 | if (!argp2) { | |
38248 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38249 | } | |
38250 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
38251 | { | |
38252 | arg3 = &temp3; | |
38253 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38254 | } | |
38255 | { | |
38256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38257 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
38258 | wxPyEndAllowThreads(__tstate); | |
38259 | if (PyErr_Occurred()) SWIG_fail; | |
38260 | } | |
38261 | resultobj = SWIG_Py_Void(); | |
38262 | return resultobj; | |
38263 | fail: | |
38264 | return NULL; | |
38265 | } | |
38266 | ||
38267 | ||
38268 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38269 | PyObject *resultobj = 0; | |
38270 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38271 | wxBitmap *arg2 = 0 ; | |
38272 | int arg3 ; | |
38273 | int arg4 ; | |
38274 | bool arg5 = (bool) false ; | |
38275 | void *argp1 = 0 ; | |
38276 | int res1 = 0 ; | |
38277 | void *argp2 = 0 ; | |
38278 | int res2 = 0 ; | |
38279 | int val3 ; | |
38280 | int ecode3 = 0 ; | |
38281 | int val4 ; | |
38282 | int ecode4 = 0 ; | |
38283 | bool val5 ; | |
38284 | int ecode5 = 0 ; | |
38285 | PyObject * obj0 = 0 ; | |
38286 | PyObject * obj1 = 0 ; | |
38287 | PyObject * obj2 = 0 ; | |
38288 | PyObject * obj3 = 0 ; | |
38289 | PyObject * obj4 = 0 ; | |
38290 | char * kwnames[] = { | |
38291 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
38292 | }; | |
38293 | ||
38294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38296 | if (!SWIG_IsOK(res1)) { | |
38297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38298 | } | |
38299 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38300 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38301 | if (!SWIG_IsOK(res2)) { | |
38302 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38303 | } | |
38304 | if (!argp2) { | |
38305 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38306 | } | |
38307 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
38308 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38309 | if (!SWIG_IsOK(ecode3)) { | |
38310 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
38311 | } | |
38312 | arg3 = static_cast< int >(val3); | |
38313 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38314 | if (!SWIG_IsOK(ecode4)) { | |
38315 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
38316 | } | |
38317 | arg4 = static_cast< int >(val4); | |
38318 | if (obj4) { | |
38319 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
38320 | if (!SWIG_IsOK(ecode5)) { | |
38321 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
38322 | } | |
38323 | arg5 = static_cast< bool >(val5); | |
38324 | } | |
38325 | { | |
38326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38327 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
38328 | wxPyEndAllowThreads(__tstate); | |
38329 | if (PyErr_Occurred()) SWIG_fail; | |
38330 | } | |
38331 | resultobj = SWIG_Py_Void(); | |
38332 | return resultobj; | |
38333 | fail: | |
38334 | return NULL; | |
38335 | } | |
38336 | ||
38337 | ||
38338 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38339 | PyObject *resultobj = 0; | |
38340 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38341 | wxBitmap *arg2 = 0 ; | |
38342 | wxPoint *arg3 = 0 ; | |
38343 | bool arg4 = (bool) false ; | |
38344 | void *argp1 = 0 ; | |
38345 | int res1 = 0 ; | |
38346 | void *argp2 = 0 ; | |
38347 | int res2 = 0 ; | |
38348 | wxPoint temp3 ; | |
38349 | bool val4 ; | |
38350 | int ecode4 = 0 ; | |
38351 | PyObject * obj0 = 0 ; | |
38352 | PyObject * obj1 = 0 ; | |
38353 | PyObject * obj2 = 0 ; | |
38354 | PyObject * obj3 = 0 ; | |
38355 | char * kwnames[] = { | |
38356 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
38357 | }; | |
38358 | ||
38359 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38360 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38361 | if (!SWIG_IsOK(res1)) { | |
38362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38363 | } | |
38364 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38365 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38366 | if (!SWIG_IsOK(res2)) { | |
38367 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38368 | } | |
38369 | if (!argp2) { | |
38370 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38371 | } | |
38372 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
38373 | { | |
38374 | arg3 = &temp3; | |
38375 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38376 | } | |
38377 | if (obj3) { | |
38378 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
38379 | if (!SWIG_IsOK(ecode4)) { | |
38380 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
38381 | } | |
38382 | arg4 = static_cast< bool >(val4); | |
38383 | } | |
38384 | { | |
38385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38386 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
38387 | wxPyEndAllowThreads(__tstate); | |
38388 | if (PyErr_Occurred()) SWIG_fail; | |
38389 | } | |
38390 | resultobj = SWIG_Py_Void(); | |
38391 | return resultobj; | |
38392 | fail: | |
38393 | return NULL; | |
38394 | } | |
38395 | ||
38396 | ||
38397 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38398 | PyObject *resultobj = 0; | |
38399 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38400 | wxString *arg2 = 0 ; | |
38401 | int arg3 ; | |
38402 | int arg4 ; | |
38403 | void *argp1 = 0 ; | |
38404 | int res1 = 0 ; | |
38405 | bool temp2 = false ; | |
38406 | int val3 ; | |
38407 | int ecode3 = 0 ; | |
38408 | int val4 ; | |
38409 | int ecode4 = 0 ; | |
38410 | PyObject * obj0 = 0 ; | |
38411 | PyObject * obj1 = 0 ; | |
38412 | PyObject * obj2 = 0 ; | |
38413 | PyObject * obj3 = 0 ; | |
38414 | char * kwnames[] = { | |
38415 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
38416 | }; | |
38417 | ||
38418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38419 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38420 | if (!SWIG_IsOK(res1)) { | |
38421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38422 | } | |
38423 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38424 | { | |
38425 | arg2 = wxString_in_helper(obj1); | |
38426 | if (arg2 == NULL) SWIG_fail; | |
38427 | temp2 = true; | |
38428 | } | |
38429 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38430 | if (!SWIG_IsOK(ecode3)) { | |
38431 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
38432 | } | |
38433 | arg3 = static_cast< int >(val3); | |
38434 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38435 | if (!SWIG_IsOK(ecode4)) { | |
38436 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
38437 | } | |
38438 | arg4 = static_cast< int >(val4); | |
38439 | { | |
38440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38441 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
38442 | wxPyEndAllowThreads(__tstate); | |
38443 | if (PyErr_Occurred()) SWIG_fail; | |
38444 | } | |
38445 | resultobj = SWIG_Py_Void(); | |
38446 | { | |
38447 | if (temp2) | |
38448 | delete arg2; | |
38449 | } | |
38450 | return resultobj; | |
38451 | fail: | |
38452 | { | |
38453 | if (temp2) | |
38454 | delete arg2; | |
38455 | } | |
38456 | return NULL; | |
38457 | } | |
38458 | ||
38459 | ||
38460 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38461 | PyObject *resultobj = 0; | |
38462 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38463 | wxString *arg2 = 0 ; | |
38464 | wxPoint *arg3 = 0 ; | |
38465 | void *argp1 = 0 ; | |
38466 | int res1 = 0 ; | |
38467 | bool temp2 = false ; | |
38468 | wxPoint temp3 ; | |
38469 | PyObject * obj0 = 0 ; | |
38470 | PyObject * obj1 = 0 ; | |
38471 | PyObject * obj2 = 0 ; | |
38472 | char * kwnames[] = { | |
38473 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
38474 | }; | |
38475 | ||
38476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38478 | if (!SWIG_IsOK(res1)) { | |
38479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38480 | } | |
38481 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38482 | { | |
38483 | arg2 = wxString_in_helper(obj1); | |
38484 | if (arg2 == NULL) SWIG_fail; | |
38485 | temp2 = true; | |
38486 | } | |
38487 | { | |
38488 | arg3 = &temp3; | |
38489 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38490 | } | |
38491 | { | |
38492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38493 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
38494 | wxPyEndAllowThreads(__tstate); | |
38495 | if (PyErr_Occurred()) SWIG_fail; | |
38496 | } | |
38497 | resultobj = SWIG_Py_Void(); | |
38498 | { | |
38499 | if (temp2) | |
38500 | delete arg2; | |
38501 | } | |
38502 | return resultobj; | |
38503 | fail: | |
38504 | { | |
38505 | if (temp2) | |
38506 | delete arg2; | |
38507 | } | |
38508 | return NULL; | |
38509 | } | |
38510 | ||
38511 | ||
38512 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38513 | PyObject *resultobj = 0; | |
38514 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38515 | wxString *arg2 = 0 ; | |
38516 | int arg3 ; | |
38517 | int arg4 ; | |
38518 | double arg5 ; | |
38519 | void *argp1 = 0 ; | |
38520 | int res1 = 0 ; | |
38521 | bool temp2 = false ; | |
38522 | int val3 ; | |
38523 | int ecode3 = 0 ; | |
38524 | int val4 ; | |
38525 | int ecode4 = 0 ; | |
38526 | double val5 ; | |
38527 | int ecode5 = 0 ; | |
38528 | PyObject * obj0 = 0 ; | |
38529 | PyObject * obj1 = 0 ; | |
38530 | PyObject * obj2 = 0 ; | |
38531 | PyObject * obj3 = 0 ; | |
38532 | PyObject * obj4 = 0 ; | |
38533 | char * kwnames[] = { | |
38534 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
38535 | }; | |
38536 | ||
38537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38539 | if (!SWIG_IsOK(res1)) { | |
38540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38541 | } | |
38542 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38543 | { | |
38544 | arg2 = wxString_in_helper(obj1); | |
38545 | if (arg2 == NULL) SWIG_fail; | |
38546 | temp2 = true; | |
38547 | } | |
38548 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38549 | if (!SWIG_IsOK(ecode3)) { | |
38550 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
38551 | } | |
38552 | arg3 = static_cast< int >(val3); | |
38553 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38554 | if (!SWIG_IsOK(ecode4)) { | |
38555 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
38556 | } | |
38557 | arg4 = static_cast< int >(val4); | |
38558 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
38559 | if (!SWIG_IsOK(ecode5)) { | |
38560 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
38561 | } | |
38562 | arg5 = static_cast< double >(val5); | |
38563 | { | |
38564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38565 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
38566 | wxPyEndAllowThreads(__tstate); | |
38567 | if (PyErr_Occurred()) SWIG_fail; | |
38568 | } | |
38569 | resultobj = SWIG_Py_Void(); | |
38570 | { | |
38571 | if (temp2) | |
38572 | delete arg2; | |
38573 | } | |
38574 | return resultobj; | |
38575 | fail: | |
38576 | { | |
38577 | if (temp2) | |
38578 | delete arg2; | |
38579 | } | |
38580 | return NULL; | |
38581 | } | |
38582 | ||
38583 | ||
38584 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38585 | PyObject *resultobj = 0; | |
38586 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38587 | wxString *arg2 = 0 ; | |
38588 | wxPoint *arg3 = 0 ; | |
38589 | double arg4 ; | |
38590 | void *argp1 = 0 ; | |
38591 | int res1 = 0 ; | |
38592 | bool temp2 = false ; | |
38593 | wxPoint temp3 ; | |
38594 | double val4 ; | |
38595 | int ecode4 = 0 ; | |
38596 | PyObject * obj0 = 0 ; | |
38597 | PyObject * obj1 = 0 ; | |
38598 | PyObject * obj2 = 0 ; | |
38599 | PyObject * obj3 = 0 ; | |
38600 | char * kwnames[] = { | |
38601 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
38602 | }; | |
38603 | ||
38604 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38605 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38606 | if (!SWIG_IsOK(res1)) { | |
38607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38608 | } | |
38609 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38610 | { | |
38611 | arg2 = wxString_in_helper(obj1); | |
38612 | if (arg2 == NULL) SWIG_fail; | |
38613 | temp2 = true; | |
38614 | } | |
38615 | { | |
38616 | arg3 = &temp3; | |
38617 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38618 | } | |
38619 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
38620 | if (!SWIG_IsOK(ecode4)) { | |
38621 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
38622 | } | |
38623 | arg4 = static_cast< double >(val4); | |
38624 | { | |
38625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38626 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
38627 | wxPyEndAllowThreads(__tstate); | |
38628 | if (PyErr_Occurred()) SWIG_fail; | |
38629 | } | |
38630 | resultobj = SWIG_Py_Void(); | |
38631 | { | |
38632 | if (temp2) | |
38633 | delete arg2; | |
38634 | } | |
38635 | return resultobj; | |
38636 | fail: | |
38637 | { | |
38638 | if (temp2) | |
38639 | delete arg2; | |
38640 | } | |
38641 | return NULL; | |
38642 | } | |
38643 | ||
38644 | ||
38645 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38646 | PyObject *resultobj = 0; | |
38647 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38648 | int arg2 ; | |
38649 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38650 | int arg4 = (int) 0 ; | |
38651 | int arg5 = (int) 0 ; | |
38652 | void *argp1 = 0 ; | |
38653 | int res1 = 0 ; | |
38654 | int val4 ; | |
38655 | int ecode4 = 0 ; | |
38656 | int val5 ; | |
38657 | int ecode5 = 0 ; | |
38658 | PyObject * obj0 = 0 ; | |
38659 | PyObject * obj1 = 0 ; | |
38660 | PyObject * obj2 = 0 ; | |
38661 | PyObject * obj3 = 0 ; | |
38662 | char * kwnames[] = { | |
38663 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
38664 | }; | |
38665 | ||
38666 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38667 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38668 | if (!SWIG_IsOK(res1)) { | |
38669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38670 | } | |
38671 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38672 | { | |
38673 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38674 | if (arg3 == NULL) SWIG_fail; | |
38675 | } | |
38676 | if (obj2) { | |
38677 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
38678 | if (!SWIG_IsOK(ecode4)) { | |
38679 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
38680 | } | |
38681 | arg4 = static_cast< int >(val4); | |
38682 | } | |
38683 | if (obj3) { | |
38684 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
38685 | if (!SWIG_IsOK(ecode5)) { | |
38686 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
38687 | } | |
38688 | arg5 = static_cast< int >(val5); | |
38689 | } | |
38690 | { | |
38691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38692 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
38693 | wxPyEndAllowThreads(__tstate); | |
38694 | if (PyErr_Occurred()) SWIG_fail; | |
38695 | } | |
38696 | resultobj = SWIG_Py_Void(); | |
38697 | { | |
38698 | if (arg3) delete [] arg3; | |
38699 | } | |
38700 | return resultobj; | |
38701 | fail: | |
38702 | { | |
38703 | if (arg3) delete [] arg3; | |
38704 | } | |
38705 | return NULL; | |
38706 | } | |
38707 | ||
38708 | ||
38709 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38710 | PyObject *resultobj = 0; | |
38711 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38712 | int arg2 ; | |
38713 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38714 | int arg4 = (int) 0 ; | |
38715 | int arg5 = (int) 0 ; | |
38716 | int arg6 = (int) wxODDEVEN_RULE ; | |
38717 | void *argp1 = 0 ; | |
38718 | int res1 = 0 ; | |
38719 | int val4 ; | |
38720 | int ecode4 = 0 ; | |
38721 | int val5 ; | |
38722 | int ecode5 = 0 ; | |
38723 | int val6 ; | |
38724 | int ecode6 = 0 ; | |
38725 | PyObject * obj0 = 0 ; | |
38726 | PyObject * obj1 = 0 ; | |
38727 | PyObject * obj2 = 0 ; | |
38728 | PyObject * obj3 = 0 ; | |
38729 | PyObject * obj4 = 0 ; | |
38730 | char * kwnames[] = { | |
38731 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
38732 | }; | |
38733 | ||
38734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38735 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38736 | if (!SWIG_IsOK(res1)) { | |
38737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38738 | } | |
38739 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38740 | { | |
38741 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38742 | if (arg3 == NULL) SWIG_fail; | |
38743 | } | |
38744 | if (obj2) { | |
38745 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
38746 | if (!SWIG_IsOK(ecode4)) { | |
38747 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
38748 | } | |
38749 | arg4 = static_cast< int >(val4); | |
38750 | } | |
38751 | if (obj3) { | |
38752 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
38753 | if (!SWIG_IsOK(ecode5)) { | |
38754 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
38755 | } | |
38756 | arg5 = static_cast< int >(val5); | |
38757 | } | |
38758 | if (obj4) { | |
38759 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
38760 | if (!SWIG_IsOK(ecode6)) { | |
38761 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
38762 | } | |
38763 | arg6 = static_cast< int >(val6); | |
38764 | } | |
38765 | { | |
38766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38767 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
38768 | wxPyEndAllowThreads(__tstate); | |
38769 | if (PyErr_Occurred()) SWIG_fail; | |
38770 | } | |
38771 | resultobj = SWIG_Py_Void(); | |
38772 | { | |
38773 | if (arg3) delete [] arg3; | |
38774 | } | |
38775 | return resultobj; | |
38776 | fail: | |
38777 | { | |
38778 | if (arg3) delete [] arg3; | |
38779 | } | |
38780 | return NULL; | |
38781 | } | |
38782 | ||
38783 | ||
38784 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38785 | PyObject *resultobj = 0; | |
38786 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38787 | wxString *arg2 = 0 ; | |
38788 | wxRect *arg3 = 0 ; | |
38789 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
38790 | int arg5 = (int) -1 ; | |
38791 | void *argp1 = 0 ; | |
38792 | int res1 = 0 ; | |
38793 | bool temp2 = false ; | |
38794 | wxRect temp3 ; | |
38795 | int val4 ; | |
38796 | int ecode4 = 0 ; | |
38797 | int val5 ; | |
38798 | int ecode5 = 0 ; | |
38799 | PyObject * obj0 = 0 ; | |
38800 | PyObject * obj1 = 0 ; | |
38801 | PyObject * obj2 = 0 ; | |
38802 | PyObject * obj3 = 0 ; | |
38803 | PyObject * obj4 = 0 ; | |
38804 | char * kwnames[] = { | |
38805 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
38806 | }; | |
38807 | ||
38808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38810 | if (!SWIG_IsOK(res1)) { | |
38811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38812 | } | |
38813 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38814 | { | |
38815 | arg2 = wxString_in_helper(obj1); | |
38816 | if (arg2 == NULL) SWIG_fail; | |
38817 | temp2 = true; | |
38818 | } | |
38819 | { | |
38820 | arg3 = &temp3; | |
38821 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
38822 | } | |
38823 | if (obj3) { | |
38824 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38825 | if (!SWIG_IsOK(ecode4)) { | |
38826 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
38827 | } | |
38828 | arg4 = static_cast< int >(val4); | |
38829 | } | |
38830 | if (obj4) { | |
38831 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38832 | if (!SWIG_IsOK(ecode5)) { | |
38833 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
38834 | } | |
38835 | arg5 = static_cast< int >(val5); | |
38836 | } | |
38837 | { | |
38838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38839 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
38840 | wxPyEndAllowThreads(__tstate); | |
38841 | if (PyErr_Occurred()) SWIG_fail; | |
38842 | } | |
38843 | resultobj = SWIG_Py_Void(); | |
38844 | { | |
38845 | if (temp2) | |
38846 | delete arg2; | |
38847 | } | |
38848 | return resultobj; | |
38849 | fail: | |
38850 | { | |
38851 | if (temp2) | |
38852 | delete arg2; | |
38853 | } | |
38854 | return NULL; | |
38855 | } | |
38856 | ||
38857 | ||
38858 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38859 | PyObject *resultobj = 0; | |
38860 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38861 | wxString *arg2 = 0 ; | |
38862 | wxBitmap *arg3 = 0 ; | |
38863 | wxRect *arg4 = 0 ; | |
38864 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
38865 | int arg6 = (int) -1 ; | |
38866 | void *argp1 = 0 ; | |
38867 | int res1 = 0 ; | |
38868 | bool temp2 = false ; | |
38869 | void *argp3 = 0 ; | |
38870 | int res3 = 0 ; | |
38871 | wxRect temp4 ; | |
38872 | int val5 ; | |
38873 | int ecode5 = 0 ; | |
38874 | int val6 ; | |
38875 | int ecode6 = 0 ; | |
38876 | PyObject * obj0 = 0 ; | |
38877 | PyObject * obj1 = 0 ; | |
38878 | PyObject * obj2 = 0 ; | |
38879 | PyObject * obj3 = 0 ; | |
38880 | PyObject * obj4 = 0 ; | |
38881 | PyObject * obj5 = 0 ; | |
38882 | char * kwnames[] = { | |
38883 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
38884 | }; | |
38885 | ||
38886 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
38887 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38888 | if (!SWIG_IsOK(res1)) { | |
38889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38890 | } | |
38891 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38892 | { | |
38893 | arg2 = wxString_in_helper(obj1); | |
38894 | if (arg2 == NULL) SWIG_fail; | |
38895 | temp2 = true; | |
38896 | } | |
38897 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38898 | if (!SWIG_IsOK(res3)) { | |
38899 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
38900 | } | |
38901 | if (!argp3) { | |
38902 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
38903 | } | |
38904 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
38905 | { | |
38906 | arg4 = &temp4; | |
38907 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
38908 | } | |
38909 | if (obj4) { | |
38910 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38911 | if (!SWIG_IsOK(ecode5)) { | |
38912 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
38913 | } | |
38914 | arg5 = static_cast< int >(val5); | |
38915 | } | |
38916 | if (obj5) { | |
38917 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
38918 | if (!SWIG_IsOK(ecode6)) { | |
38919 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
38920 | } | |
38921 | arg6 = static_cast< int >(val6); | |
38922 | } | |
38923 | { | |
38924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38925 | (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
38926 | wxPyEndAllowThreads(__tstate); | |
38927 | if (PyErr_Occurred()) SWIG_fail; | |
38928 | } | |
38929 | resultobj = SWIG_Py_Void(); | |
38930 | { | |
38931 | if (temp2) | |
38932 | delete arg2; | |
38933 | } | |
38934 | return resultobj; | |
38935 | fail: | |
38936 | { | |
38937 | if (temp2) | |
38938 | delete arg2; | |
38939 | } | |
38940 | return NULL; | |
38941 | } | |
38942 | ||
38943 | ||
38944 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38945 | PyObject *resultobj = 0; | |
38946 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38947 | int arg2 ; | |
38948 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38949 | void *argp1 = 0 ; | |
38950 | int res1 = 0 ; | |
38951 | PyObject * obj0 = 0 ; | |
38952 | PyObject * obj1 = 0 ; | |
38953 | char * kwnames[] = { | |
38954 | (char *) "self",(char *) "points", NULL | |
38955 | }; | |
38956 | ||
38957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
38958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38959 | if (!SWIG_IsOK(res1)) { | |
38960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38961 | } | |
38962 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38963 | { | |
38964 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38965 | if (arg3 == NULL) SWIG_fail; | |
38966 | } | |
38967 | { | |
38968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38969 | (arg1)->DrawSpline(arg2,arg3); | |
38970 | wxPyEndAllowThreads(__tstate); | |
38971 | if (PyErr_Occurred()) SWIG_fail; | |
38972 | } | |
38973 | resultobj = SWIG_Py_Void(); | |
38974 | { | |
38975 | if (arg3) delete [] arg3; | |
38976 | } | |
38977 | return resultobj; | |
38978 | fail: | |
38979 | { | |
38980 | if (arg3) delete [] arg3; | |
38981 | } | |
38982 | return NULL; | |
38983 | } | |
38984 | ||
38985 | ||
38986 | SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38987 | PyObject *resultobj = 0; | |
38988 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38989 | void *argp1 = 0 ; | |
38990 | int res1 = 0 ; | |
38991 | PyObject *swig_obj[1] ; | |
38992 | ||
38993 | if (!args) SWIG_fail; | |
38994 | swig_obj[0] = args; | |
38995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38996 | if (!SWIG_IsOK(res1)) { | |
38997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38998 | } | |
38999 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39000 | { | |
39001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39002 | (arg1)->Clear(); | |
39003 | wxPyEndAllowThreads(__tstate); | |
39004 | if (PyErr_Occurred()) SWIG_fail; | |
39005 | } | |
39006 | resultobj = SWIG_Py_Void(); | |
39007 | return resultobj; | |
39008 | fail: | |
39009 | return NULL; | |
39010 | } | |
39011 | ||
39012 | ||
39013 | SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39014 | PyObject *resultobj = 0; | |
39015 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39016 | wxFont *arg2 = 0 ; | |
39017 | void *argp1 = 0 ; | |
39018 | int res1 = 0 ; | |
39019 | void *argp2 = 0 ; | |
39020 | int res2 = 0 ; | |
39021 | PyObject * obj0 = 0 ; | |
39022 | PyObject * obj1 = 0 ; | |
39023 | char * kwnames[] = { | |
39024 | (char *) "self",(char *) "font", NULL | |
39025 | }; | |
39026 | ||
39027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
39028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39029 | if (!SWIG_IsOK(res1)) { | |
39030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39031 | } | |
39032 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39033 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
39034 | if (!SWIG_IsOK(res2)) { | |
39035 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
39036 | } | |
39037 | if (!argp2) { | |
39038 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
39039 | } | |
39040 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
39041 | { | |
39042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39043 | (arg1)->SetFont((wxFont const &)*arg2); | |
39044 | wxPyEndAllowThreads(__tstate); | |
39045 | if (PyErr_Occurred()) SWIG_fail; | |
39046 | } | |
39047 | resultobj = SWIG_Py_Void(); | |
39048 | return resultobj; | |
39049 | fail: | |
39050 | return NULL; | |
39051 | } | |
39052 | ||
39053 | ||
39054 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39055 | PyObject *resultobj = 0; | |
39056 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39057 | wxPen *arg2 = 0 ; | |
39058 | void *argp1 = 0 ; | |
39059 | int res1 = 0 ; | |
39060 | void *argp2 = 0 ; | |
39061 | int res2 = 0 ; | |
39062 | PyObject * obj0 = 0 ; | |
39063 | PyObject * obj1 = 0 ; | |
39064 | char * kwnames[] = { | |
39065 | (char *) "self",(char *) "pen", NULL | |
39066 | }; | |
39067 | ||
39068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
39069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39070 | if (!SWIG_IsOK(res1)) { | |
39071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39072 | } | |
39073 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39074 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
39075 | if (!SWIG_IsOK(res2)) { | |
39076 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
39077 | } | |
39078 | if (!argp2) { | |
39079 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
39080 | } | |
39081 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
39082 | { | |
39083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39084 | (arg1)->SetPen((wxPen const &)*arg2); | |
39085 | wxPyEndAllowThreads(__tstate); | |
39086 | if (PyErr_Occurred()) SWIG_fail; | |
39087 | } | |
39088 | resultobj = SWIG_Py_Void(); | |
39089 | return resultobj; | |
39090 | fail: | |
39091 | return NULL; | |
39092 | } | |
39093 | ||
39094 | ||
39095 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39096 | PyObject *resultobj = 0; | |
39097 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39098 | wxBrush *arg2 = 0 ; | |
39099 | void *argp1 = 0 ; | |
39100 | int res1 = 0 ; | |
39101 | void *argp2 = 0 ; | |
39102 | int res2 = 0 ; | |
39103 | PyObject * obj0 = 0 ; | |
39104 | PyObject * obj1 = 0 ; | |
39105 | char * kwnames[] = { | |
39106 | (char *) "self",(char *) "brush", NULL | |
39107 | }; | |
39108 | ||
39109 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
39110 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39111 | if (!SWIG_IsOK(res1)) { | |
39112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39113 | } | |
39114 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39115 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
39116 | if (!SWIG_IsOK(res2)) { | |
39117 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
39118 | } | |
39119 | if (!argp2) { | |
39120 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
39121 | } | |
39122 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
39123 | { | |
39124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39125 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
39126 | wxPyEndAllowThreads(__tstate); | |
39127 | if (PyErr_Occurred()) SWIG_fail; | |
39128 | } | |
39129 | resultobj = SWIG_Py_Void(); | |
39130 | return resultobj; | |
39131 | fail: | |
39132 | return NULL; | |
39133 | } | |
39134 | ||
39135 | ||
39136 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39137 | PyObject *resultobj = 0; | |
39138 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39139 | wxBrush *arg2 = 0 ; | |
39140 | void *argp1 = 0 ; | |
39141 | int res1 = 0 ; | |
39142 | void *argp2 = 0 ; | |
39143 | int res2 = 0 ; | |
39144 | PyObject * obj0 = 0 ; | |
39145 | PyObject * obj1 = 0 ; | |
39146 | char * kwnames[] = { | |
39147 | (char *) "self",(char *) "brush", NULL | |
39148 | }; | |
39149 | ||
39150 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39151 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39152 | if (!SWIG_IsOK(res1)) { | |
39153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39154 | } | |
39155 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39156 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
39157 | if (!SWIG_IsOK(res2)) { | |
39158 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
39159 | } | |
39160 | if (!argp2) { | |
39161 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
39162 | } | |
39163 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
39164 | { | |
39165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39166 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
39167 | wxPyEndAllowThreads(__tstate); | |
39168 | if (PyErr_Occurred()) SWIG_fail; | |
39169 | } | |
39170 | resultobj = SWIG_Py_Void(); | |
39171 | return resultobj; | |
39172 | fail: | |
39173 | return NULL; | |
39174 | } | |
39175 | ||
39176 | ||
39177 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39178 | PyObject *resultobj = 0; | |
39179 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39180 | int arg2 ; | |
39181 | void *argp1 = 0 ; | |
39182 | int res1 = 0 ; | |
39183 | int val2 ; | |
39184 | int ecode2 = 0 ; | |
39185 | PyObject * obj0 = 0 ; | |
39186 | PyObject * obj1 = 0 ; | |
39187 | char * kwnames[] = { | |
39188 | (char *) "self",(char *) "mode", NULL | |
39189 | }; | |
39190 | ||
39191 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
39192 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39193 | if (!SWIG_IsOK(res1)) { | |
39194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39195 | } | |
39196 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39197 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39198 | if (!SWIG_IsOK(ecode2)) { | |
39199 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
39200 | } | |
39201 | arg2 = static_cast< int >(val2); | |
39202 | { | |
39203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39204 | (arg1)->SetBackgroundMode(arg2); | |
39205 | wxPyEndAllowThreads(__tstate); | |
39206 | if (PyErr_Occurred()) SWIG_fail; | |
39207 | } | |
39208 | resultobj = SWIG_Py_Void(); | |
39209 | return resultobj; | |
39210 | fail: | |
39211 | return NULL; | |
39212 | } | |
39213 | ||
39214 | ||
39215 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39216 | PyObject *resultobj = 0; | |
39217 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39218 | wxPalette *arg2 = 0 ; | |
39219 | void *argp1 = 0 ; | |
39220 | int res1 = 0 ; | |
39221 | void *argp2 = 0 ; | |
39222 | int res2 = 0 ; | |
39223 | PyObject * obj0 = 0 ; | |
39224 | PyObject * obj1 = 0 ; | |
39225 | char * kwnames[] = { | |
39226 | (char *) "self",(char *) "palette", NULL | |
39227 | }; | |
39228 | ||
39229 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
39230 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39231 | if (!SWIG_IsOK(res1)) { | |
39232 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39233 | } | |
39234 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39235 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
39236 | if (!SWIG_IsOK(res2)) { | |
39237 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
39238 | } | |
39239 | if (!argp2) { | |
39240 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
39241 | } | |
39242 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
39243 | { | |
39244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39245 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
39246 | wxPyEndAllowThreads(__tstate); | |
39247 | if (PyErr_Occurred()) SWIG_fail; | |
39248 | } | |
39249 | resultobj = SWIG_Py_Void(); | |
39250 | return resultobj; | |
39251 | fail: | |
39252 | return NULL; | |
39253 | } | |
39254 | ||
39255 | ||
39256 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39257 | PyObject *resultobj = 0; | |
39258 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39259 | wxColour *arg2 = 0 ; | |
39260 | void *argp1 = 0 ; | |
39261 | int res1 = 0 ; | |
39262 | wxColour temp2 ; | |
39263 | PyObject * obj0 = 0 ; | |
39264 | PyObject * obj1 = 0 ; | |
39265 | char * kwnames[] = { | |
39266 | (char *) "self",(char *) "colour", NULL | |
39267 | }; | |
39268 | ||
39269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39270 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39271 | if (!SWIG_IsOK(res1)) { | |
39272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39273 | } | |
39274 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39275 | { | |
39276 | arg2 = &temp2; | |
39277 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
39278 | } | |
39279 | { | |
39280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39281 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
39282 | wxPyEndAllowThreads(__tstate); | |
39283 | if (PyErr_Occurred()) SWIG_fail; | |
39284 | } | |
39285 | resultobj = SWIG_Py_Void(); | |
39286 | return resultobj; | |
39287 | fail: | |
39288 | return NULL; | |
39289 | } | |
39290 | ||
39291 | ||
39292 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39293 | PyObject *resultobj = 0; | |
39294 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39295 | wxColour *arg2 = 0 ; | |
39296 | void *argp1 = 0 ; | |
39297 | int res1 = 0 ; | |
39298 | wxColour temp2 ; | |
39299 | PyObject * obj0 = 0 ; | |
39300 | PyObject * obj1 = 0 ; | |
39301 | char * kwnames[] = { | |
39302 | (char *) "self",(char *) "colour", NULL | |
39303 | }; | |
39304 | ||
39305 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39306 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39307 | if (!SWIG_IsOK(res1)) { | |
39308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39309 | } | |
39310 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39311 | { | |
39312 | arg2 = &temp2; | |
39313 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
39314 | } | |
39315 | { | |
39316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39317 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
39318 | wxPyEndAllowThreads(__tstate); | |
39319 | if (PyErr_Occurred()) SWIG_fail; | |
39320 | } | |
39321 | resultobj = SWIG_Py_Void(); | |
39322 | return resultobj; | |
39323 | fail: | |
39324 | return NULL; | |
39325 | } | |
39326 | ||
39327 | ||
39328 | SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39329 | PyObject *resultobj = 0; | |
39330 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39331 | int arg2 ; | |
39332 | void *argp1 = 0 ; | |
39333 | int res1 = 0 ; | |
39334 | int val2 ; | |
39335 | int ecode2 = 0 ; | |
39336 | PyObject * obj0 = 0 ; | |
39337 | PyObject * obj1 = 0 ; | |
39338 | char * kwnames[] = { | |
39339 | (char *) "self",(char *) "function", NULL | |
39340 | }; | |
39341 | ||
39342 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
39343 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39344 | if (!SWIG_IsOK(res1)) { | |
39345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39346 | } | |
39347 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39348 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39349 | if (!SWIG_IsOK(ecode2)) { | |
39350 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
39351 | } | |
39352 | arg2 = static_cast< int >(val2); | |
39353 | { | |
39354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39355 | (arg1)->SetLogicalFunction(arg2); | |
39356 | wxPyEndAllowThreads(__tstate); | |
39357 | if (PyErr_Occurred()) SWIG_fail; | |
39358 | } | |
39359 | resultobj = SWIG_Py_Void(); | |
39360 | return resultobj; | |
39361 | fail: | |
39362 | return NULL; | |
39363 | } | |
39364 | ||
39365 | ||
39366 | SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39367 | PyObject *obj; | |
39368 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39369 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj)); | |
39370 | return SWIG_Py_Void(); | |
39371 | } | |
39372 | ||
39373 | SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39374 | return SWIG_Python_InitShadowInstance(args); | |
39375 | } | |
39376 | ||
39377 | static PyMethodDef SwigMethods[] = { | |
39378 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
39379 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
39380 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
39381 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
39382 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
39383 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39384 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39385 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39386 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
39387 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
39388 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
39389 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
fc46b7f3 | 39390 | { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, |
b39fe951 | 39391 | { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL}, |
27e45892 RD |
39392 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
39393 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39394 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39395 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39396 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
39397 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39398 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fc46b7f3 | 39399 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
39400 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, |
39401 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
39402 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
39403 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39404 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
39405 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39406 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39407 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
b39fe951 | 39408 | { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL}, |
27e45892 RD |
39409 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, |
39410 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
39411 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39412 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
39413 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
39414 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
39415 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
39416 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
39417 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
b39fe951 | 39418 | { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL}, |
27e45892 RD |
39419 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, |
39420 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39421 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39422 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39423 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39424 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39425 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
39426 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39427 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
39428 | { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL}, | |
39429 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39430 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39431 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39432 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
39433 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
39434 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39435 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39436 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
39437 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39438 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39439 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39440 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
39441 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
39442 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
39443 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
b39fe951 | 39444 | { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL}, |
27e45892 RD |
39445 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, |
39446 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
39447 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39448 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
39449 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39450 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39451 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39452 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39453 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39454 | { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL}, | |
39455 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39456 | { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL}, |
27e45892 RD |
39457 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, |
39458 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
39459 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
39460 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
39461 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
39462 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
39463 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39464 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39465 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39466 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39467 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39468 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
39469 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39470 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39471 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39472 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39473 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39474 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39475 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 RD |
39476 | { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, |
39477 | { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
39478 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
39479 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39480 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
39481 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
39482 | { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
39483 | { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39484 | { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39485 | { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL}, | |
39486 | { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL}, | |
39487 | { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL}, | |
39488 | { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL}, | |
39489 | { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL}, | |
39490 | { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL}, | |
39491 | { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL}, | |
39492 | { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL}, | |
39493 | { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL}, | |
39494 | { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL}, | |
39495 | { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL}, | |
39496 | { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL}, | |
39497 | { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL}, | |
39498 | { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL}, | |
39499 | { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL}, | |
39500 | { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39501 | { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL}, | |
39502 | { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL}, | |
39503 | { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39504 | { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39505 | { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39506 | { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39507 | { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39508 | { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL}, | |
39509 | { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
39510 | { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
39511 | { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL}, | |
39512 | { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL}, | |
39513 | { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL}, | |
39514 | { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL}, | |
39515 | { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL}, | |
39516 | { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL}, | |
39517 | { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL}, | |
39518 | { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL}, | |
39519 | { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL}, | |
39520 | { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39521 | { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL}, | |
39522 | { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL}, | |
39523 | { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39524 | { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39525 | { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39526 | { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39527 | { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39528 | { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL}, | |
39529 | { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
39530 | { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
27e45892 RD |
39531 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, |
39532 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
39533 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
39534 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
39535 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39536 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
39537 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
39538 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39539 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39540 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39541 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39542 | { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL}, | |
39543 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39544 | { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL}, |
27e45892 RD |
39545 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, |
39546 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
39547 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
39548 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39549 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39550 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39551 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39552 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39553 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
39554 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
39555 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39556 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
39557 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
39558 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39559 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
39560 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39561 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
39562 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
39563 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
39564 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
39565 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39566 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39567 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
39568 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39569 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39570 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39571 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
39572 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
39573 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39574 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
39575 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39576 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39577 | { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL}, | |
39578 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39579 | { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL}, |
27e45892 RD |
39580 | { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL}, |
39581 | { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL}, | |
39582 | { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL}, | |
39583 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39584 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39585 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39586 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39587 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, | |
39588 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
39589 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39590 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39591 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39592 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39593 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
39594 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
39595 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39596 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39597 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39598 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39599 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39600 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
39601 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39602 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39603 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39604 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
f5263701 | 39605 | { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
39606 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, |
39607 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39608 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39609 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39610 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39611 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39612 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39613 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39614 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39615 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
39616 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39617 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39618 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
39619 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
39620 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39621 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
39622 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
39623 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
39624 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
39625 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
39626 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
39627 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
39628 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
39629 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
39630 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
39631 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
39632 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
39633 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
39634 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
39635 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
39636 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
39637 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
39638 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39639 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
39640 | { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL}, | |
39641 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
39642 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
39643 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
39644 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
39645 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
39646 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
39647 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39648 | { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39649 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39650 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39651 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39652 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39653 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39654 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39655 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39656 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
39657 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
39658 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39659 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
39660 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
39661 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
39662 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
39663 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
39664 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
39665 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
39666 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
39667 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
39668 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39669 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
39670 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
39671 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
39672 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39673 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39674 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
39675 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
39676 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
39677 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39678 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39679 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
39680 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
39681 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, |
39682 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39683 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39684 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39685 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
39686 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39687 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39688 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39689 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39690 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
39691 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
39692 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39693 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
39694 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39695 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39696 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39697 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39698 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39699 | { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL}, |
554f62e9 RD |
39700 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
39701 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39702 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
39703 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
39704 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
39705 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
39706 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
39707 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
39708 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
39709 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
39710 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
39711 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
39712 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
39713 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
39714 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
39715 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39716 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39717 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39718 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39719 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39720 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39721 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39722 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39723 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39724 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39725 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39726 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
39727 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
39728 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
39729 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39730 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
39731 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
39732 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39733 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
39734 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
39735 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
39736 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
39737 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39738 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39739 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
39740 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
39741 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
39742 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
39743 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
39744 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
39745 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
39746 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
39747 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
39748 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
39749 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
39750 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
39751 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
39752 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39753 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
39754 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39755 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39756 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
39757 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
39758 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
39759 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
39760 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
39761 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
39762 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
39763 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
39764 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39765 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b | 39766 | { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
39767 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, |
39768 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39769 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39770 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39771 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39772 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39773 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
39774 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
39775 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
39776 | { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL}, |
39777 | { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL}, | |
39778 | { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39779 | { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39780 | { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39781 | { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL}, | |
39782 | { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39783 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, |
39784 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
39785 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
39786 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
39787 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39788 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39789 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39790 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39791 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39792 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
39793 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
39794 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
39795 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39796 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39797 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39798 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39799 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39800 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39801 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39802 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39803 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39804 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39805 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39806 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39807 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39808 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39809 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39810 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39811 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39812 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39813 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39814 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39815 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39816 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39817 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39818 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39819 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39820 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39821 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39822 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39823 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39824 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39825 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39826 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39827 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39828 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39829 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39830 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39831 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39832 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39833 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 | 39834 | { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
39835 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
39836 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39837 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39838 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39839 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39840 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39841 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39842 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39843 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39844 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
39845 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39846 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
39847 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
39848 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
39849 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39850 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39851 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39852 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39853 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39854 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39855 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
39856 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
39857 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
39858 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
39859 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
39860 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39861 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39862 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39863 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39864 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
39865 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
39866 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
39867 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
39868 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39869 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39870 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39871 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39872 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39873 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39874 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39875 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39876 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
39877 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
39878 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
39879 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
b39fe951 | 39880 | { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL}, |
554f62e9 RD |
39881 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, |
39882 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
39883 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
39884 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
39885 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
39886 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
39887 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
39888 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39889 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39890 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
39891 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39892 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
39893 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39894 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
39895 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39896 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
39897 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
39898 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39899 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39900 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
39901 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
39902 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39903 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39904 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39905 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
39906 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39907 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
39908 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39909 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39910 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
39911 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
39912 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
39913 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
39914 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
39915 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
b39fe951 RD |
39916 | { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL}, |
39917 | { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
39918 | { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL}, |
39919 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39920 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39921 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39922 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39923 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39924 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39925 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
70d7cb34 RD |
39926 | { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL}, |
39927 | { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL}, | |
39928 | { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL}, | |
39929 | { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL}, | |
39930 | { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39931 | { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL}, | |
39932 | { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL}, | |
39933 | { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL}, | |
39934 | { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39935 | { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL}, | |
39936 | { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL}, | |
39937 | { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL}, | |
39938 | { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL}, | |
39939 | { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL}, | |
39940 | { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL}, | |
39941 | { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39942 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, |
39943 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39944 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39945 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
39946 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
39947 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
72ef6efb RD |
39948 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39949 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
39950 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39951 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39952 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
39953 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
39954 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39955 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
39956 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
26c4d26f RD |
39957 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39958 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39959 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39960 | { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39961 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
39962 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
24f6c4e8 RD |
39963 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, |
39964 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
39965 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
b6df5cf9 RD |
39966 | { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
39967 | { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL}, | |
24f6c4e8 RD |
39968 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, |
39969 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
39970 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39971 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39972 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
39973 | { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39974 | { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39975 | { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 39976 | { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
39977 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39978 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
39979 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
39980 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39981 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
39982 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39983 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39984 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
39985 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
39986 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
39987 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39988 | { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL}, | |
b39fe951 | 39989 | { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL}, |
554f62e9 RD |
39990 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL}, |
39991 | { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL}, | |
39992 | { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL}, | |
39993 | { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL}, | |
39994 | { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL}, | |
39995 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
39996 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
39997 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39998 | { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL}, | |
39999 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
40000 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
40001 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40002 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
40003 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
70d7cb34 RD |
40004 | { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL}, |
40005 | { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL}, | |
40006 | { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL}, | |
40007 | { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL}, | |
40008 | { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL}, | |
40009 | { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL}, | |
40010 | { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL}, | |
40011 | { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL}, | |
40012 | { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL}, | |
40013 | { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL}, | |
40014 | { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL}, | |
40015 | { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL}, | |
40016 | { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL}, | |
40017 | { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL}, | |
40018 | { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL}, | |
40019 | { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL}, | |
40020 | { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL}, | |
40021 | { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL}, | |
8f514ab4 | 40022 | { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL}, |
5c8c7dd3 RD |
40023 | { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL}, |
40024 | { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 | 40025 | { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
248802d0 | 40026 | { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL}, |
5c8c7dd3 RD |
40027 | { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL}, |
40028 | { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40029 | { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL}, | |
40030 | { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40031 | { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40032 | { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40033 | { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40034 | { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40035 | { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL}, | |
40036 | { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL}, | |
8f514ab4 RD |
40037 | { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL}, |
40038 | { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL}, | |
72ef6efb | 40039 | { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL}, |
70d7cb34 RD |
40040 | { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL}, |
40041 | { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL}, | |
40042 | { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL}, | |
40043 | { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
40044 | { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL}, |
40045 | { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL}, | |
70d7cb34 | 40046 | { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL}, |
72ef6efb RD |
40047 | { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
40048 | { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40049 | { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40050 | { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 RD |
40051 | { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, |
40052 | { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40053 | { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL}, | |
40054 | { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40055 | { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40056 | { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL}, | |
40057 | { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL}, | |
72ef6efb | 40058 | { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL}, |
8f514ab4 | 40059 | { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL}, |
72ef6efb | 40060 | { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL}, |
0a27f394 | 40061 | { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL}, |
f89238b9 | 40062 | { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL}, |
0a27f394 | 40063 | { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL}, |
70d7cb34 | 40064 | { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 40065 | { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL}, |
70d7cb34 RD |
40066 | { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
40067 | { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40068 | { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40069 | { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40070 | { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40071 | { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
40072 | { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL}, |
40073 | { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL}, | |
0a27f394 | 40074 | { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 40075 | { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL}, |
0a27f394 RD |
40076 | { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL}, |
40077 | { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL}, | |
c8aaaf9e RD |
40078 | { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL}, |
40079 | { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
40080 | { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, |
40081 | { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40082 | { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
40083 | { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL}, |
40084 | { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40085 | { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL}, | |
70d7cb34 RD |
40086 | { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL}, |
40087 | { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL}, | |
40088 | { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL}, | |
72ef6efb RD |
40089 | { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
40090 | { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40091 | { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
40092 | { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, |
40093 | { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be68621e | 40094 | { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
40095 | { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
40096 | { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40097 | { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40098 | { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40099 | { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 40100 | { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
f8eb59b9 | 40101 | { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
40102 | { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
40103 | { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40104 | { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40105 | { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 40106 | { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL}, |
72ef6efb | 40107 | { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL}, |
70d7cb34 RD |
40108 | { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL}, |
40109 | { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL}, | |
40110 | { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL}, | |
f89238b9 | 40111 | { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL}, |
70d7cb34 RD |
40112 | { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL}, |
40113 | { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40114 | { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL}, | |
40115 | { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40116 | { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40117 | { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40118 | { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40119 | { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40120 | { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40121 | { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL}, | |
48a0c021 | 40122 | { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL}, |
72ef6efb | 40123 | { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL}, |
0a27f394 RD |
40124 | { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL}, |
40125 | { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
40126 | { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL}, |
40127 | { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL}, | |
b39fe951 RD |
40128 | { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL}, |
40129 | { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL}, | |
40130 | { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL}, | |
40131 | { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL}, | |
40132 | { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL}, | |
40133 | { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL}, | |
40134 | { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL}, | |
40135 | { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL}, | |
40136 | { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL}, | |
40137 | { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
40138 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, |
40139 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
40140 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40141 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40142 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40143 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40144 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40145 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40146 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40147 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
40148 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40149 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
40150 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40151 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
40152 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
40153 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
40154 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
40155 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
40156 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
40157 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40158 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40159 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40160 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40161 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40162 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
40163 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
40164 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
40165 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
40166 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
40167 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
554f62e9 | 40168 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 40169 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 40170 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 40171 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 40172 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 40173 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 40174 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 40175 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
50efceee RD |
40176 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
40177 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40178 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40179 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
554f62e9 RD |
40180 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
40181 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
40182 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40183 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40184 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40185 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40186 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
40187 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
40188 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
40189 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
40190 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
40191 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
554f62e9 RD |
40192 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
40193 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
40194 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
40195 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
40196 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
40197 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
40198 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40199 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40200 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40201 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40202 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40203 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40204 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40205 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40206 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
40207 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
40208 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40209 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
40210 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
40211 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
40212 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
40213 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
40214 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
33d6fd3b RD |
40215 | { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL}, |
40216 | { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL}, | |
40217 | { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL}, | |
40218 | { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL}, | |
40219 | { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL}, | |
40220 | { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL}, | |
40221 | { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL}, | |
40222 | { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL}, | |
40223 | { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL}, | |
40224 | { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL}, | |
40225 | { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL}, | |
40226 | { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL}, | |
40227 | { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL}, | |
40228 | { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL}, | |
40229 | { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL}, | |
40230 | { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL}, | |
40231 | { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL}, | |
40232 | { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
40233 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
40234 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
40235 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40236 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
40237 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
40238 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
40239 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
40240 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b RD |
40241 | { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL}, |
40242 | { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
40243 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
40244 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40245 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40246 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40247 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
f460c29d RD |
40248 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
40249 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40250 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
40251 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
40252 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
40253 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
40254 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
40255 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40256 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
40257 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
27e45892 RD |
40258 | { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL}, |
40259 | { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL}, | |
40260 | { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL}, | |
40261 | { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL}, | |
40262 | { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL}, | |
40263 | { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL}, | |
40264 | { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40265 | { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40266 | { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40267 | { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
40268 | { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, |
40269 | { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40270 | { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40271 | { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
40272 | { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
40273 | { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40274 | { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40275 | { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40276 | { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40277 | { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40278 | { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40279 | { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40280 | { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40281 | { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40282 | { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40283 | { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40284 | { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40285 | { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40286 | { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40287 | { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40288 | { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40289 | { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40290 | { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40291 | { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40292 | { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40293 | { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40294 | { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40295 | { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40296 | { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40297 | { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40298 | { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40299 | { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40300 | { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40301 | { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40302 | { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40303 | { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40304 | { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40305 | { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40306 | { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40307 | { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40308 | { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40309 | { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40310 | { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40311 | { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40312 | { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40313 | { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40314 | { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40315 | { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40316 | { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL}, | |
40317 | { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40318 | { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40319 | { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40320 | { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40321 | { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40322 | { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40323 | { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40324 | { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40325 | { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40326 | { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL}, | |
40327 | { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
40328 | { NULL, NULL, 0, NULL } |
40329 | }; | |
40330 | ||
40331 | ||
40332 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
40333 | ||
72ef6efb RD |
40334 | static void *_p_wxPaintDCTo_p_wxClientDC(void *x) { |
40335 | return (void *)((wxClientDC *) ((wxPaintDC *) x)); | |
40336 | } | |
8e99bda9 RD |
40337 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
40338 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
40339 | } | |
40340 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
40341 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
40342 | } | |
26c4d26f RD |
40343 | static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) { |
40344 | return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
40345 | } | |
40346 | static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) { | |
40347 | return (void *)((wxWindowDC *) ((wxMemoryDC *) x)); | |
40348 | } | |
72ef6efb RD |
40349 | static void *_p_wxClientDCTo_p_wxWindowDC(void *x) { |
40350 | return (void *)((wxWindowDC *) ((wxClientDC *) x)); | |
40351 | } | |
40352 | static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) { | |
40353 | return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x)); | |
40354 | } | |
26c4d26f RD |
40355 | static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) { |
40356 | return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
40357 | } | |
fc46b7f3 RD |
40358 | static void *_p_wxPyLocaleTo_p_wxLocale(void *x) { |
40359 | return (void *)((wxLocale *) ((wxPyLocale *) x)); | |
40360 | } | |
70d7cb34 RD |
40361 | static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) { |
40362 | return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
40363 | } | |
40364 | static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) { | |
40365 | return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
40366 | } | |
40367 | static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) { | |
40368 | return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
40369 | } | |
40370 | static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) { | |
40371 | return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
40372 | } | |
40373 | static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) { | |
40374 | return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
40375 | } | |
40376 | static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) { | |
40377 | return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
40378 | } | |
554f62e9 RD |
40379 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
40380 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
40381 | } | |
40382 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
40383 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
40384 | } | |
40385 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
40386 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
40387 | } | |
40388 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
40389 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
40390 | } | |
40391 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
40392 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
40393 | } | |
40394 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
40395 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
40396 | } | |
40397 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
40398 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
40399 | } | |
40400 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
40401 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
40402 | } | |
72ef6efb RD |
40403 | static void *_p_wxGCDCTo_p_wxDC(void *x) { |
40404 | return (void *)((wxDC *) ((wxGCDC *) x)); | |
40405 | } | |
554f62e9 RD |
40406 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
40407 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
40408 | } | |
24f6c4e8 | 40409 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
26c4d26f | 40410 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
24f6c4e8 | 40411 | } |
554f62e9 RD |
40412 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { |
40413 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
40414 | } | |
554f62e9 RD |
40415 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { |
40416 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
40417 | } | |
26c4d26f RD |
40418 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { |
40419 | return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x)); | |
40420 | } | |
554f62e9 RD |
40421 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { |
40422 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
40423 | } | |
554f62e9 | 40424 | static void *_p_wxClientDCTo_p_wxDC(void *x) { |
72ef6efb | 40425 | return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x)); |
554f62e9 RD |
40426 | } |
40427 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
72ef6efb | 40428 | return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); |
554f62e9 | 40429 | } |
24f6c4e8 | 40430 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { |
26c4d26f | 40431 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
24f6c4e8 RD |
40432 | } |
40433 | static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) { | |
40434 | return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
40435 | } | |
554f62e9 RD |
40436 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { |
40437 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
40438 | } | |
40439 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
40440 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
40441 | } | |
50efceee RD |
40442 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
40443 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
40444 | } | |
40445 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
40446 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
40447 | } | |
40448 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
40449 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
40450 | } | |
554f62e9 RD |
40451 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
40452 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
40453 | } | |
40454 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
40455 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
40456 | } | |
40457 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
40458 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
40459 | } | |
40460 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
40461 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
40462 | } | |
554f62e9 RD |
40463 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
40464 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
40465 | } | |
0f83f5da RD |
40466 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
40467 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
40468 | } | |
554f62e9 RD |
40469 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
40470 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
40471 | } | |
40472 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
40473 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
40474 | } | |
40475 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
40476 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
40477 | } | |
40478 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
40479 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40480 | } | |
40481 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
40482 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
40483 | } | |
40484 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
40485 | return (void *)((wxObject *) ((wxSizer *) x)); | |
40486 | } | |
40487 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
40488 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40489 | } | |
40490 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
40491 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40492 | } | |
554f62e9 RD |
40493 | static void *_p_wxEventTo_p_wxObject(void *x) { |
40494 | return (void *)((wxObject *) ((wxEvent *) x)); | |
40495 | } | |
40496 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
40497 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40498 | } | |
40499 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
40500 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
40501 | } | |
40502 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
40503 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
40504 | } | |
27e45892 RD |
40505 | static void *_p_wxPseudoDCTo_p_wxObject(void *x) { |
40506 | return (void *)((wxObject *) ((wxPseudoDC *) x)); | |
40507 | } | |
2131d850 RD |
40508 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
40509 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
40510 | } | |
554f62e9 RD |
40511 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
40512 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
40513 | } | |
40514 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
40515 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
40516 | } | |
40517 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
40518 | return (void *)((wxObject *) ((wxDC *) x)); | |
40519 | } | |
40520 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
40521 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
40522 | } | |
40523 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
40524 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40525 | } | |
40526 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
40527 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40528 | } | |
40529 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
40530 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40531 | } | |
40532 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
40533 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
40534 | } | |
70d7cb34 RD |
40535 | static void *_p_wxGraphicsPenTo_p_wxObject(void *x) { |
40536 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
40537 | } | |
554f62e9 RD |
40538 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
40539 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
40540 | } | |
40541 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
72ef6efb | 40542 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x)); |
554f62e9 RD |
40543 | } |
40544 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
40545 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
40546 | } | |
40547 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
26c4d26f | 40548 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x)); |
554f62e9 RD |
40549 | } |
40550 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
40551 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
40552 | } | |
40553 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
40554 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
40555 | } | |
40556 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
40557 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
40558 | } | |
40559 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
40560 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
40561 | } | |
70d7cb34 RD |
40562 | static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) { |
40563 | return (void *)((wxObject *) ((wxGraphicsObject *) x)); | |
40564 | } | |
40565 | static void *_p_wxGraphicsPathTo_p_wxObject(void *x) { | |
40566 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
40567 | } | |
554f62e9 RD |
40568 | static void *_p_wxEffectsTo_p_wxObject(void *x) { |
40569 | return (void *)((wxObject *) ((wxEffects *) x)); | |
40570 | } | |
40571 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
40572 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
40573 | } | |
40574 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
40575 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40576 | } | |
40577 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
40578 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
40579 | } | |
70d7cb34 RD |
40580 | static void *_p_wxGraphicsContextTo_p_wxObject(void *x) { |
40581 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
40582 | } | |
554f62e9 RD |
40583 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
40584 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
40585 | } | |
40586 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
40587 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
40588 | } | |
40589 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
40590 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
40591 | } | |
40592 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
40593 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
40594 | } | |
40595 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
40596 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40597 | } | |
40598 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
40599 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
40600 | } | |
40601 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
40602 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
40603 | } | |
40604 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
40605 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
40606 | } | |
40607 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
40608 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
40609 | } | |
40610 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
40611 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
40612 | } | |
40613 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
40614 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
40615 | } | |
40616 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
40617 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
40618 | } | |
40619 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
40620 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
40621 | } | |
40622 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
40623 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
40624 | } | |
40625 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
40626 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
40627 | } | |
40628 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
40629 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
40630 | } | |
40631 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
40632 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40633 | } | |
40634 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
40635 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
40636 | } | |
40637 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
40638 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
40639 | } | |
40640 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
40641 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
40642 | } | |
40643 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
40644 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
40645 | } | |
40646 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
40647 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
40648 | } | |
40649 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
40650 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
40651 | } | |
40652 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
40653 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
40654 | } | |
580080c5 RD |
40655 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
40656 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
40657 | } | |
554f62e9 RD |
40658 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
40659 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
40660 | } | |
0f83f5da RD |
40661 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
40662 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
40663 | } | |
24f6c4e8 RD |
40664 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { |
40665 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); | |
40666 | } | |
554f62e9 | 40667 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { |
26c4d26f | 40668 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
554f62e9 | 40669 | } |
24f6c4e8 RD |
40670 | static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) { |
40671 | return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
554f62e9 RD |
40672 | } |
40673 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
40674 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
40675 | } | |
40676 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
40677 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
40678 | } | |
554f62e9 RD |
40679 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
40680 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
40681 | } | |
580080c5 RD |
40682 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
40683 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
40684 | } | |
554f62e9 RD |
40685 | static void *_p_wxImageTo_p_wxObject(void *x) { |
40686 | return (void *)((wxObject *) ((wxImage *) x)); | |
40687 | } | |
40688 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
40689 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
40690 | } | |
70d7cb34 RD |
40691 | static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) { |
40692 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
40693 | } | |
40694 | static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) { | |
40695 | return (void *)((wxObject *) ((wxGraphicsRenderer *) x)); | |
40696 | } | |
554f62e9 RD |
40697 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
40698 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
40699 | } | |
40700 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
26c4d26f | 40701 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
554f62e9 RD |
40702 | } |
40703 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
40704 | return (void *)((wxObject *) ((wxImageList *) x)); | |
40705 | } | |
72ef6efb RD |
40706 | static void *_p_wxGCDCTo_p_wxObject(void *x) { |
40707 | return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x)); | |
40708 | } | |
554f62e9 RD |
40709 | static void *_p_wxCursorTo_p_wxObject(void *x) { |
40710 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
40711 | } | |
40712 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
40713 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
40714 | } | |
40715 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
40716 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
40717 | } | |
70d7cb34 RD |
40718 | static void *_p_wxGraphicsFontTo_p_wxObject(void *x) { |
40719 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
40720 | } | |
554f62e9 RD |
40721 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
40722 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40723 | } | |
40724 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
40725 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40726 | } | |
40727 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
40728 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
40729 | } | |
40730 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
40731 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
40732 | } | |
40733 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
40734 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
40735 | } | |
40736 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
40737 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
40738 | } | |
40739 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
40740 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
40741 | } | |
554f62e9 RD |
40742 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
40743 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
40744 | } | |
40745 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
40746 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
40747 | } | |
40748 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
40749 | return (void *)((wxObject *) ((wxMask *) x)); | |
40750 | } | |
70d7cb34 RD |
40751 | static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) { |
40752 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
40753 | } | |
554f62e9 RD |
40754 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
40755 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40756 | } | |
40757 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
40758 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
40759 | } | |
40760 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
40761 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
40762 | } | |
40763 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
40764 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
40765 | } | |
40766 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
40767 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
40768 | } | |
40769 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
40770 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
40771 | } | |
40772 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
40773 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40774 | } | |
40775 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
40776 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
40777 | } | |
40778 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
40779 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
40780 | } | |
40781 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
40782 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
40783 | } | |
40784 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
40785 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40786 | } | |
40787 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
40788 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
40789 | } | |
40790 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
40791 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
40792 | } | |
40793 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
40794 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
40795 | } | |
40796 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
40797 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40798 | } | |
40799 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
40800 | return (void *)((wxObject *) ((wxColour *) x)); | |
40801 | } | |
554f62e9 RD |
40802 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
40803 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
40804 | } | |
40805 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
40806 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
40807 | } | |
40808 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
40809 | return (void *)((wxWindow *) ((wxControl *) x)); | |
40810 | } | |
40811 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
40812 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
40813 | } | |
40814 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
40815 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
40816 | } | |
fc46b7f3 RD |
40817 | static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) { |
40818 | return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x)); | |
40819 | } | |
40820 | static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) { | |
40821 | return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x)); | |
40822 | } | |
40823 | static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0}; | |
554f62e9 | 40824 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
72ef6efb | 40825 | static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40826 | 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}; |
40827 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
40828 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
40829 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
40830 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 40831 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
fc46b7f3 RD |
40832 | static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; |
40833 | static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; | |
24f6c4e8 | 40834 | static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40835 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
40836 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
40837 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
40838 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
40839 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 40840 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; |
554f62e9 | 40841 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; |
72ef6efb | 40842 | static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40843 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
40844 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
40845 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
40846 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
70d7cb34 RD |
40847 | static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0}; |
40848 | static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0}; | |
b39fe951 | 40849 | static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40850 | static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0}; |
40851 | static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0}; | |
554f62e9 RD |
40852 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; |
40853 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
40854 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
40855 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
40856 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
40857 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
40858 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
72ef6efb | 40859 | static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0}; |
50efceee | 40860 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
554f62e9 | 40861 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
70d7cb34 | 40862 | static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0}; |
72ef6efb | 40863 | static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40864 | static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0}; |
40865 | static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0}; | |
40866 | static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0}; | |
72ef6efb | 40867 | static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40868 | static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0}; |
40869 | static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0}; | |
33d6fd3b | 40870 | static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40871 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
40872 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
40873 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
40874 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
40875 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
40876 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
40877 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
40878 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
40879 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
40880 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
40881 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
40882 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
40883 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
40884 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
40885 | static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0}; |
40886 | static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0}; | |
554f62e9 RD |
40887 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
40888 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
554f62e9 | 40889 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
0f83f5da | 40890 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40891 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
40892 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
40893 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
40894 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
40895 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
40896 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
40897 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
40898 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
40899 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
40900 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
40901 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
40902 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 40903 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40904 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
40905 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
40906 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
40907 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
40908 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
40909 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
40910 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
40911 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
40912 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
40913 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
40914 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
40915 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
40916 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
40917 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
40918 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
40919 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
40920 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
40921 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
40922 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
40923 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
40924 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
40925 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
40926 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
554f62e9 | 40927 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; |
580080c5 | 40928 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
70d7cb34 RD |
40929 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; |
40930 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
40931 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
40932 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
40933 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
40934 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
24f6c4e8 | 40935 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
72ef6efb | 40936 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
27e45892 | 40937 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
2131d850 | 40938 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40939 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
40940 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
40941 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
0f83f5da | 40942 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
554f62e9 | 40943 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 40944 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40945 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; |
40946 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
40947 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
40948 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
40949 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
40950 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
40951 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
40952 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
40953 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
40954 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
40955 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
40956 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
40957 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
40958 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
40959 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
40960 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
40961 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
40962 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
40963 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
40964 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
b39fe951 | 40965 | static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40966 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; |
40967 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
40968 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
40969 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
40970 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 40971 | static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0}; |
554f62e9 | 40972 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
72ef6efb | 40973 | static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40974 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; |
40975 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
40976 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
27e45892 | 40977 | static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0}; |
554f62e9 | 40978 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; |
fc46b7f3 | 40979 | static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0}; |
554f62e9 | 40980 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; |
4fe9ce47 | 40981 | static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40982 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; |
40983 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
40984 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
40985 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
40986 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
40987 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
40988 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
50efceee | 40989 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40990 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
40991 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
40992 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
40993 | ||
40994 | static swig_type_info *swig_type_initial[] = { | |
fc46b7f3 | 40995 | &_swigt__p_buffer, |
554f62e9 RD |
40996 | &_swigt__p_char, |
40997 | &_swigt__p_double, | |
40998 | &_swigt__p_form_ops_t, | |
40999 | &_swigt__p_int, | |
41000 | &_swigt__p_unsigned_char, | |
41001 | &_swigt__p_unsigned_int, | |
41002 | &_swigt__p_unsigned_long, | |
0a27f394 | 41003 | &_swigt__p_void, |
554f62e9 RD |
41004 | &_swigt__p_wxANIHandler, |
41005 | &_swigt__p_wxAcceleratorTable, | |
41006 | &_swigt__p_wxActivateEvent, | |
fc46b7f3 RD |
41007 | &_swigt__p_wxAlphaPixelData, |
41008 | &_swigt__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 41009 | &_swigt__p_wxAutoBufferedPaintDC, |
554f62e9 RD |
41010 | &_swigt__p_wxBMPHandler, |
41011 | &_swigt__p_wxBitmap, | |
41012 | &_swigt__p_wxBoxSizer, | |
41013 | &_swigt__p_wxBrush, | |
41014 | &_swigt__p_wxBrushList, | |
41015 | &_swigt__p_wxBufferedDC, | |
41016 | &_swigt__p_wxBufferedPaintDC, | |
41017 | &_swigt__p_wxCURHandler, | |
fc46b7f3 | 41018 | &_swigt__p_wxChar, |
554f62e9 RD |
41019 | &_swigt__p_wxChildFocusEvent, |
41020 | &_swigt__p_wxClientDC, | |
2131d850 | 41021 | &_swigt__p_wxClipboardTextEvent, |
554f62e9 | 41022 | &_swigt__p_wxCloseEvent, |
72ef6efb | 41023 | &_swigt__p_wxColor, |
554f62e9 RD |
41024 | &_swigt__p_wxColour, |
41025 | &_swigt__p_wxColourDatabase, | |
41026 | &_swigt__p_wxCommandEvent, | |
41027 | &_swigt__p_wxContextMenuEvent, | |
41028 | &_swigt__p_wxControl, | |
41029 | &_swigt__p_wxControlWithItems, | |
41030 | &_swigt__p_wxCursor, | |
41031 | &_swigt__p_wxDC, | |
70d7cb34 RD |
41032 | &_swigt__p_wxDCBrushChanger, |
41033 | &_swigt__p_wxDCClipper, | |
b39fe951 | 41034 | &_swigt__p_wxDCOverlay, |
70d7cb34 RD |
41035 | &_swigt__p_wxDCPenChanger, |
41036 | &_swigt__p_wxDCTextColourChanger, | |
554f62e9 RD |
41037 | &_swigt__p_wxDash, |
41038 | &_swigt__p_wxDateEvent, | |
41039 | &_swigt__p_wxDisplayChangedEvent, | |
41040 | &_swigt__p_wxDropFilesEvent, | |
41041 | &_swigt__p_wxDuplexMode, | |
41042 | &_swigt__p_wxEffects, | |
41043 | &_swigt__p_wxEncodingConverter, | |
41044 | &_swigt__p_wxEraseEvent, | |
41045 | &_swigt__p_wxEvent, | |
41046 | &_swigt__p_wxEvtHandler, | |
41047 | &_swigt__p_wxFSFile, | |
41048 | &_swigt__p_wxFileSystem, | |
41049 | &_swigt__p_wxFlexGridSizer, | |
41050 | &_swigt__p_wxFocusEvent, | |
41051 | &_swigt__p_wxFont, | |
41052 | &_swigt__p_wxFontList, | |
41053 | &_swigt__p_wxFontMapper, | |
41054 | &_swigt__p_wxGBSizerItem, | |
72ef6efb | 41055 | &_swigt__p_wxGCDC, |
50efceee | 41056 | &_swigt__p_wxGDIObjListBase, |
554f62e9 RD |
41057 | &_swigt__p_wxGDIObject, |
41058 | &_swigt__p_wxGIFHandler, | |
70d7cb34 | 41059 | &_swigt__p_wxGraphicsBrush, |
72ef6efb | 41060 | &_swigt__p_wxGraphicsContext, |
70d7cb34 RD |
41061 | &_swigt__p_wxGraphicsFont, |
41062 | &_swigt__p_wxGraphicsMatrix, | |
41063 | &_swigt__p_wxGraphicsObject, | |
72ef6efb | 41064 | &_swigt__p_wxGraphicsPath, |
70d7cb34 RD |
41065 | &_swigt__p_wxGraphicsPen, |
41066 | &_swigt__p_wxGraphicsRenderer, | |
554f62e9 RD |
41067 | &_swigt__p_wxGridBagSizer, |
41068 | &_swigt__p_wxGridSizer, | |
33d6fd3b | 41069 | &_swigt__p_wxHeaderButtonParams, |
554f62e9 RD |
41070 | &_swigt__p_wxICOHandler, |
41071 | &_swigt__p_wxIcon, | |
41072 | &_swigt__p_wxIconBundle, | |
41073 | &_swigt__p_wxIconLocation, | |
41074 | &_swigt__p_wxIconizeEvent, | |
41075 | &_swigt__p_wxIdleEvent, | |
41076 | &_swigt__p_wxImage, | |
41077 | &_swigt__p_wxImageHandler, | |
41078 | &_swigt__p_wxImageList, | |
41079 | &_swigt__p_wxIndividualLayoutConstraint, | |
41080 | &_swigt__p_wxInitDialogEvent, | |
41081 | &_swigt__p_wxJPEGHandler, | |
41082 | &_swigt__p_wxKeyEvent, | |
41083 | &_swigt__p_wxLanguageInfo, | |
41084 | &_swigt__p_wxLayoutConstraints, | |
41085 | &_swigt__p_wxLocale, | |
41086 | &_swigt__p_wxMask, | |
41087 | &_swigt__p_wxMaximizeEvent, | |
41088 | &_swigt__p_wxMemoryDC, | |
41089 | &_swigt__p_wxMenu, | |
41090 | &_swigt__p_wxMenuBar, | |
41091 | &_swigt__p_wxMenuEvent, | |
41092 | &_swigt__p_wxMenuItem, | |
41093 | &_swigt__p_wxMetaFile, | |
41094 | &_swigt__p_wxMetaFileDC, | |
41095 | &_swigt__p_wxMirrorDC, | |
41096 | &_swigt__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 41097 | &_swigt__p_wxMouseCaptureLostEvent, |
554f62e9 RD |
41098 | &_swigt__p_wxMouseEvent, |
41099 | &_swigt__p_wxMoveEvent, | |
41100 | &_swigt__p_wxNativeEncodingInfo, | |
41101 | &_swigt__p_wxNativeFontInfo, | |
fc46b7f3 RD |
41102 | &_swigt__p_wxNativePixelData, |
41103 | &_swigt__p_wxNativePixelData_Accessor, | |
554f62e9 RD |
41104 | &_swigt__p_wxNavigationKeyEvent, |
41105 | &_swigt__p_wxNcPaintEvent, | |
41106 | &_swigt__p_wxNotifyEvent, | |
41107 | &_swigt__p_wxObject, | |
b39fe951 | 41108 | &_swigt__p_wxOverlay, |
554f62e9 RD |
41109 | &_swigt__p_wxPCXHandler, |
41110 | &_swigt__p_wxPNGHandler, | |
41111 | &_swigt__p_wxPNMHandler, | |
41112 | &_swigt__p_wxPaintDC, | |
41113 | &_swigt__p_wxPaintEvent, | |
41114 | &_swigt__p_wxPalette, | |
41115 | &_swigt__p_wxPaletteChangedEvent, | |
41116 | &_swigt__p_wxPaperSize, | |
41117 | &_swigt__p_wxPen, | |
41118 | &_swigt__p_wxPenList, | |
fc46b7f3 | 41119 | &_swigt__p_wxPixelDataBase, |
554f62e9 | 41120 | &_swigt__p_wxPoint, |
72ef6efb | 41121 | &_swigt__p_wxPoint2D, |
554f62e9 RD |
41122 | &_swigt__p_wxPostScriptDC, |
41123 | &_swigt__p_wxPrintData, | |
41124 | &_swigt__p_wxPrinterDC, | |
27e45892 | 41125 | &_swigt__p_wxPseudoDC, |
554f62e9 RD |
41126 | &_swigt__p_wxPyApp, |
41127 | &_swigt__p_wxPyCommandEvent, | |
41128 | &_swigt__p_wxPyEvent, | |
41129 | &_swigt__p_wxPyFontEnumerator, | |
41130 | &_swigt__p_wxPyImageHandler, | |
fc46b7f3 | 41131 | &_swigt__p_wxPyLocale, |
554f62e9 RD |
41132 | &_swigt__p_wxPySizer, |
41133 | &_swigt__p_wxPyValidator, | |
41134 | &_swigt__p_wxQueryNewPaletteEvent, | |
41135 | &_swigt__p_wxRect, | |
4fe9ce47 | 41136 | &_swigt__p_wxRect2D, |
554f62e9 RD |
41137 | &_swigt__p_wxRegion, |
41138 | &_swigt__p_wxRegionIterator, | |
41139 | &_swigt__p_wxRendererNative, | |
41140 | &_swigt__p_wxRendererVersion, | |
41141 | &_swigt__p_wxScreenDC, | |
41142 | &_swigt__p_wxScrollEvent, | |
41143 | &_swigt__p_wxScrollWinEvent, | |
41144 | &_swigt__p_wxSetCursorEvent, | |
41145 | &_swigt__p_wxShowEvent, | |
41146 | &_swigt__p_wxSize, | |
41147 | &_swigt__p_wxSizeEvent, | |
41148 | &_swigt__p_wxSizer, | |
41149 | &_swigt__p_wxSizerItem, | |
41150 | &_swigt__p_wxSplitterRenderParams, | |
41151 | &_swigt__p_wxStaticBoxSizer, | |
41152 | &_swigt__p_wxStdDialogButtonSizer, | |
50efceee | 41153 | &_swigt__p_wxStockGDI, |
554f62e9 RD |
41154 | &_swigt__p_wxString, |
41155 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 41156 | &_swigt__p_wxTGAHandler, |
554f62e9 RD |
41157 | &_swigt__p_wxTIFFHandler, |
41158 | &_swigt__p_wxUpdateUIEvent, | |
41159 | &_swigt__p_wxValidator, | |
41160 | &_swigt__p_wxWindow, | |
41161 | &_swigt__p_wxWindowCreateEvent, | |
41162 | &_swigt__p_wxWindowDC, | |
41163 | &_swigt__p_wxWindowDestroyEvent, | |
41164 | &_swigt__p_wxXPMHandler, | |
41165 | }; | |
41166 | ||
fc46b7f3 | 41167 | static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41168 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
41169 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
41170 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
41171 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
41172 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
41173 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
41174 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 41175 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 RD |
41176 | static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; |
41177 | static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 41178 | static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41179 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
41180 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
41181 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
41182 | 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}}; | |
41183 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 41184 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb RD |
41185 | 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}}; |
41186 | static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 RD |
41187 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
41188 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
41189 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 41190 | 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 |
41191 | static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}}; |
41192 | static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}}; | |
b39fe951 | 41193 | static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41194 | static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}}; |
41195 | static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 RD |
41196 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; |
41197 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
41198 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
41199 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
41200 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
41201 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
41202 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 41203 | static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}}; |
50efceee | 41204 | 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 | 41205 | 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 | 41206 | static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 41207 | static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41208 | static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}}; |
41209 | static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}}; | |
41210 | 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 | 41211 | static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41212 | static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}}; |
41213 | static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}}; | |
33d6fd3b | 41214 | static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41215 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
41216 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
41217 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
41218 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
41219 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
41220 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 41221 | 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 | 41222 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; |
8e99bda9 | 41223 | 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 |
41224 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; |
41225 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
41226 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
41227 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
41228 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
41229 | static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}}; |
41230 | static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 | 41231 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41232 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0f83f5da | 41233 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41234 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
41235 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
41236 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41237 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41238 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41239 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41240 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41241 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
41242 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41243 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41244 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41245 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 41246 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41247 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
41248 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41249 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41250 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41251 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41252 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41253 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
41254 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41255 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
41256 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41257 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41258 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41259 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41260 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
41261 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41262 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41263 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41264 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41265 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41266 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41267 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41268 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41269 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 | 41270 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 41271 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41272 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
41273 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41274 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41275 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41276 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41277 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 41278 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 41279 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 41280 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 41281 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41282 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
41283 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41284 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
0f83f5da | 41285 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41286 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 41287 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41288 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; |
41289 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41290 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41291 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41292 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
41293 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
41294 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41295 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41296 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
41297 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41298 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41299 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41300 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41301 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41302 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41303 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41304 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41305 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
41306 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
41307 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 41308 | 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 | 41309 | static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41310 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
41311 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
41312 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
41313 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
41314 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 41315 | 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 | 41316 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 41317 | static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41318 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; |
41319 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
41320 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 41321 | static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41322 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 | 41323 | static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41324 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; |
4fe9ce47 | 41325 | static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41326 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; |
41327 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
41328 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
41329 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
41330 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
41331 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
41332 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 41333 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41334 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
41335 | 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 | 41336 | 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 |
41337 | |
41338 | static swig_cast_info *swig_cast_initial[] = { | |
fc46b7f3 | 41339 | _swigc__p_buffer, |
554f62e9 RD |
41340 | _swigc__p_char, |
41341 | _swigc__p_double, | |
41342 | _swigc__p_form_ops_t, | |
41343 | _swigc__p_int, | |
41344 | _swigc__p_unsigned_char, | |
41345 | _swigc__p_unsigned_int, | |
41346 | _swigc__p_unsigned_long, | |
0a27f394 | 41347 | _swigc__p_void, |
554f62e9 RD |
41348 | _swigc__p_wxANIHandler, |
41349 | _swigc__p_wxAcceleratorTable, | |
41350 | _swigc__p_wxActivateEvent, | |
fc46b7f3 RD |
41351 | _swigc__p_wxAlphaPixelData, |
41352 | _swigc__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 41353 | _swigc__p_wxAutoBufferedPaintDC, |
554f62e9 RD |
41354 | _swigc__p_wxBMPHandler, |
41355 | _swigc__p_wxBitmap, | |
41356 | _swigc__p_wxBoxSizer, | |
41357 | _swigc__p_wxBrush, | |
41358 | _swigc__p_wxBrushList, | |
41359 | _swigc__p_wxBufferedDC, | |
41360 | _swigc__p_wxBufferedPaintDC, | |
41361 | _swigc__p_wxCURHandler, | |
fc46b7f3 | 41362 | _swigc__p_wxChar, |
554f62e9 RD |
41363 | _swigc__p_wxChildFocusEvent, |
41364 | _swigc__p_wxClientDC, | |
2131d850 | 41365 | _swigc__p_wxClipboardTextEvent, |
554f62e9 | 41366 | _swigc__p_wxCloseEvent, |
72ef6efb | 41367 | _swigc__p_wxColor, |
554f62e9 RD |
41368 | _swigc__p_wxColour, |
41369 | _swigc__p_wxColourDatabase, | |
41370 | _swigc__p_wxCommandEvent, | |
41371 | _swigc__p_wxContextMenuEvent, | |
41372 | _swigc__p_wxControl, | |
41373 | _swigc__p_wxControlWithItems, | |
41374 | _swigc__p_wxCursor, | |
41375 | _swigc__p_wxDC, | |
70d7cb34 RD |
41376 | _swigc__p_wxDCBrushChanger, |
41377 | _swigc__p_wxDCClipper, | |
b39fe951 | 41378 | _swigc__p_wxDCOverlay, |
70d7cb34 RD |
41379 | _swigc__p_wxDCPenChanger, |
41380 | _swigc__p_wxDCTextColourChanger, | |
554f62e9 RD |
41381 | _swigc__p_wxDash, |
41382 | _swigc__p_wxDateEvent, | |
41383 | _swigc__p_wxDisplayChangedEvent, | |
41384 | _swigc__p_wxDropFilesEvent, | |
41385 | _swigc__p_wxDuplexMode, | |
41386 | _swigc__p_wxEffects, | |
41387 | _swigc__p_wxEncodingConverter, | |
41388 | _swigc__p_wxEraseEvent, | |
41389 | _swigc__p_wxEvent, | |
41390 | _swigc__p_wxEvtHandler, | |
41391 | _swigc__p_wxFSFile, | |
41392 | _swigc__p_wxFileSystem, | |
41393 | _swigc__p_wxFlexGridSizer, | |
41394 | _swigc__p_wxFocusEvent, | |
41395 | _swigc__p_wxFont, | |
41396 | _swigc__p_wxFontList, | |
41397 | _swigc__p_wxFontMapper, | |
41398 | _swigc__p_wxGBSizerItem, | |
72ef6efb | 41399 | _swigc__p_wxGCDC, |
50efceee | 41400 | _swigc__p_wxGDIObjListBase, |
554f62e9 RD |
41401 | _swigc__p_wxGDIObject, |
41402 | _swigc__p_wxGIFHandler, | |
70d7cb34 | 41403 | _swigc__p_wxGraphicsBrush, |
72ef6efb | 41404 | _swigc__p_wxGraphicsContext, |
70d7cb34 RD |
41405 | _swigc__p_wxGraphicsFont, |
41406 | _swigc__p_wxGraphicsMatrix, | |
41407 | _swigc__p_wxGraphicsObject, | |
72ef6efb | 41408 | _swigc__p_wxGraphicsPath, |
70d7cb34 RD |
41409 | _swigc__p_wxGraphicsPen, |
41410 | _swigc__p_wxGraphicsRenderer, | |
554f62e9 RD |
41411 | _swigc__p_wxGridBagSizer, |
41412 | _swigc__p_wxGridSizer, | |
33d6fd3b | 41413 | _swigc__p_wxHeaderButtonParams, |
554f62e9 RD |
41414 | _swigc__p_wxICOHandler, |
41415 | _swigc__p_wxIcon, | |
41416 | _swigc__p_wxIconBundle, | |
41417 | _swigc__p_wxIconLocation, | |
41418 | _swigc__p_wxIconizeEvent, | |
41419 | _swigc__p_wxIdleEvent, | |
41420 | _swigc__p_wxImage, | |
41421 | _swigc__p_wxImageHandler, | |
41422 | _swigc__p_wxImageList, | |
41423 | _swigc__p_wxIndividualLayoutConstraint, | |
41424 | _swigc__p_wxInitDialogEvent, | |
41425 | _swigc__p_wxJPEGHandler, | |
41426 | _swigc__p_wxKeyEvent, | |
41427 | _swigc__p_wxLanguageInfo, | |
41428 | _swigc__p_wxLayoutConstraints, | |
41429 | _swigc__p_wxLocale, | |
41430 | _swigc__p_wxMask, | |
41431 | _swigc__p_wxMaximizeEvent, | |
41432 | _swigc__p_wxMemoryDC, | |
41433 | _swigc__p_wxMenu, | |
41434 | _swigc__p_wxMenuBar, | |
41435 | _swigc__p_wxMenuEvent, | |
41436 | _swigc__p_wxMenuItem, | |
41437 | _swigc__p_wxMetaFile, | |
41438 | _swigc__p_wxMetaFileDC, | |
41439 | _swigc__p_wxMirrorDC, | |
41440 | _swigc__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 41441 | _swigc__p_wxMouseCaptureLostEvent, |
554f62e9 RD |
41442 | _swigc__p_wxMouseEvent, |
41443 | _swigc__p_wxMoveEvent, | |
41444 | _swigc__p_wxNativeEncodingInfo, | |
41445 | _swigc__p_wxNativeFontInfo, | |
fc46b7f3 RD |
41446 | _swigc__p_wxNativePixelData, |
41447 | _swigc__p_wxNativePixelData_Accessor, | |
554f62e9 RD |
41448 | _swigc__p_wxNavigationKeyEvent, |
41449 | _swigc__p_wxNcPaintEvent, | |
41450 | _swigc__p_wxNotifyEvent, | |
41451 | _swigc__p_wxObject, | |
b39fe951 | 41452 | _swigc__p_wxOverlay, |
554f62e9 RD |
41453 | _swigc__p_wxPCXHandler, |
41454 | _swigc__p_wxPNGHandler, | |
41455 | _swigc__p_wxPNMHandler, | |
41456 | _swigc__p_wxPaintDC, | |
41457 | _swigc__p_wxPaintEvent, | |
41458 | _swigc__p_wxPalette, | |
41459 | _swigc__p_wxPaletteChangedEvent, | |
41460 | _swigc__p_wxPaperSize, | |
41461 | _swigc__p_wxPen, | |
41462 | _swigc__p_wxPenList, | |
fc46b7f3 | 41463 | _swigc__p_wxPixelDataBase, |
554f62e9 | 41464 | _swigc__p_wxPoint, |
72ef6efb | 41465 | _swigc__p_wxPoint2D, |
554f62e9 RD |
41466 | _swigc__p_wxPostScriptDC, |
41467 | _swigc__p_wxPrintData, | |
41468 | _swigc__p_wxPrinterDC, | |
27e45892 | 41469 | _swigc__p_wxPseudoDC, |
554f62e9 RD |
41470 | _swigc__p_wxPyApp, |
41471 | _swigc__p_wxPyCommandEvent, | |
41472 | _swigc__p_wxPyEvent, | |
41473 | _swigc__p_wxPyFontEnumerator, | |
41474 | _swigc__p_wxPyImageHandler, | |
fc46b7f3 | 41475 | _swigc__p_wxPyLocale, |
554f62e9 RD |
41476 | _swigc__p_wxPySizer, |
41477 | _swigc__p_wxPyValidator, | |
41478 | _swigc__p_wxQueryNewPaletteEvent, | |
41479 | _swigc__p_wxRect, | |
4fe9ce47 | 41480 | _swigc__p_wxRect2D, |
554f62e9 RD |
41481 | _swigc__p_wxRegion, |
41482 | _swigc__p_wxRegionIterator, | |
41483 | _swigc__p_wxRendererNative, | |
41484 | _swigc__p_wxRendererVersion, | |
41485 | _swigc__p_wxScreenDC, | |
41486 | _swigc__p_wxScrollEvent, | |
41487 | _swigc__p_wxScrollWinEvent, | |
41488 | _swigc__p_wxSetCursorEvent, | |
41489 | _swigc__p_wxShowEvent, | |
41490 | _swigc__p_wxSize, | |
41491 | _swigc__p_wxSizeEvent, | |
41492 | _swigc__p_wxSizer, | |
41493 | _swigc__p_wxSizerItem, | |
41494 | _swigc__p_wxSplitterRenderParams, | |
41495 | _swigc__p_wxStaticBoxSizer, | |
41496 | _swigc__p_wxStdDialogButtonSizer, | |
50efceee | 41497 | _swigc__p_wxStockGDI, |
554f62e9 RD |
41498 | _swigc__p_wxString, |
41499 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 41500 | _swigc__p_wxTGAHandler, |
554f62e9 RD |
41501 | _swigc__p_wxTIFFHandler, |
41502 | _swigc__p_wxUpdateUIEvent, | |
41503 | _swigc__p_wxValidator, | |
41504 | _swigc__p_wxWindow, | |
41505 | _swigc__p_wxWindowCreateEvent, | |
41506 | _swigc__p_wxWindowDC, | |
41507 | _swigc__p_wxWindowDestroyEvent, | |
41508 | _swigc__p_wxXPMHandler, | |
41509 | }; | |
41510 | ||
41511 | ||
41512 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
41513 | ||
41514 | static swig_const_info swig_const_table[] = { | |
41515 | {0, 0, 0, 0.0, 0, 0}}; | |
41516 | ||
41517 | #ifdef __cplusplus | |
41518 | } | |
41519 | #endif | |
41520 | /* ----------------------------------------------------------------------------- | |
41521 | * Type initialization: | |
41522 | * This problem is tough by the requirement that no dynamic | |
41523 | * memory is used. Also, since swig_type_info structures store pointers to | |
41524 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
41525 | * to swig_type_info structures, we need some lookup code at initialization. | |
41526 | * The idea is that swig generates all the structures that are needed. | |
41527 | * The runtime then collects these partially filled structures. | |
41528 | * The SWIG_InitializeModule function takes these initial arrays out of | |
41529 | * swig_module, and does all the lookup, filling in the swig_module.types | |
41530 | * array with the correct data and linking the correct swig_cast_info | |
41531 | * structures together. | |
41532 | * | |
41533 | * The generated swig_type_info structures are assigned staticly to an initial | |
41534 | * array. We just loop though that array, and handle each type individually. | |
41535 | * First we lookup if this type has been already loaded, and if so, use the | |
41536 | * loaded structure instead of the generated one. Then we have to fill in the | |
41537 | * cast linked list. The cast data is initially stored in something like a | |
41538 | * two-dimensional array. Each row corresponds to a type (there are the same | |
41539 | * number of rows as there are in the swig_type_initial array). Each entry in | |
41540 | * a column is one of the swig_cast_info structures for that type. | |
41541 | * The cast_initial array is actually an array of arrays, because each row has | |
41542 | * a variable number of columns. So to actually build the cast linked list, | |
41543 | * we find the array of casts associated with the type, and loop through it | |
41544 | * adding the casts to the list. The one last trick we need to do is making | |
41545 | * sure the type pointer in the swig_cast_info struct is correct. | |
41546 | * | |
41547 | * First off, we lookup the cast->type name to see if it is already loaded. | |
41548 | * There are three cases to handle: | |
41549 | * 1) If the cast->type has already been loaded AND the type we are adding | |
41550 | * casting info to has not been loaded (it is in this module), THEN we | |
41551 | * replace the cast->type pointer with the type pointer that has already | |
41552 | * been loaded. | |
41553 | * 2) If BOTH types (the one we are adding casting info to, and the | |
41554 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
41555 | * the previous module so we just ignore it. | |
41556 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
41557 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
41558 | * be correct. | |
41559 | * ----------------------------------------------------------------------------- */ | |
41560 | ||
41561 | #ifdef __cplusplus | |
41562 | extern "C" { | |
41563 | #if 0 | |
41564 | } /* c-mode */ | |
41565 | #endif | |
41566 | #endif | |
41567 | ||
41568 | #if 0 | |
41569 | #define SWIGRUNTIME_DEBUG | |
41570 | #endif | |
41571 | ||
41572 | SWIGRUNTIME void | |
41573 | SWIG_InitializeModule(void *clientdata) { | |
41574 | size_t i; | |
41575 | swig_module_info *module_head; | |
41576 | static int init_run = 0; | |
41577 | ||
41578 | clientdata = clientdata; | |
41579 | ||
41580 | if (init_run) return; | |
41581 | init_run = 1; | |
41582 | ||
41583 | /* Initialize the swig_module */ | |
41584 | swig_module.type_initial = swig_type_initial; | |
41585 | swig_module.cast_initial = swig_cast_initial; | |
41586 | ||
41587 | /* Try and load any already created modules */ | |
41588 | module_head = SWIG_GetModule(clientdata); | |
41589 | if (module_head) { | |
41590 | swig_module.next = module_head->next; | |
41591 | module_head->next = &swig_module; | |
41592 | } else { | |
41593 | /* This is the first module loaded */ | |
41594 | swig_module.next = &swig_module; | |
41595 | SWIG_SetModule(clientdata, &swig_module); | |
41596 | } | |
41597 | ||
41598 | /* Now work on filling in swig_module.types */ | |
41599 | #ifdef SWIGRUNTIME_DEBUG | |
41600 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
41601 | #endif | |
41602 | for (i = 0; i < swig_module.size; ++i) { | |
41603 | swig_type_info *type = 0; | |
41604 | swig_type_info *ret; | |
41605 | swig_cast_info *cast; | |
41606 | ||
41607 | #ifdef SWIGRUNTIME_DEBUG | |
41608 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
41609 | #endif | |
41610 | ||
41611 | /* if there is another module already loaded */ | |
41612 | if (swig_module.next != &swig_module) { | |
41613 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
be9b1dca | 41614 | } |
554f62e9 RD |
41615 | if (type) { |
41616 | /* Overwrite clientdata field */ | |
41617 | #ifdef SWIGRUNTIME_DEBUG | |
41618 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
41619 | #endif | |
41620 | if (swig_module.type_initial[i]->clientdata) { | |
41621 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
41622 | #ifdef SWIGRUNTIME_DEBUG | |
41623 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
41624 | #endif | |
41625 | } | |
41626 | } else { | |
41627 | type = swig_module.type_initial[i]; | |
be9b1dca | 41628 | } |
554f62e9 RD |
41629 | |
41630 | /* Insert casting types */ | |
41631 | cast = swig_module.cast_initial[i]; | |
41632 | while (cast->type) { | |
41633 | /* Don't need to add information already in the list */ | |
41634 | ret = 0; | |
41635 | #ifdef SWIGRUNTIME_DEBUG | |
41636 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
41637 | #endif | |
41638 | if (swig_module.next != &swig_module) { | |
41639 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
41640 | #ifdef SWIGRUNTIME_DEBUG | |
41641 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
41642 | #endif | |
41643 | } | |
41644 | if (ret) { | |
41645 | if (type == swig_module.type_initial[i]) { | |
41646 | #ifdef SWIGRUNTIME_DEBUG | |
41647 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
41648 | #endif | |
41649 | cast->type = ret; | |
41650 | ret = 0; | |
41651 | } else { | |
41652 | /* Check for casting already in the list */ | |
41653 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
41654 | #ifdef SWIGRUNTIME_DEBUG | |
41655 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
41656 | #endif | |
41657 | if (!ocast) ret = 0; | |
41658 | } | |
41659 | } | |
41660 | ||
41661 | if (!ret) { | |
41662 | #ifdef SWIGRUNTIME_DEBUG | |
41663 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
41664 | #endif | |
41665 | if (type->cast) { | |
41666 | type->cast->prev = cast; | |
41667 | cast->next = type->cast; | |
41668 | } | |
41669 | type->cast = cast; | |
41670 | } | |
41671 | cast++; | |
be9b1dca | 41672 | } |
554f62e9 RD |
41673 | /* Set entry in modules->types array equal to the type */ |
41674 | swig_module.types[i] = type; | |
41675 | } | |
41676 | swig_module.types[i] = 0; | |
41677 | ||
41678 | #ifdef SWIGRUNTIME_DEBUG | |
41679 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
41680 | for (i = 0; i < swig_module.size; ++i) { | |
41681 | int j = 0; | |
41682 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
41683 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
41684 | while (cast->type) { | |
41685 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
41686 | cast++; | |
41687 | ++j; | |
41688 | } | |
41689 | printf("---- Total casts: %d\n",j); | |
41690 | } | |
41691 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
41692 | #endif | |
41693 | } | |
41694 | ||
41695 | /* This function will propagate the clientdata field of type to | |
41696 | * any new swig_type_info structures that have been added into the list | |
41697 | * of equivalent types. It is like calling | |
41698 | * SWIG_TypeClientData(type, clientdata) a second time. | |
41699 | */ | |
41700 | SWIGRUNTIME void | |
41701 | SWIG_PropagateClientData(void) { | |
41702 | size_t i; | |
41703 | swig_cast_info *equiv; | |
41704 | static int init_run = 0; | |
41705 | ||
41706 | if (init_run) return; | |
41707 | init_run = 1; | |
41708 | ||
41709 | for (i = 0; i < swig_module.size; i++) { | |
41710 | if (swig_module.types[i]->clientdata) { | |
41711 | equiv = swig_module.types[i]->cast; | |
41712 | while (equiv) { | |
41713 | if (!equiv->converter) { | |
41714 | if (equiv->type && !equiv->type->clientdata) | |
41715 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
41716 | } | |
41717 | equiv = equiv->next; | |
41718 | } | |
be9b1dca | 41719 | } |
554f62e9 RD |
41720 | } |
41721 | } | |
41722 | ||
41723 | #ifdef __cplusplus | |
41724 | #if 0 | |
41725 | { | |
41726 | /* c-mode */ | |
41727 | #endif | |
41728 | } | |
41729 | #endif | |
41730 | ||
41731 | ||
41732 | ||
41733 | #ifdef __cplusplus | |
41734 | extern "C" { | |
41735 | #endif | |
41736 | ||
41737 | /* Python-specific SWIG API */ | |
41738 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
41739 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
41740 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
41741 | ||
41742 | /* ----------------------------------------------------------------------------- | |
41743 | * global variable support code. | |
41744 | * ----------------------------------------------------------------------------- */ | |
41745 | ||
41746 | typedef struct swig_globalvar { | |
41747 | char *name; /* Name of global variable */ | |
41748 | PyObject *(*get_attr)(void); /* Return the current value */ | |
41749 | int (*set_attr)(PyObject *); /* Set the value */ | |
41750 | struct swig_globalvar *next; | |
41751 | } swig_globalvar; | |
41752 | ||
41753 | typedef struct swig_varlinkobject { | |
41754 | PyObject_HEAD | |
41755 | swig_globalvar *vars; | |
41756 | } swig_varlinkobject; | |
41757 | ||
41758 | SWIGINTERN PyObject * | |
41759 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
41760 | return PyString_FromString("<Swig global variables>"); | |
41761 | } | |
41762 | ||
41763 | SWIGINTERN PyObject * | |
41764 | swig_varlink_str(swig_varlinkobject *v) { | |
41765 | PyObject *str = PyString_FromString("("); | |
41766 | swig_globalvar *var; | |
41767 | for (var = v->vars; var; var=var->next) { | |
41768 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
41769 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
41770 | } | |
41771 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
41772 | return str; | |
41773 | } | |
41774 | ||
41775 | SWIGINTERN int | |
41776 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
41777 | PyObject *str = swig_varlink_str(v); | |
41778 | fprintf(fp,"Swig global variables "); | |
41779 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
41780 | Py_DECREF(str); | |
41781 | return 0; | |
41782 | } | |
41783 | ||
41784 | SWIGINTERN void | |
41785 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
41786 | swig_globalvar *var = v->vars; | |
41787 | while (var) { | |
41788 | swig_globalvar *n = var->next; | |
41789 | free(var->name); | |
41790 | free(var); | |
41791 | var = n; | |
be9b1dca | 41792 | } |
554f62e9 RD |
41793 | } |
41794 | ||
41795 | SWIGINTERN PyObject * | |
41796 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
41797 | PyObject *res = NULL; | |
41798 | swig_globalvar *var = v->vars; | |
41799 | while (var) { | |
41800 | if (strcmp(var->name,n) == 0) { | |
41801 | res = (*var->get_attr)(); | |
41802 | break; | |
41803 | } | |
41804 | var = var->next; | |
be9b1dca | 41805 | } |
554f62e9 RD |
41806 | if (res == NULL && !PyErr_Occurred()) { |
41807 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 41808 | } |
554f62e9 RD |
41809 | return res; |
41810 | } | |
41811 | ||
41812 | SWIGINTERN int | |
41813 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
41814 | int res = 1; | |
41815 | swig_globalvar *var = v->vars; | |
41816 | while (var) { | |
41817 | if (strcmp(var->name,n) == 0) { | |
41818 | res = (*var->set_attr)(p); | |
41819 | break; | |
41820 | } | |
41821 | var = var->next; | |
be9b1dca | 41822 | } |
554f62e9 RD |
41823 | if (res == 1 && !PyErr_Occurred()) { |
41824 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 41825 | } |
554f62e9 RD |
41826 | return res; |
41827 | } | |
41828 | ||
41829 | SWIGINTERN PyTypeObject* | |
41830 | swig_varlink_type(void) { | |
41831 | static char varlink__doc__[] = "Swig var link object"; | |
41832 | static PyTypeObject varlink_type; | |
41833 | static int type_init = 0; | |
41834 | if (!type_init) { | |
41835 | const PyTypeObject tmp | |
41836 | = { | |
41837 | PyObject_HEAD_INIT(NULL) | |
41838 | 0, /* Number of items in variable part (ob_size) */ | |
41839 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
41840 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
41841 | 0, /* Itemsize (tp_itemsize) */ | |
41842 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
41843 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
41844 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
41845 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
41846 | 0, /* tp_compare */ | |
41847 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
41848 | 0, /* tp_as_number */ | |
41849 | 0, /* tp_as_sequence */ | |
41850 | 0, /* tp_as_mapping */ | |
41851 | 0, /* tp_hash */ | |
41852 | 0, /* tp_call */ | |
41853 | (reprfunc)swig_varlink_str, /* tp_str */ | |
41854 | 0, /* tp_getattro */ | |
41855 | 0, /* tp_setattro */ | |
41856 | 0, /* tp_as_buffer */ | |
41857 | 0, /* tp_flags */ | |
41858 | varlink__doc__, /* tp_doc */ | |
41859 | 0, /* tp_traverse */ | |
41860 | 0, /* tp_clear */ | |
41861 | 0, /* tp_richcompare */ | |
41862 | 0, /* tp_weaklistoffset */ | |
41863 | #if PY_VERSION_HEX >= 0x02020000 | |
41864 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
41865 | #endif | |
41866 | #if PY_VERSION_HEX >= 0x02030000 | |
41867 | 0, /* tp_del */ | |
41868 | #endif | |
41869 | #ifdef COUNT_ALLOCS | |
41870 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
41871 | #endif | |
41872 | }; | |
41873 | varlink_type = tmp; | |
41874 | varlink_type.ob_type = &PyType_Type; | |
41875 | type_init = 1; | |
be9b1dca | 41876 | } |
554f62e9 RD |
41877 | return &varlink_type; |
41878 | } | |
41879 | ||
41880 | /* Create a variable linking object for use later */ | |
41881 | SWIGINTERN PyObject * | |
41882 | SWIG_Python_newvarlink(void) { | |
41883 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
41884 | if (result) { | |
41885 | result->vars = 0; | |
41886 | } | |
41887 | return ((PyObject*) result); | |
41888 | } | |
41889 | ||
41890 | SWIGINTERN void | |
41891 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
41892 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
41893 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
41894 | if (gv) { | |
41895 | size_t size = strlen(name)+1; | |
41896 | gv->name = (char *)malloc(size); | |
41897 | if (gv->name) { | |
41898 | strncpy(gv->name,name,size); | |
41899 | gv->get_attr = get_attr; | |
41900 | gv->set_attr = set_attr; | |
41901 | gv->next = v->vars; | |
41902 | } | |
be9b1dca | 41903 | } |
554f62e9 RD |
41904 | v->vars = gv; |
41905 | } | |
41906 | ||
41907 | SWIGINTERN PyObject * | |
41908 | SWIG_globals() { | |
41909 | static PyObject *_SWIG_globals = 0; | |
41910 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
41911 | return _SWIG_globals; | |
41912 | } | |
41913 | ||
41914 | /* ----------------------------------------------------------------------------- | |
41915 | * constants/methods manipulation | |
41916 | * ----------------------------------------------------------------------------- */ | |
41917 | ||
41918 | /* Install Constants */ | |
41919 | SWIGINTERN void | |
41920 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
41921 | PyObject *obj = 0; | |
41922 | size_t i; | |
41923 | for (i = 0; constants[i].type; ++i) { | |
41924 | switch(constants[i].type) { | |
41925 | case SWIG_PY_POINTER: | |
41926 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
41927 | break; | |
41928 | case SWIG_PY_BINARY: | |
41929 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
41930 | break; | |
41931 | default: | |
41932 | obj = 0; | |
41933 | break; | |
41934 | } | |
41935 | if (obj) { | |
41936 | PyDict_SetItemString(d, constants[i].name, obj); | |
41937 | Py_DECREF(obj); | |
41938 | } | |
be9b1dca | 41939 | } |
554f62e9 RD |
41940 | } |
41941 | ||
41942 | /* -----------------------------------------------------------------------------*/ | |
41943 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
41944 | /* -----------------------------------------------------------------------------*/ | |
41945 | ||
41946 | SWIGINTERN void | |
41947 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
41948 | swig_const_info *const_table, | |
41949 | swig_type_info **types, | |
41950 | swig_type_info **types_initial) { | |
41951 | size_t i; | |
41952 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 41953 | const char *c = methods[i].ml_doc; |
554f62e9 RD |
41954 | if (c && (c = strstr(c, "swig_ptr: "))) { |
41955 | int j; | |
41956 | swig_const_info *ci = 0; | |
453fb36b | 41957 | const char *name = c + 10; |
554f62e9 RD |
41958 | for (j = 0; const_table[j].type; ++j) { |
41959 | if (strncmp(const_table[j].name, name, | |
41960 | strlen(const_table[j].name)) == 0) { | |
41961 | ci = &(const_table[j]); | |
41962 | break; | |
41963 | } | |
41964 | } | |
41965 | if (ci) { | |
41966 | size_t shift = (ci->ptype) - types; | |
41967 | swig_type_info *ty = types_initial[shift]; | |
41968 | size_t ldoc = (c - methods[i].ml_doc); | |
41969 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
41970 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
41971 | if (ndoc) { | |
41972 | char *buff = ndoc; | |
41973 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
41974 | if (ptr) { | |
41975 | strncpy(buff, methods[i].ml_doc, ldoc); | |
41976 | buff += ldoc; | |
41977 | strncpy(buff, "swig_ptr: ", 10); | |
41978 | buff += 10; | |
41979 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
41980 | methods[i].ml_doc = ndoc; | |
41981 | } | |
41982 | } | |
41983 | } | |
41984 | } | |
be9b1dca | 41985 | } |
554f62e9 RD |
41986 | } |
41987 | ||
41988 | #ifdef __cplusplus | |
41989 | } | |
41990 | #endif | |
41991 | ||
41992 | /* -----------------------------------------------------------------------------* | |
41993 | * Partial Init method | |
41994 | * -----------------------------------------------------------------------------*/ | |
41995 | ||
41996 | #ifdef __cplusplus | |
41997 | extern "C" | |
41998 | #endif | |
41999 | SWIGEXPORT void SWIG_init(void) { | |
42000 | PyObject *m, *d; | |
42001 | ||
42002 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
42003 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
42004 | ||
42005 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
42006 | d = PyModule_GetDict(m); | |
42007 | ||
42008 | SWIG_InitializeModule(0); | |
42009 | SWIG_InstallConstants(d,swig_const_table); | |
42010 | ||
42011 | ||
f460c29d RD |
42012 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
42013 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
42014 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
fc46b7f3 RD |
42015 | SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT))); |
42016 | SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE))); | |
554f62e9 RD |
42017 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
42018 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
42019 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
42020 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
42021 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
42022 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
42023 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
42024 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
42025 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
42026 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
42027 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
42028 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
42029 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
42030 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
42031 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
42032 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
42033 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
42034 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
42035 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
42036 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
42037 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
42038 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
42039 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
42040 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
42041 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
42042 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
42043 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
42044 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
42045 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
42046 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
42047 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
42048 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
42049 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
42050 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
42051 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
42052 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
42053 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
42054 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
42055 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
42056 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
42057 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
42058 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
42059 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
42060 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
42061 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
42062 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
42063 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
42064 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
42065 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
42066 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
42067 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
42068 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
42069 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
42070 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
42071 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
42072 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
42073 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
42074 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
42075 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
42076 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
42077 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
42078 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
42079 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
42080 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
42081 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
42082 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
42083 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
42084 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
42085 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
42086 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
42087 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
42088 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
42089 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
42090 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
42091 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
42092 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
42093 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
42094 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
42095 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
42096 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
42097 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
42098 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
42099 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
42100 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
42101 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
42102 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
42103 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
42104 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
42105 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
42106 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
42107 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
42108 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
42109 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
42110 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
42111 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
42112 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
42113 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
42114 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
42115 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
42116 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
42117 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
42118 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
42119 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
42120 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
42121 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
42122 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
42123 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
42124 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
42125 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
42126 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
42127 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
42128 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
42129 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
42130 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
42131 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
42132 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
42133 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
42134 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
42135 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
42136 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
42137 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
42138 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
42139 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
42140 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
42141 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
42142 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
42143 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
42144 | ||
42145 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
42146 | ||
42147 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
42148 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
42149 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
42150 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
42151 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
42152 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
42153 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
42154 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
42155 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
42156 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
42157 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
42158 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
42159 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
42160 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
42161 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
42162 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
42163 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
42164 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
42165 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
42166 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
42167 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
42168 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
42169 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
42170 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
42171 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
42172 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
42173 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
42174 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
42175 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
42176 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
42177 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
42178 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
42179 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
42180 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
42181 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
42182 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
42183 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
42184 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
42185 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
42186 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
42187 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
42188 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
42189 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
42190 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
42191 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
42192 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
42193 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
42194 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
42195 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
42196 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
42197 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
42198 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
42199 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
42200 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
42201 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
42202 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
42203 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
42204 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
42205 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
42206 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
42207 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
42208 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
42209 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
42210 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
42211 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
42212 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
42213 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
42214 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
42215 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
42216 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
42217 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
42218 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
42219 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
42220 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
42221 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
42222 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
42223 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
42224 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
42225 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
42226 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
42227 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
42228 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
42229 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
42230 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
42231 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
42232 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
42233 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
42234 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
42235 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
42236 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
42237 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
42238 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
42239 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
42240 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
42241 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
42242 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
42243 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
42244 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
42245 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
42246 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
42247 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
42248 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
42249 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
42250 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
42251 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
42252 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
42253 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
42254 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
42255 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
42256 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
42257 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
42258 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
42259 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
42260 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
42261 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
42262 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
42263 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
42264 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
42265 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
42266 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
42267 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
42268 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
42269 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
42270 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
42271 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
42272 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
42273 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
42274 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
42275 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
42276 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
42277 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
42278 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
42279 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
42280 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
42281 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
42282 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
42283 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
42284 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
42285 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
42286 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
42287 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
42288 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
42289 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
42290 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
42291 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
42292 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
42293 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
42294 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
42295 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
42296 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
42297 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
42298 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
42299 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
42300 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
42301 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
42302 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
42303 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
42304 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
42305 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
42306 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
42307 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
42308 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
42309 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
42310 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
42311 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
42312 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
42313 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
42314 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
42315 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
42316 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
42317 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
42318 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
42319 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
42320 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
42321 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
42322 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
42323 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
42324 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
42325 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
42326 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
42327 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
42328 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
42329 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
42330 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
42331 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
42332 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
42333 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
42334 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
42335 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
42336 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
42337 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
42338 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
42339 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
42340 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
42341 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
42342 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
42343 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
42344 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
42345 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
42346 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
42347 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
42348 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
42349 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
42350 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
42351 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
42352 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
42353 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
42354 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
42355 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
42356 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
42357 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
42358 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
42359 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
42360 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
42361 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
42362 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
42363 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
42364 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
42365 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
42366 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
42367 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
42368 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
42369 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
42370 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
42371 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
42372 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
42373 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
42374 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
42375 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
42376 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
42377 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
42378 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
42379 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
42380 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
42381 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
42382 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
42383 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
42384 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
42385 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
42386 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
42387 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
42388 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
42389 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
42390 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
42391 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
42392 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
42393 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
42394 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
70d7cb34 RD |
42395 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
42396 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set); | |
42397 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set); | |
42398 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set); | |
5c8c7dd3 RD |
42399 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set); |
42400 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set); | |
554f62e9 RD |
42401 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); |
42402 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
42403 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
42404 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
42405 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
42406 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
42407 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
50efceee RD |
42408 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
42409 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
42410 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
42411 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
42412 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
42413 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
42414 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
42415 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
42416 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
42417 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
42418 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
42419 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
42420 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
42421 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
42422 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
42423 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
42424 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
42425 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
42426 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
42427 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
42428 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
42429 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
42430 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
42431 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
42432 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
42433 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
42434 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
42435 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
42436 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
42437 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
42438 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
42439 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
42440 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
42441 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
42442 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
554f62e9 RD |
42443 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
42444 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
42445 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
42446 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
42447 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
42448 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
42449 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
42450 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
554f62e9 RD |
42451 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
42452 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
42453 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
79df624a | 42454 | SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL))); |
554f62e9 RD |
42455 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); |
42456 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
42457 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
79df624a | 42458 | SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP))); |
554f62e9 RD |
42459 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); |
42460 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
42461 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
42462 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
42463 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
42464 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
42465 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
33d6fd3b RD |
42466 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE))); |
42467 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP))); | |
42468 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN))); | |
554f62e9 RD |
42469 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); |
42470 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
42471 | ||
42472 | // Work around a chicken/egg problem in drawlist.cpp | |
42473 | wxPyDrawList_SetAPIPtr(); | |
42474 | ||
d55e5bfc RD |
42475 | } |
42476 |