]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
0085ce49 | 3 | * Version 1.3.29 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
0085ce49 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d14a1e28 RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
d14a1e28 RD |
28 | #endif |
29 | ||
0085ce49 | 30 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
0085ce49 | 33 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 34 | |
32fe5131 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
0085ce49 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
093d3ff1 | 46 | #endif |
d14a1e28 | 47 | |
32fe5131 RD |
48 | /* inline attribute */ |
49 | #ifndef SWIGINLINE | |
50 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
51 | # define SWIGINLINE inline | |
52 | # else | |
53 | # define SWIGINLINE | |
54 | # endif | |
55 | #endif | |
56 | ||
57 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
58 | #ifndef SWIGUNUSED | |
0085ce49 RD |
59 | # if defined(__GNUC__) |
60 | # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
61 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
62 | # else | |
63 | # define SWIGUNUSED | |
64 | # endif | |
65 | # elif defined(__ICC) | |
66 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
32fe5131 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
0085ce49 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
32fe5131 RD |
80 | /* internal SWIG method */ |
81 | #ifndef SWIGINTERN | |
82 | # define SWIGINTERN static SWIGUNUSED | |
83 | #endif | |
84 | ||
85 | /* internal inline SWIG method */ | |
86 | #ifndef SWIGINTERNINLINE | |
87 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
88 | #endif | |
89 | ||
0085ce49 RD |
90 | /* exporting methods */ |
91 | #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
92 | # ifndef GCC_HASCLASSVISIBILITY | |
93 | # define GCC_HASCLASSVISIBILITY | |
94 | # endif | |
95 | #endif | |
96 | ||
32fe5131 RD |
97 | #ifndef SWIGEXPORT |
98 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
99 | # if defined(STATIC_LINKED) | |
100 | # define SWIGEXPORT | |
101 | # else | |
102 | # define SWIGEXPORT __declspec(dllexport) | |
103 | # endif | |
104 | # else | |
0085ce49 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
32fe5131 RD |
110 | # endif |
111 | #endif | |
112 | ||
113 | /* calling conventions for Windows */ | |
114 | #ifndef SWIGSTDCALL | |
115 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
116 | # define SWIGSTDCALL __stdcall | |
117 | # else | |
118 | # define SWIGSTDCALL | |
119 | # endif | |
120 | #endif | |
121 | ||
0085ce49 RD |
122 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
123 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) | |
124 | # define _CRT_SECURE_NO_DEPRECATE | |
125 | #endif | |
32fe5131 | 126 | |
c9c7117a | 127 | |
0085ce49 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
d14a1e28 | 130 | |
0085ce49 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
d14a1e28 | 133 | * |
0085ce49 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 137 | |
093d3ff1 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d14a1e28 | 141 | |
093d3ff1 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
144 | # define SWIG_QUOTE_STRING(x) #x |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d14a1e28 | 147 | #else |
32fe5131 | 148 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
32fe5131 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
32fe5131 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
32fe5131 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d14a1e28 RD |
166 | #endif |
167 | ||
0085ce49 RD |
168 | /* Generic buffer size */ |
169 | #ifndef SWIG_BUFFER_SIZE | |
170 | # define SWIG_BUFFER_SIZE 1024 | |
171 | #endif | |
172 | ||
173 | /* Flags for pointer conversions */ | |
174 | #define SWIG_POINTER_DISOWN 0x1 | |
175 | ||
176 | /* Flags for new pointer objects */ | |
177 | #define SWIG_POINTER_OWN 0x1 | |
178 | ||
179 | ||
180 | /* | |
181 | Flags/methods for returning states. | |
182 | ||
183 | The swig conversion methods, as ConvertPtr, return and integer | |
184 | that tells if the conversion was successful or not. And if not, | |
185 | an error code can be returned (see swigerrors.swg for the codes). | |
186 | ||
187 | Use the following macros/flags to set or process the returning | |
188 | states. | |
189 | ||
190 | In old swig versions, you usually write code as: | |
191 | ||
192 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
193 | // success code | |
194 | } else { | |
195 | //fail code | |
196 | } | |
197 | ||
198 | Now you can be more explicit as: | |
199 | ||
200 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
201 | if (SWIG_IsOK(res)) { | |
202 | // success code | |
203 | } else { | |
204 | // fail code | |
205 | } | |
206 | ||
207 | that seems to be the same, but now you can also do | |
208 | ||
209 | Type *ptr; | |
210 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
211 | if (SWIG_IsOK(res)) { | |
212 | // success code | |
213 | if (SWIG_IsNewObj(res) { | |
214 | ... | |
215 | delete *ptr; | |
216 | } else { | |
217 | ... | |
218 | } | |
219 | } else { | |
220 | // fail code | |
221 | } | |
222 | ||
223 | I.e., now SWIG_ConvertPtr can return new objects and you can | |
224 | identify the case and take care of the deallocation. Of course that | |
225 | requires also to SWIG_ConvertPtr to return new result values, as | |
226 | ||
227 | int SWIG_ConvertPtr(obj, ptr,...) { | |
228 | if (<obj is ok>) { | |
229 | if (<need new object>) { | |
230 | *ptr = <ptr to new allocated object>; | |
231 | return SWIG_NEWOBJ; | |
232 | } else { | |
233 | *ptr = <ptr to old object>; | |
234 | return SWIG_OLDOBJ; | |
235 | } | |
236 | } else { | |
237 | return SWIG_BADOBJ; | |
238 | } | |
239 | } | |
240 | ||
241 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
242 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
243 | swig errors code. | |
244 | ||
245 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
246 | allows to return the 'cast rank', for example, if you have this | |
247 | ||
248 | int food(double) | |
249 | int fooi(int); | |
250 | ||
251 | and you call | |
252 | ||
253 | food(1) // cast rank '1' (1 -> 1.0) | |
254 | fooi(1) // cast rank '0' | |
255 | ||
256 | just use the SWIG_AddCast()/SWIG_CheckState() | |
257 | ||
258 | ||
259 | */ | |
260 | #define SWIG_OK (0) | |
261 | #define SWIG_ERROR (-1) | |
262 | #define SWIG_IsOK(r) (r >= 0) | |
263 | #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
264 | ||
265 | /* The CastRankLimit says how many bits are used for the cast rank */ | |
266 | #define SWIG_CASTRANKLIMIT (1 << 8) | |
267 | /* The NewMask denotes the object was created (using new/malloc) */ | |
268 | #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
269 | /* The TmpMask is for in/out typemaps that use temporal objects */ | |
270 | #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
271 | /* Simple returning values */ | |
272 | #define SWIG_BADOBJ (SWIG_ERROR) | |
273 | #define SWIG_OLDOBJ (SWIG_OK) | |
274 | #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
275 | #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
276 | /* Check, add and del mask methods */ | |
277 | #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
278 | #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
279 | #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
280 | #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
281 | #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
282 | #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
283 | ||
284 | ||
285 | /* Cast-Rank Mode */ | |
286 | #if defined(SWIG_CASTRANK_MODE) | |
287 | # ifndef SWIG_TypeRank | |
288 | # define SWIG_TypeRank unsigned long | |
289 | # endif | |
290 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
291 | # define SWIG_MAXCASTRANK (2) | |
292 | # endif | |
293 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
294 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
295 | SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
296 | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
297 | } | |
298 | SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
299 | return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
300 | } | |
301 | #else /* no cast-rank mode */ | |
302 | # define SWIG_AddCast | |
303 | # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
304 | #endif | |
305 | ||
306 | ||
307 | ||
308 | ||
32fe5131 RD |
309 | #include <string.h> |
310 | ||
d14a1e28 RD |
311 | #ifdef __cplusplus |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
32fe5131 | 318 | /* Structure to store inforomation on one type */ |
d14a1e28 | 319 | typedef struct swig_type_info { |
32fe5131 RD |
320 | const char *name; /* mangled name of this type */ |
321 | const char *str; /* human readable name of this type */ | |
322 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
323 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
324 | void *clientdata; /* language specific type data */ | |
0085ce49 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d14a1e28 RD |
326 | } swig_type_info; |
327 | ||
32fe5131 RD |
328 | /* Structure to store a type and conversion function used for casting */ |
329 | typedef struct swig_cast_info { | |
330 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
331 | swig_converter_func converter; /* function to cast the void pointers */ | |
332 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
333 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
334 | } swig_cast_info; | |
335 | ||
336 | /* Structure used to store module information | |
337 | * Each module generates one structure like this, and the runtime collects | |
338 | * all of these structures and stores them in a circularly linked list.*/ | |
339 | typedef struct swig_module_info { | |
340 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
341 | size_t size; /* Number of types in this module */ | |
342 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
343 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
344 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
345 | void *clientdata; /* Language specific module data */ | |
346 | } swig_module_info; | |
347 | ||
093d3ff1 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
0085ce49 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
093d3ff1 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 368 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
32fe5131 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
32fe5131 RD |
386 | Check type equivalence in a name list like <name1>|<name2>|... |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
093d3ff1 | 388 | */ |
32fe5131 RD |
389 | SWIGRUNTIME int |
390 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
391 | int equiv = 0; | |
392 | const char* te = tb + strlen(tb); | |
393 | const char* ne = nb; | |
394 | while (!equiv && *ne) { | |
395 | for (nb = ne; *ne; ++ne) { | |
396 | if (*ne == '|') break; | |
093d3ff1 | 397 | } |
32fe5131 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
32fe5131 | 401 | return equiv; |
093d3ff1 RD |
402 | } |
403 | ||
32fe5131 RD |
404 | |
405 | /* think of this as a c++ template<> or a scheme macro */ | |
406 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
407 | if (ty) { \ | |
408 | swig_cast_info *iter = ty->cast; \ | |
409 | while (iter) { \ | |
410 | if (comparison) { \ | |
411 | if (iter == ty->cast) return iter; \ | |
412 | /* Move iter to the top of the linked list */ \ | |
413 | iter->prev->next = iter->next; \ | |
414 | if (iter->next) \ | |
415 | iter->next->prev = iter->prev; \ | |
416 | iter->next = ty->cast; \ | |
417 | iter->prev = 0; \ | |
418 | if (ty->cast) ty->cast->prev = iter; \ | |
419 | ty->cast = iter; \ | |
420 | return iter; \ | |
421 | } \ | |
422 | iter = iter->next; \ | |
423 | } \ | |
424 | } \ | |
425 | return 0 | |
426 | ||
093d3ff1 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
32fe5131 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
432 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
433 | } | |
434 | ||
435 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
436 | SWIGRUNTIME swig_cast_info * | |
437 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
438 | SWIG_TypeCheck_Template(iter->type == from, into); | |
093d3ff1 RD |
439 | } |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
0085ce49 | 481 | if (!type) return NULL; |
093d3ff1 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
093d3ff1 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
32fe5131 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
32fe5131 RD |
501 | |
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
093d3ff1 | 507 | } |
32fe5131 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
0085ce49 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
32fe5131 RD |
518 | /* |
519 | Search for a swig_type_info structure only by mangled name | |
520 | Search is a O(log #types) | |
521 | ||
522 | We start searching at module start, and finish searching when start == end. | |
523 | Note: if start == end at the beginning of the function, we go all the way around | |
524 | the circular list. | |
525 | */ | |
526 | SWIGRUNTIME swig_type_info * | |
527 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
528 | swig_module_info *end, | |
529 | const char *name) { | |
530 | swig_module_info *iter = start; | |
531 | do { | |
532 | if (iter->size) { | |
533 | register size_t l = 0; | |
534 | register size_t r = iter->size - 1; | |
535 | do { | |
536 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
537 | register size_t i = (l + r) >> 1; | |
538 | const char *iname = iter->types[i]->name; | |
539 | if (iname) { | |
540 | register int compare = strcmp(name, iname); | |
541 | if (compare == 0) { | |
542 | return iter->types[i]; | |
543 | } else if (compare < 0) { | |
544 | if (i) { | |
545 | r = i - 1; | |
546 | } else { | |
547 | break; | |
548 | } | |
549 | } else if (compare > 0) { | |
550 | l = i + 1; | |
551 | } | |
552 | } else { | |
553 | break; /* should never happen */ | |
554 | } | |
555 | } while (l <= r); | |
093d3ff1 | 556 | } |
32fe5131 RD |
557 | iter = iter->next; |
558 | } while (iter != end); | |
559 | return 0; | |
560 | } | |
561 | ||
562 | /* | |
563 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
564 | It first searches the mangled names of the types, which is a O(log #types) | |
565 | If a type is not found it then searches the human readable names, which is O(#types). | |
566 | ||
567 | We start searching at module start, and finish searching when start == end. | |
568 | Note: if start == end at the beginning of the function, we go all the way around | |
569 | the circular list. | |
570 | */ | |
571 | SWIGRUNTIME swig_type_info * | |
572 | SWIG_TypeQueryModule(swig_module_info *start, | |
573 | swig_module_info *end, | |
574 | const char *name) { | |
575 | /* STEP 1: Search the name field using binary search */ | |
576 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
577 | if (ret) { | |
578 | return ret; | |
579 | } else { | |
580 | /* STEP 2: If the type hasn't been found, do a complete search | |
581 | of the str field (the human readable name) */ | |
582 | swig_module_info *iter = start; | |
583 | do { | |
584 | register size_t i = 0; | |
585 | for (; i < iter->size; ++i) { | |
586 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
587 | return iter->types[i]; | |
588 | } | |
589 | iter = iter->next; | |
590 | } while (iter != end); | |
093d3ff1 | 591 | } |
32fe5131 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
093d3ff1 RD |
595 | } |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
602 | static const char hex[17] = "0123456789abcdef"; |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
093d3ff1 | 605 | for (; u != eu; ++u) { |
32fe5131 | 606 | register unsigned char uu = *u; |
093d3ff1 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
32fe5131 | 621 | register char d = *(c++); |
0085ce49 | 622 | register unsigned char uu; |
093d3ff1 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
093d3ff1 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
d14a1e28 | 682 | |
093d3ff1 RD |
683 | SWIGRUNTIME const char * |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
d14a1e28 RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
0085ce49 RD |
700 | /* Errors in SWIG */ |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
d14a1e28 | 714 | |
0085ce49 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
093d3ff1 | 764 | #endif |
0085ce49 RD |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
c32bde28 | 799 | |
093d3ff1 | 800 | /* ----------------------------------------------------------------------------- |
0085ce49 | 801 | * error manipulation |
093d3ff1 | 802 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 803 | |
0085ce49 RD |
804 | SWIGRUNTIME PyObject* |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
d14a1e28 | 846 | |
0085ce49 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
093d3ff1 | 935 | #endif |
d14a1e28 | 936 | |
0085ce49 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
0085ce49 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
093d3ff1 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 951 | |
093d3ff1 | 952 | /* Constant Types */ |
093d3ff1 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
0085ce49 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
093d3ff1 | 964 | } swig_const_info; |
d14a1e28 | 965 | |
994141e6 | 966 | #ifdef __cplusplus |
0085ce49 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
994141e6 | 972 | |
15afbcd0 | 973 | |
0085ce49 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
093d3ff1 RD |
978 | * pyrun.swg |
979 | * | |
0085ce49 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
093d3ff1 | 983 | * |
0085ce49 | 984 | * ----------------------------------------------------------------------------- */ |
15afbcd0 | 985 | |
093d3ff1 | 986 | /* Common SWIG API */ |
994141e6 | 987 | |
d1a49b78 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
0085ce49 RD |
992 | /* for raw pointers */ |
993 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
994 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
995 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
996 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
997 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
998 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
999 | #define swig_owntype int | |
994141e6 | 1000 | |
0085ce49 RD |
1001 | /* for raw packed data */ |
1002 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1003 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
994141e6 | 1004 | |
0085ce49 RD |
1005 | /* for class or struct pointers */ |
1006 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1007 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d14a1e28 | 1008 | |
0085ce49 RD |
1009 | /* for C or C++ function pointers */ |
1010 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1011 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
994141e6 | 1012 | |
0085ce49 RD |
1013 | /* for C++ member pointers, ie, member methods */ |
1014 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1015 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1016 | |
c32bde28 | 1017 | |
0085ce49 | 1018 | /* Runtime API */ |
994141e6 | 1019 | |
0085ce49 RD |
1020 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1021 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1022 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1023 | |
0085ce49 RD |
1024 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1025 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1026 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1027 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1028 | #define SWIG_fail goto fail | |
32fe5131 | 1029 | |
994141e6 | 1030 | |
0085ce49 | 1031 | /* Runtime API implementation */ |
c32bde28 | 1032 | |
0085ce49 | 1033 | /* Error manipulation */ |
c32bde28 | 1034 | |
0085ce49 RD |
1035 | SWIGINTERN void |
1036 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1037 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1038 | PyErr_SetObject(errtype, obj); | |
1039 | Py_DECREF(obj); | |
1040 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c32bde28 | 1041 | } |
15afbcd0 | 1042 | |
0085ce49 RD |
1043 | SWIGINTERN void |
1044 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1045 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1046 | PyErr_SetString(errtype, (char *) msg); | |
1047 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c32bde28 | 1048 | } |
15afbcd0 | 1049 | |
0085ce49 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1051 | |
0085ce49 | 1052 | /* Set a constant value */ |
c32bde28 | 1053 | |
0085ce49 RD |
1054 | SWIGINTERN void |
1055 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1056 | PyDict_SetItemString(d, (char*) name, obj); | |
1057 | Py_DECREF(obj); | |
15afbcd0 RD |
1058 | } |
1059 | ||
0085ce49 | 1060 | /* Append a value to the result obj */ |
69223c70 | 1061 | |
0085ce49 RD |
1062 | SWIGINTERN PyObject* |
1063 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1064 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1065 | if (!result) { | |
1066 | result = obj; | |
1067 | } else if (result == Py_None) { | |
1068 | Py_DECREF(result); | |
1069 | result = obj; | |
1070 | } else { | |
1071 | if (!PyList_Check(result)) { | |
1072 | PyObject *o2 = result; | |
1073 | result = PyList_New(1); | |
1074 | PyList_SetItem(result, 0, o2); | |
1075 | } | |
1076 | PyList_Append(result,obj); | |
1077 | Py_DECREF(obj); | |
1078 | } | |
1079 | return result; | |
1080 | #else | |
1081 | PyObject* o2; | |
1082 | PyObject* o3; | |
1083 | if (!result) { | |
1084 | result = obj; | |
1085 | } else if (result == Py_None) { | |
1086 | Py_DECREF(result); | |
1087 | result = obj; | |
093d3ff1 | 1088 | } else { |
0085ce49 RD |
1089 | if (!PyTuple_Check(result)) { |
1090 | o2 = result; | |
1091 | result = PyTuple_New(1); | |
1092 | PyTuple_SET_ITEM(result, 0, o2); | |
1093 | } | |
1094 | o3 = PyTuple_New(1); | |
1095 | PyTuple_SET_ITEM(o3, 0, obj); | |
1096 | o2 = result; | |
1097 | result = PySequence_Concat(o2, o3); | |
1098 | Py_DECREF(o2); | |
1099 | Py_DECREF(o3); | |
15afbcd0 | 1100 | } |
0085ce49 RD |
1101 | return result; |
1102 | #endif | |
093d3ff1 | 1103 | } |
15afbcd0 | 1104 | |
0085ce49 | 1105 | /* Unpack the argument tuple */ |
15afbcd0 | 1106 | |
0085ce49 RD |
1107 | SWIGINTERN int |
1108 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1109 | { | |
1110 | if (!args) { | |
1111 | if (!min && !max) { | |
1112 | return 1; | |
1113 | } else { | |
1114 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1115 | name, (min == max ? "" : "at least "), min); | |
1116 | return 0; | |
1117 | } | |
1118 | } | |
1119 | if (!PyTuple_Check(args)) { | |
1120 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1121 | return 0; | |
1122 | } else { | |
1123 | register int l = PyTuple_GET_SIZE(args); | |
1124 | if (l < min) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at least "), min, l); | |
1127 | return 0; | |
1128 | } else if (l > max) { | |
1129 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1130 | name, (min == max ? "" : "at most "), max, l); | |
1131 | return 0; | |
1132 | } else { | |
1133 | register int i; | |
1134 | for (i = 0; i < l; ++i) { | |
1135 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1136 | } | |
1137 | for (; l < max; ++l) { | |
1138 | objs[l] = 0; | |
1139 | } | |
1140 | return i + 1; | |
1141 | } | |
1142 | } | |
1143 | } | |
1144 | ||
1145 | /* A functor is a function object with one single object argument */ | |
1146 | #if PY_VERSION_HEX >= 0x02020000 | |
1147 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1148 | #else | |
1149 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1150 | #endif | |
1151 | ||
1152 | /* | |
1153 | Helper for static pointer initialization for both C and C++ code, for example | |
1154 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1155 | */ | |
1156 | #ifdef __cplusplus | |
1157 | #define SWIG_STATIC_POINTER(var) var | |
1158 | #else | |
1159 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1160 | #endif | |
1161 | ||
1162 | /* ----------------------------------------------------------------------------- | |
1163 | * Pointer declarations | |
1164 | * ----------------------------------------------------------------------------- */ | |
1165 | ||
1166 | /* Flags for new pointer objects */ | |
1167 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1168 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1169 | ||
1170 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1171 | ||
1172 | #ifdef __cplusplus | |
1173 | extern "C" { | |
1174 | #if 0 | |
1175 | } /* cc-mode */ | |
1176 | #endif | |
1177 | #endif | |
1178 | ||
1179 | /* How to access Py_None */ | |
1180 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1181 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1182 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1183 | # define SWIG_PYTHON_BUILD_NONE | |
1184 | # endif | |
1185 | # endif | |
1186 | #endif | |
1187 | ||
1188 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1189 | # ifdef Py_None | |
1190 | # undef Py_None | |
1191 | # define Py_None SWIG_Py_None() | |
1192 | # endif | |
1193 | SWIGRUNTIMEINLINE PyObject * | |
1194 | _SWIG_Py_None(void) | |
1195 | { | |
1196 | PyObject *none = Py_BuildValue(""); | |
1197 | Py_DECREF(none); | |
1198 | return none; | |
1199 | } | |
1200 | SWIGRUNTIME PyObject * | |
1201 | SWIG_Py_None(void) | |
1202 | { | |
1203 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1204 | return none; | |
1205 | } | |
1206 | #endif | |
1207 | ||
1208 | /* The python void return value */ | |
1209 | ||
1210 | SWIGRUNTIMEINLINE PyObject * | |
1211 | SWIG_Py_Void(void) | |
1212 | { | |
1213 | PyObject *none = Py_None; | |
1214 | Py_INCREF(none); | |
1215 | return none; | |
1216 | } | |
1217 | ||
1218 | /* PySwigClientData */ | |
1219 | ||
1220 | typedef struct { | |
1221 | PyObject *klass; | |
1222 | PyObject *newraw; | |
1223 | PyObject *newargs; | |
1224 | PyObject *destroy; | |
1225 | int delargs; | |
1226 | int implicitconv; | |
1227 | } PySwigClientData; | |
1228 | ||
1229 | SWIGRUNTIMEINLINE int | |
1230 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1231 | { | |
1232 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1233 | return data ? data->implicitconv : 0; | |
1234 | } | |
1235 | ||
1236 | SWIGRUNTIMEINLINE PyObject * | |
1237 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1238 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1239 | PyObject *klass = data ? data->klass : 0; | |
1240 | return (klass ? klass : PyExc_RuntimeError); | |
1241 | } | |
1242 | ||
1243 | ||
1244 | SWIGRUNTIME PySwigClientData * | |
1245 | PySwigClientData_New(PyObject* obj) | |
1246 | { | |
1247 | if (!obj) { | |
1248 | return 0; | |
1249 | } else { | |
1250 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1251 | /* the klass element */ | |
1252 | data->klass = obj; | |
1253 | Py_INCREF(data->klass); | |
1254 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1255 | if (PyClass_Check(obj)) { | |
1256 | data->newraw = 0; | |
1257 | data->newargs = obj; | |
1258 | Py_INCREF(obj); | |
1259 | } else { | |
1260 | #if (PY_VERSION_HEX < 0x02020000) | |
1261 | data->newraw = 0; | |
1262 | #else | |
1263 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1264 | #endif | |
1265 | if (data->newraw) { | |
1266 | Py_INCREF(data->newraw); | |
1267 | data->newargs = PyTuple_New(1); | |
1268 | PyTuple_SetItem(data->newargs, 0, obj); | |
1269 | } else { | |
1270 | data->newargs = obj; | |
1271 | } | |
1272 | Py_INCREF(data->newargs); | |
1273 | } | |
1274 | /* the destroy method, aka as the C++ delete method */ | |
1275 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1276 | if (PyErr_Occurred()) { | |
1277 | PyErr_Clear(); | |
1278 | data->destroy = 0; | |
1279 | } | |
1280 | if (data->destroy) { | |
1281 | int flags; | |
1282 | Py_INCREF(data->destroy); | |
1283 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1284 | #ifdef METH_O | |
1285 | data->delargs = !(flags & (METH_O)); | |
1286 | #else | |
1287 | data->delargs = 0; | |
1288 | #endif | |
1289 | } else { | |
1290 | data->delargs = 0; | |
1291 | } | |
1292 | data->implicitconv = 0; | |
1293 | return data; | |
1294 | } | |
1295 | } | |
1296 | ||
1297 | SWIGRUNTIME void | |
1298 | PySwigClientData_Del(PySwigClientData* data) | |
1299 | { | |
1300 | Py_XDECREF(data->newraw); | |
1301 | Py_XDECREF(data->newargs); | |
1302 | Py_XDECREF(data->destroy); | |
1303 | } | |
1304 | ||
1305 | /* =============== PySwigObject =====================*/ | |
1306 | ||
1307 | typedef struct { | |
1308 | PyObject_HEAD | |
1309 | void *ptr; | |
1310 | swig_type_info *ty; | |
1311 | int own; | |
1312 | PyObject *next; | |
1313 | } PySwigObject; | |
1314 | ||
1315 | SWIGRUNTIME PyObject * | |
1316 | PySwigObject_long(PySwigObject *v) | |
1317 | { | |
1318 | return PyLong_FromVoidPtr(v->ptr); | |
1319 | } | |
1320 | ||
1321 | SWIGRUNTIME PyObject * | |
1322 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1323 | { | |
1324 | PyObject *res = NULL; | |
1325 | PyObject *args = PyTuple_New(1); | |
1326 | if (args) { | |
1327 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1328 | PyObject *ofmt = PyString_FromString(fmt); | |
1329 | if (ofmt) { | |
1330 | res = PyString_Format(ofmt,args); | |
1331 | Py_DECREF(ofmt); | |
1332 | } | |
1333 | Py_DECREF(args); | |
1334 | } | |
1335 | } | |
1336 | return res; | |
1337 | } | |
1338 | ||
1339 | SWIGRUNTIME PyObject * | |
1340 | PySwigObject_oct(PySwigObject *v) | |
1341 | { | |
1342 | return PySwigObject_format("%o",v); | |
1343 | } | |
1344 | ||
1345 | SWIGRUNTIME PyObject * | |
1346 | PySwigObject_hex(PySwigObject *v) | |
1347 | { | |
1348 | return PySwigObject_format("%x",v); | |
1349 | } | |
1350 | ||
1351 | SWIGRUNTIME PyObject * | |
1352 | #ifdef METH_NOARGS | |
1353 | PySwigObject_repr(PySwigObject *v) | |
1354 | #else | |
1355 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1356 | #endif | |
1357 | { | |
1358 | const char *name = SWIG_TypePrettyName(v->ty); | |
1359 | PyObject *hex = PySwigObject_hex(v); | |
1360 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1361 | Py_DECREF(hex); | |
1362 | if (v->next) { | |
1363 | #ifdef METH_NOARGS | |
1364 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1365 | #else | |
1366 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1367 | #endif | |
1368 | PyString_ConcatAndDel(&repr,nrep); | |
1369 | } | |
1370 | return repr; | |
1371 | } | |
1372 | ||
1373 | SWIGRUNTIME int | |
1374 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1375 | { | |
1376 | #ifdef METH_NOARGS | |
1377 | PyObject *repr = PySwigObject_repr(v); | |
1378 | #else | |
1379 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1380 | #endif | |
1381 | if (repr) { | |
1382 | fputs(PyString_AsString(repr), fp); | |
1383 | Py_DECREF(repr); | |
1384 | return 0; | |
1385 | } else { | |
1386 | return 1; | |
1387 | } | |
1388 | } | |
1389 | ||
1390 | SWIGRUNTIME PyObject * | |
1391 | PySwigObject_str(PySwigObject *v) | |
1392 | { | |
1393 | char result[SWIG_BUFFER_SIZE]; | |
1394 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1395 | PyString_FromString(result) : 0; | |
1396 | } | |
1397 | ||
1398 | SWIGRUNTIME int | |
1399 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1400 | { | |
1401 | void *i = v->ptr; | |
1402 | void *j = w->ptr; | |
1403 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1404 | } | |
1405 | ||
1406 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1407 | ||
1408 | SWIGRUNTIME PyTypeObject* | |
1409 | PySwigObject_type(void) { | |
1410 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1411 | return type; | |
1412 | } | |
1413 | ||
1414 | SWIGRUNTIMEINLINE int | |
1415 | PySwigObject_Check(PyObject *op) { | |
1416 | return ((op)->ob_type == PySwigObject_type()) | |
1417 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1418 | } | |
1419 | ||
1420 | SWIGRUNTIME PyObject * | |
1421 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1422 | ||
1423 | SWIGRUNTIME void | |
1424 | PySwigObject_dealloc(PyObject *v) | |
1425 | { | |
1426 | PySwigObject *sobj = (PySwigObject *) v; | |
1427 | PyObject *next = sobj->next; | |
1428 | if (sobj->own) { | |
1429 | swig_type_info *ty = sobj->ty; | |
1430 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1431 | PyObject *destroy = data ? data->destroy : 0; | |
1432 | if (destroy) { | |
1433 | /* destroy is always a VARARGS method */ | |
1434 | PyObject *res; | |
1435 | if (data->delargs) { | |
1436 | /* we need to create a temporal object to carry the destroy operation */ | |
1437 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1438 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1439 | Py_DECREF(tmp); | |
1440 | } else { | |
1441 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1442 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1443 | res = ((*meth)(mself, v)); | |
1444 | } | |
1445 | Py_XDECREF(res); | |
1446 | } else { | |
1447 | const char *name = SWIG_TypePrettyName(ty); | |
1448 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1449 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1450 | #endif | |
1451 | } | |
1452 | } | |
1453 | Py_XDECREF(next); | |
1454 | PyObject_DEL(v); | |
1455 | } | |
1456 | ||
1457 | SWIGRUNTIME PyObject* | |
1458 | PySwigObject_append(PyObject* v, PyObject* next) | |
1459 | { | |
1460 | PySwigObject *sobj = (PySwigObject *) v; | |
1461 | #ifndef METH_O | |
1462 | PyObject *tmp = 0; | |
1463 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1464 | next = tmp; | |
1465 | #endif | |
1466 | if (!PySwigObject_Check(next)) { | |
1467 | return NULL; | |
1468 | } | |
1469 | sobj->next = next; | |
1470 | Py_INCREF(next); | |
1471 | return SWIG_Py_Void(); | |
1472 | } | |
1473 | ||
1474 | SWIGRUNTIME PyObject* | |
1475 | #ifdef METH_NOARGS | |
1476 | PySwigObject_next(PyObject* v) | |
1477 | #else | |
1478 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1479 | #endif | |
1480 | { | |
1481 | PySwigObject *sobj = (PySwigObject *) v; | |
1482 | if (sobj->next) { | |
1483 | Py_INCREF(sobj->next); | |
1484 | return sobj->next; | |
1485 | } else { | |
1486 | return SWIG_Py_Void(); | |
1487 | } | |
1488 | } | |
1489 | ||
1490 | SWIGINTERN PyObject* | |
1491 | #ifdef METH_NOARGS | |
1492 | PySwigObject_disown(PyObject *v) | |
1493 | #else | |
1494 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1495 | #endif | |
1496 | { | |
1497 | PySwigObject *sobj = (PySwigObject *)v; | |
1498 | sobj->own = 0; | |
1499 | return SWIG_Py_Void(); | |
1500 | } | |
1501 | ||
1502 | SWIGINTERN PyObject* | |
1503 | #ifdef METH_NOARGS | |
1504 | PySwigObject_acquire(PyObject *v) | |
1505 | #else | |
1506 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1507 | #endif | |
1508 | { | |
1509 | PySwigObject *sobj = (PySwigObject *)v; | |
1510 | sobj->own = SWIG_POINTER_OWN; | |
1511 | return SWIG_Py_Void(); | |
1512 | } | |
1513 | ||
1514 | SWIGINTERN PyObject* | |
1515 | PySwigObject_own(PyObject *v, PyObject *args) | |
1516 | { | |
1517 | PyObject *val = 0; | |
1518 | #if (PY_VERSION_HEX < 0x02020000) | |
1519 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1520 | #else | |
1521 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1522 | #endif | |
1523 | { | |
1524 | return NULL; | |
1525 | } | |
1526 | else | |
1527 | { | |
1528 | PySwigObject *sobj = (PySwigObject *)v; | |
1529 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1530 | if (val) { | |
1531 | #ifdef METH_NOARGS | |
1532 | if (PyObject_IsTrue(val)) { | |
1533 | PySwigObject_acquire(v); | |
1534 | } else { | |
1535 | PySwigObject_disown(v); | |
1536 | } | |
1537 | #else | |
1538 | if (PyObject_IsTrue(val)) { | |
1539 | PySwigObject_acquire(v,args); | |
1540 | } else { | |
1541 | PySwigObject_disown(v,args); | |
1542 | } | |
1543 | #endif | |
1544 | } | |
1545 | return obj; | |
1546 | } | |
1547 | } | |
1548 | ||
1549 | #ifdef METH_O | |
1550 | static PyMethodDef | |
1551 | swigobject_methods[] = { | |
1552 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1553 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1554 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1555 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1556 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1557 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1558 | {0, 0, 0, 0} | |
1559 | }; | |
1560 | #else | |
1561 | static PyMethodDef | |
1562 | swigobject_methods[] = { | |
1563 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1564 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1565 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1566 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1567 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1568 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1569 | {0, 0, 0, 0} | |
1570 | }; | |
1571 | #endif | |
1572 | ||
1573 | #if PY_VERSION_HEX < 0x02020000 | |
1574 | SWIGINTERN PyObject * | |
1575 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1576 | { | |
1577 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1578 | } | |
1579 | #endif | |
1580 | ||
1581 | SWIGRUNTIME PyTypeObject* | |
1582 | _PySwigObject_type(void) { | |
1583 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1584 | ||
1585 | static PyNumberMethods PySwigObject_as_number = { | |
1586 | (binaryfunc)0, /*nb_add*/ | |
1587 | (binaryfunc)0, /*nb_subtract*/ | |
1588 | (binaryfunc)0, /*nb_multiply*/ | |
1589 | (binaryfunc)0, /*nb_divide*/ | |
1590 | (binaryfunc)0, /*nb_remainder*/ | |
093d3ff1 RD |
1591 | (binaryfunc)0, /*nb_divmod*/ |
1592 | (ternaryfunc)0,/*nb_power*/ | |
1593 | (unaryfunc)0, /*nb_negative*/ | |
1594 | (unaryfunc)0, /*nb_positive*/ | |
1595 | (unaryfunc)0, /*nb_absolute*/ | |
1596 | (inquiry)0, /*nb_nonzero*/ | |
1597 | 0, /*nb_invert*/ | |
1598 | 0, /*nb_lshift*/ | |
1599 | 0, /*nb_rshift*/ | |
1600 | 0, /*nb_and*/ | |
1601 | 0, /*nb_xor*/ | |
1602 | 0, /*nb_or*/ | |
1603 | (coercion)0, /*nb_coerce*/ | |
1604 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1605 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1606 | (unaryfunc)0, /*nb_float*/ | |
1607 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1608 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1609 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1611 | #elif PY_VERSION_HEX >= 0x02000000 |
1612 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1613 | #endif |
1614 | }; | |
1615 | ||
0085ce49 | 1616 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1617 | static int type_init = 0; |
093d3ff1 | 1618 | if (!type_init) { |
0085ce49 RD |
1619 | const PyTypeObject tmp |
1620 | = { | |
1621 | PyObject_HEAD_INIT(NULL) | |
1622 | 0, /* ob_size */ | |
1623 | (char *)"PySwigObject", /* tp_name */ | |
1624 | sizeof(PySwigObject), /* tp_basicsize */ | |
1625 | 0, /* tp_itemsize */ | |
1626 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1627 | (printfunc)PySwigObject_print, /* tp_print */ | |
1628 | #if PY_VERSION_HEX < 0x02020000 | |
1629 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1630 | #else | |
1631 | (getattrfunc)0, /* tp_getattr */ | |
093d3ff1 | 1632 | #endif |
0085ce49 RD |
1633 | (setattrfunc)0, /* tp_setattr */ |
1634 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1635 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1636 | &PySwigObject_as_number, /* tp_as_number */ | |
1637 | 0, /* tp_as_sequence */ | |
1638 | 0, /* tp_as_mapping */ | |
1639 | (hashfunc)0, /* tp_hash */ | |
1640 | (ternaryfunc)0, /* tp_call */ | |
1641 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1642 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1643 | 0, /* tp_setattro */ | |
1644 | 0, /* tp_as_buffer */ | |
1645 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1646 | swigobject_doc, /* tp_doc */ | |
1647 | 0, /* tp_traverse */ | |
1648 | 0, /* tp_clear */ | |
1649 | 0, /* tp_richcompare */ | |
1650 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 1651 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 RD |
1652 | 0, /* tp_iter */ |
1653 | 0, /* tp_iternext */ | |
1654 | swigobject_methods, /* tp_methods */ | |
1655 | 0, /* tp_members */ | |
1656 | 0, /* tp_getset */ | |
1657 | 0, /* tp_base */ | |
1658 | 0, /* tp_dict */ | |
1659 | 0, /* tp_descr_get */ | |
1660 | 0, /* tp_descr_set */ | |
1661 | 0, /* tp_dictoffset */ | |
1662 | 0, /* tp_init */ | |
1663 | 0, /* tp_alloc */ | |
1664 | 0, /* tp_new */ | |
1665 | 0, /* tp_free */ | |
1666 | 0, /* tp_is_gc */ | |
1667 | 0, /* tp_bases */ | |
1668 | 0, /* tp_mro */ | |
1669 | 0, /* tp_cache */ | |
1670 | 0, /* tp_subclasses */ | |
1671 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1672 | #endif |
1673 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1674 | 0, /* tp_del */ |
093d3ff1 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1678 | #endif |
0085ce49 | 1679 | }; |
32fe5131 | 1680 | pyswigobject_type = tmp; |
0085ce49 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 | 1682 | type_init = 1; |
c32bde28 | 1683 | } |
32fe5131 | 1684 | return &pyswigobject_type; |
15afbcd0 RD |
1685 | } |
1686 | ||
093d3ff1 | 1687 | SWIGRUNTIME PyObject * |
0085ce49 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
093d3ff1 | 1689 | { |
0085ce49 RD |
1690 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1691 | if (sobj) { | |
1692 | sobj->ptr = ptr; | |
1693 | sobj->ty = ty; | |
1694 | sobj->own = own; | |
1695 | sobj->next = 0; | |
32fe5131 | 1696 | } |
0085ce49 | 1697 | return (PyObject *)sobj; |
15afbcd0 RD |
1698 | } |
1699 | ||
093d3ff1 RD |
1700 | /* ----------------------------------------------------------------------------- |
1701 | * Implements a simple Swig Packed type, and use it instead of string | |
1702 | * ----------------------------------------------------------------------------- */ | |
1703 | ||
1704 | typedef struct { | |
1705 | PyObject_HEAD | |
1706 | void *pack; | |
0085ce49 | 1707 | swig_type_info *ty; |
093d3ff1 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
1710 | ||
1711 | SWIGRUNTIME int | |
0085ce49 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
093d3ff1 RD |
1713 | { |
1714 | char result[SWIG_BUFFER_SIZE]; | |
1715 | fputs("<Swig Packed ", fp); | |
1716 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1717 | fputs("at ", fp); | |
1718 | fputs(result, fp); | |
1719 | } | |
0085ce49 | 1720 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
1723 | } | |
c32bde28 | 1724 | |
093d3ff1 RD |
1725 | SWIGRUNTIME PyObject * |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
15afbcd0 | 1727 | { |
093d3ff1 RD |
1728 | char result[SWIG_BUFFER_SIZE]; |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
0085ce49 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1731 | } else { |
0085ce49 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 | 1733 | } |
c32bde28 RD |
1734 | } |
1735 | ||
093d3ff1 RD |
1736 | SWIGRUNTIME PyObject * |
1737 | PySwigPacked_str(PySwigPacked *v) | |
1738 | { | |
1739 | char result[SWIG_BUFFER_SIZE]; | |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
0085ce49 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1742 | } else { |
0085ce49 | 1743 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1744 | } |
1745 | } | |
c32bde28 | 1746 | |
093d3ff1 RD |
1747 | SWIGRUNTIME int |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
c32bde28 | 1749 | { |
0085ce49 RD |
1750 | size_t i = v->size; |
1751 | size_t j = w->size; | |
1752 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1753 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
c32bde28 RD |
1754 | } |
1755 | ||
0085ce49 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
093d3ff1 RD |
1757 | |
1758 | SWIGRUNTIME PyTypeObject* | |
32fe5131 | 1759 | PySwigPacked_type(void) { |
0085ce49 RD |
1760 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1761 | return type; | |
1762 | } | |
1763 | ||
1764 | SWIGRUNTIMEINLINE int | |
1765 | PySwigPacked_Check(PyObject *op) { | |
1766 | return ((op)->ob_type == _PySwigPacked_type()) | |
1767 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1768 | } | |
1769 | ||
1770 | SWIGRUNTIME void | |
1771 | PySwigPacked_dealloc(PyObject *v) | |
1772 | { | |
1773 | if (PySwigPacked_Check(v)) { | |
1774 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1775 | free(sobj->pack); | |
1776 | } | |
1777 | PyObject_DEL(v); | |
1778 | } | |
1779 | ||
1780 | SWIGRUNTIME PyTypeObject* | |
1781 | _PySwigPacked_type(void) { | |
1782 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1783 | static PyTypeObject pyswigpacked_type; | |
1784 | static int type_init = 0; | |
1785 | if (!type_init) { | |
1786 | const PyTypeObject tmp | |
1787 | = { | |
1788 | PyObject_HEAD_INIT(NULL) | |
1789 | 0, /* ob_size */ | |
1790 | (char *)"PySwigPacked", /* tp_name */ | |
1791 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1792 | 0, /* tp_itemsize */ | |
1793 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1794 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1795 | (getattrfunc)0, /* tp_getattr */ | |
1796 | (setattrfunc)0, /* tp_setattr */ | |
1797 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1798 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1799 | 0, /* tp_as_number */ | |
1800 | 0, /* tp_as_sequence */ | |
1801 | 0, /* tp_as_mapping */ | |
1802 | (hashfunc)0, /* tp_hash */ | |
1803 | (ternaryfunc)0, /* tp_call */ | |
1804 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1805 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1806 | 0, /* tp_setattro */ | |
1807 | 0, /* tp_as_buffer */ | |
1808 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1809 | swigpacked_doc, /* tp_doc */ | |
1810 | 0, /* tp_traverse */ | |
1811 | 0, /* tp_clear */ | |
1812 | 0, /* tp_richcompare */ | |
1813 | 0, /* tp_weaklistoffset */ | |
1814 | #if PY_VERSION_HEX >= 0x02020000 | |
1815 | 0, /* tp_iter */ | |
1816 | 0, /* tp_iternext */ | |
1817 | 0, /* tp_methods */ | |
1818 | 0, /* tp_members */ | |
1819 | 0, /* tp_getset */ | |
1820 | 0, /* tp_base */ | |
1821 | 0, /* tp_dict */ | |
1822 | 0, /* tp_descr_get */ | |
1823 | 0, /* tp_descr_set */ | |
1824 | 0, /* tp_dictoffset */ | |
1825 | 0, /* tp_init */ | |
1826 | 0, /* tp_alloc */ | |
1827 | 0, /* tp_new */ | |
1828 | 0, /* tp_free */ | |
1829 | 0, /* tp_is_gc */ | |
1830 | 0, /* tp_bases */ | |
1831 | 0, /* tp_mro */ | |
1832 | 0, /* tp_cache */ | |
1833 | 0, /* tp_subclasses */ | |
1834 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1835 | #endif |
1836 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1837 | 0, /* tp_del */ |
093d3ff1 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1841 | #endif |
0085ce49 | 1842 | }; |
32fe5131 | 1843 | pyswigpacked_type = tmp; |
0085ce49 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1845 | type_init = 1; |
1846 | } | |
32fe5131 | 1847 | return &pyswigpacked_type; |
093d3ff1 RD |
1848 | } |
1849 | ||
1850 | SWIGRUNTIME PyObject * | |
0085ce49 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
c32bde28 | 1852 | { |
0085ce49 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
093d3ff1 | 1855 | void *pack = malloc(size); |
32fe5131 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
0085ce49 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
32fe5131 | 1864 | } |
093d3ff1 | 1865 | } |
0085ce49 | 1866 | return (PyObject *) sobj; |
994141e6 RD |
1867 | } |
1868 | ||
0085ce49 | 1869 | SWIGRUNTIME swig_type_info * |
093d3ff1 RD |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1871 | { | |
0085ce49 RD |
1872 | if (PySwigPacked_Check(obj)) { |
1873 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1874 | if (sobj->size != size) return 0; | |
1875 | memcpy(ptr, sobj->pack, size); | |
1876 | return sobj->ty; | |
1877 | } else { | |
1878 | return 0; | |
1879 | } | |
093d3ff1 | 1880 | } |
15afbcd0 | 1881 | |
093d3ff1 | 1882 | /* ----------------------------------------------------------------------------- |
0085ce49 | 1883 | * pointers/data manipulation |
093d3ff1 RD |
1884 | * ----------------------------------------------------------------------------- */ |
1885 | ||
0085ce49 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
093d3ff1 | 1891 | |
0085ce49 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
093d3ff1 | 1898 | |
0085ce49 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
093d3ff1 | 1900 | |
0085ce49 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
15afbcd0 | 1903 | { |
0085ce49 RD |
1904 | if (PySwigObject_Check(pyobj)) { |
1905 | return (PySwigObject *) pyobj; | |
1906 | } else { | |
1907 | PyObject *obj = 0; | |
1908 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1909 | if (PyInstance_Check(pyobj)) { | |
1910 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1911 | } else { | |
1912 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1913 | if (dictptr != NULL) { | |
1914 | PyObject *dict = *dictptr; | |
1915 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1916 | } else { | |
1917 | #ifdef PyWeakref_CheckProxy | |
1918 | if (PyWeakref_CheckProxy(pyobj)) { | |
1919 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1920 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1921 | } | |
1922 | #endif | |
1923 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1924 | if (obj) { | |
1925 | Py_DECREF(obj); | |
093d3ff1 | 1926 | } else { |
0085ce49 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
093d3ff1 | 1929 | } |
093d3ff1 | 1930 | } |
0085ce49 RD |
1931 | } |
1932 | #else | |
1933 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1934 | if (obj) { | |
1935 | Py_DECREF(obj); | |
1936 | } else { | |
1937 | if (PyErr_Occurred()) PyErr_Clear(); | |
1938 | return 0; | |
1939 | } | |
1940 | #endif | |
1941 | if (obj && !PySwigObject_Check(obj)) { | |
1942 | /* a PyObject is called 'this', try to get the 'real this' | |
1943 | PySwigObject from it */ | |
1944 | return SWIG_Python_GetSwigThis(obj); | |
1945 | } | |
1946 | return (PySwigObject *)obj; | |
15afbcd0 | 1947 | } |
15afbcd0 RD |
1948 | } |
1949 | ||
0085ce49 RD |
1950 | /* Acquire a pointer value */ |
1951 | ||
1952 | SWIGRUNTIME int | |
1953 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1954 | if (own) { | |
1955 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1956 | if (sobj) { | |
1957 | int oldown = sobj->own; | |
1958 | sobj->own = own; | |
1959 | return oldown; | |
1960 | } | |
093d3ff1 | 1961 | } |
0085ce49 | 1962 | return 0; |
994141e6 RD |
1963 | } |
1964 | ||
0085ce49 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
093d3ff1 | 1967 | SWIGRUNTIME int |
0085ce49 RD |
1968 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1969 | if (!obj) return SWIG_ERROR; | |
1970 | if (obj == Py_None) { | |
1971 | if (ptr) *ptr = 0; | |
1972 | return SWIG_OK; | |
1973 | } else { | |
1974 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1975 | while (sobj) { | |
1976 | void *vptr = sobj->ptr; | |
1977 | if (ty) { | |
1978 | swig_type_info *to = sobj->ty; | |
1979 | if (to == ty) { | |
1980 | /* no type cast needed */ | |
1981 | if (ptr) *ptr = vptr; | |
1982 | break; | |
1983 | } else { | |
1984 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1985 | if (!tc) { | |
1986 | sobj = (PySwigObject *)sobj->next; | |
1987 | } else { | |
1988 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1989 | break; | |
1990 | } | |
1991 | } | |
093d3ff1 | 1992 | } else { |
0085ce49 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
093d3ff1 | 1995 | } |
093d3ff1 | 1996 | } |
0085ce49 RD |
1997 | if (sobj) { |
1998 | if (own) *own = sobj->own; | |
1999 | if (flags & SWIG_POINTER_DISOWN) { | |
2000 | sobj->own = 0; | |
2001 | } | |
2002 | return SWIG_OK; | |
2003 | } else { | |
2004 | int res = SWIG_ERROR; | |
2005 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2006 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2007 | if (data && !data->implicitconv) { | |
2008 | PyObject *klass = data->klass; | |
2009 | if (klass) { | |
2010 | PyObject *impconv; | |
2011 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2012 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2013 | data->implicitconv = 0; | |
2014 | if (PyErr_Occurred()) { | |
2015 | PyErr_Clear(); | |
2016 | impconv = 0; | |
2017 | } | |
2018 | if (impconv) { | |
2019 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2020 | if (iobj) { | |
2021 | void *vptr; | |
2022 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2023 | if (SWIG_IsOK(res)) { | |
2024 | if (ptr) { | |
2025 | *ptr = vptr; | |
2026 | /* transfer the ownership to 'ptr' */ | |
2027 | iobj->own = 0; | |
2028 | res = SWIG_AddCast(res); | |
2029 | res = SWIG_AddNewMask(res); | |
2030 | } else { | |
2031 | res = SWIG_AddCast(res); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | Py_DECREF(impconv); | |
2036 | } | |
2037 | } | |
2038 | } | |
2039 | } | |
2040 | return res; | |
2041 | } | |
093d3ff1 RD |
2042 | } |
2043 | } | |
994141e6 | 2044 | |
0085ce49 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
093d3ff1 | 2047 | SWIGRUNTIME int |
0085ce49 RD |
2048 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2049 | if (!PyCFunction_Check(obj)) { | |
2050 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
093d3ff1 | 2051 | } else { |
0085ce49 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
d1a49b78 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
0085ce49 RD |
2056 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2057 | if (desc) { | |
2058 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2059 | if (!desc) return SWIG_ERROR; | |
2060 | } | |
2061 | if (ty) { | |
2062 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2063 | if (!tc) return SWIG_ERROR; | |
2064 | *ptr = SWIG_TypeCast(tc,vptr); | |
2065 | } else { | |
2066 | *ptr = vptr; | |
2067 | } | |
2068 | return SWIG_OK; | |
093d3ff1 RD |
2069 | } |
2070 | } | |
d14a1e28 | 2071 | |
0085ce49 | 2072 | /* Convert a packed value value */ |
093d3ff1 | 2073 | |
093d3ff1 | 2074 | SWIGRUNTIME int |
0085ce49 RD |
2075 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2076 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2077 | if (!to) return SWIG_ERROR; | |
2078 | if (ty) { | |
2079 | if (to != ty) { | |
2080 | /* check type cast? */ | |
2081 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2082 | if (!tc) return SWIG_ERROR; | |
2083 | } | |
7e63a440 | 2084 | } |
0085ce49 RD |
2085 | return SWIG_OK; |
2086 | } | |
d14a1e28 | 2087 | |
0085ce49 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
c32bde28 | 2091 | |
0085ce49 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
d14a1e28 | 2096 | |
0085ce49 RD |
2097 | SWIGRUNTIME PyObject* |
2098 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2099 | { | |
2100 | #if (PY_VERSION_HEX >= 0x02020000) | |
2101 | PyObject *inst = 0; | |
2102 | PyObject *newraw = data->newraw; | |
2103 | if (newraw) { | |
2104 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2105 | if (inst) { | |
2106 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2107 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2108 | if (dictptr != NULL) { | |
2109 | PyObject *dict = *dictptr; | |
2110 | if (dict == NULL) { | |
2111 | dict = PyDict_New(); | |
2112 | *dictptr = dict; | |
2113 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2114 | } | |
093d3ff1 | 2115 | } |
0085ce49 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
093d3ff1 | 2120 | } |
0085ce49 RD |
2121 | } else { |
2122 | PyObject *dict = PyDict_New(); | |
2123 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2124 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2125 | Py_DECREF(dict); | |
093d3ff1 | 2126 | } |
0085ce49 RD |
2127 | return inst; |
2128 | #else | |
2129 | #if (PY_VERSION_HEX >= 0x02010000) | |
2130 | PyObject *inst; | |
2131 | PyObject *dict = PyDict_New(); | |
2132 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2133 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2134 | Py_DECREF(dict); | |
2135 | return (PyObject *) inst; | |
2136 | #else | |
2137 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2138 | if (inst == NULL) { | |
2139 | return NULL; | |
093d3ff1 | 2140 | } |
0085ce49 RD |
2141 | inst->in_class = (PyClassObject *)data->newargs; |
2142 | Py_INCREF(inst->in_class); | |
2143 | inst->in_dict = PyDict_New(); | |
2144 | if (inst->in_dict == NULL) { | |
2145 | Py_DECREF(inst); | |
2146 | return NULL; | |
093d3ff1 | 2147 | } |
0085ce49 RD |
2148 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2149 | inst->in_weakreflist = NULL; | |
2150 | #endif | |
2151 | #ifdef Py_TPFLAGS_GC | |
2152 | PyObject_GC_Init(inst); | |
2153 | #endif | |
2154 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2155 | return (PyObject *) inst; | |
2156 | #endif | |
2157 | #endif | |
093d3ff1 | 2158 | } |
d14a1e28 | 2159 | |
0085ce49 RD |
2160 | SWIGRUNTIME void |
2161 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2162 | { | |
2163 | PyObject *dict; | |
2164 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2165 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2166 | if (dictptr != NULL) { | |
2167 | dict = *dictptr; | |
2168 | if (dict == NULL) { | |
2169 | dict = PyDict_New(); | |
2170 | *dictptr = dict; | |
2171 | } | |
2172 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2173 | return; | |
2174 | } | |
093d3ff1 | 2175 | #endif |
0085ce49 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
d14a1e28 | 2180 | |
0085ce49 RD |
2181 | |
2182 | SWIGINTERN PyObject * | |
2183 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2184 | PyObject *obj[2]; | |
2185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2186 | return NULL; | |
2187 | } else { | |
2188 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2189 | if (sthis) { | |
2190 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
093d3ff1 | 2191 | } else { |
0085ce49 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2193 | } |
0085ce49 | 2194 | return SWIG_Py_Void(); |
15afbcd0 | 2195 | } |
0085ce49 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
093d3ff1 | 2199 | |
093d3ff1 | 2200 | SWIGRUNTIME PyObject * |
0085ce49 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2202 | if (!ptr) { |
0085ce49 RD |
2203 | return SWIG_Py_Void(); |
2204 | } else { | |
2205 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2206 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2207 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2208 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2209 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2210 | if (inst) { | |
2211 | Py_DECREF(robj); | |
2212 | robj = inst; | |
093d3ff1 | 2213 | } |
093d3ff1 | 2214 | } |
0085ce49 | 2215 | return robj; |
093d3ff1 | 2216 | } |
c32bde28 RD |
2217 | } |
2218 | ||
0085ce49 RD |
2219 | /* Create a new packed object */ |
2220 | ||
2221 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2222 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
0085ce49 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
994141e6 RD |
2224 | } |
2225 | ||
093d3ff1 RD |
2226 | /* -----------------------------------------------------------------------------* |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
2229 | ||
2230 | #ifdef SWIG_LINK_RUNTIME | |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
2233 | ||
32fe5131 RD |
2234 | SWIGRUNTIME swig_module_info * |
2235 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
2236 | static void *type_pointer = (void *)0; |
2237 | /* first check if module already created */ | |
2238 | if (!type_pointer) { | |
2239 | #ifdef SWIG_LINK_RUNTIME | |
2240 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
15afbcd0 | 2241 | #else |
093d3ff1 RD |
2242 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, |
2243 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2244 | if (PyErr_Occurred()) { | |
2245 | PyErr_Clear(); | |
2246 | type_pointer = (void *)0; | |
2247 | } | |
15afbcd0 | 2248 | #endif |
32fe5131 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 2251 | } |
d14a1e28 | 2252 | |
32fe5131 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
0085ce49 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2256 | SWIGINTERN int |
2257 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2258 | { | |
2259 | PyObject *dict; | |
2260 | if (!PyModule_Check(m)) { | |
2261 | PyErr_SetString(PyExc_TypeError, | |
2262 | "PyModule_AddObject() needs module as first arg"); | |
0085ce49 | 2263 | return SWIG_ERROR; |
32fe5131 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
0085ce49 | 2268 | return SWIG_ERROR; |
32fe5131 RD |
2269 | } |
2270 | ||
2271 | dict = PyModule_GetDict(m); | |
2272 | if (dict == NULL) { | |
2273 | /* Internal error -- modules must have a dict! */ | |
2274 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2275 | PyModule_GetName(m)); | |
0085ce49 | 2276 | return SWIG_ERROR; |
32fe5131 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
0085ce49 | 2279 | return SWIG_ERROR; |
32fe5131 | 2280 | Py_DECREF(o); |
0085ce49 | 2281 | return SWIG_OK; |
093d3ff1 | 2282 | } |
32fe5131 | 2283 | #endif |
d14a1e28 | 2284 | |
0085ce49 RD |
2285 | SWIGRUNTIME void |
2286 | SWIG_Python_DestroyModule(void *vptr) | |
2287 | { | |
2288 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2289 | swig_type_info **types = swig_module->types; | |
2290 | size_t i; | |
2291 | for (i =0; i < swig_module->size; ++i) { | |
2292 | swig_type_info *ty = types[i]; | |
2293 | if (ty->owndata) { | |
2294 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2295 | if (data) PySwigClientData_Del(data); | |
2296 | } | |
2297 | } | |
2298 | Py_DECREF(SWIG_This()); | |
2299 | } | |
2300 | ||
32fe5131 RD |
2301 | SWIGRUNTIME void |
2302 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2303 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2304 | ||
2305 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2306 | swig_empty_runtime_method_table); | |
0085ce49 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
0085ce49 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
32fe5131 RD |
2312 | } |
2313 | } | |
d14a1e28 | 2314 | |
0085ce49 RD |
2315 | /* The python cached type query */ |
2316 | SWIGRUNTIME PyObject * | |
2317 | SWIG_Python_TypeCache() { | |
2318 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2319 | return cache; | |
093d3ff1 | 2320 | } |
d14a1e28 | 2321 | |
0085ce49 RD |
2322 | SWIGRUNTIME swig_type_info * |
2323 | SWIG_Python_TypeQuery(const char *type) | |
2324 | { | |
2325 | PyObject *cache = SWIG_Python_TypeCache(); | |
2326 | PyObject *key = PyString_FromString(type); | |
2327 | PyObject *obj = PyDict_GetItem(cache, key); | |
2328 | swig_type_info *descriptor; | |
2329 | if (obj) { | |
2330 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2331 | } else { | |
2332 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2333 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2334 | if (descriptor) { | |
2335 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2336 | PyDict_SetItem(cache, key, obj); | |
2337 | Py_DECREF(obj); | |
2338 | } | |
2339 | } | |
2340 | Py_DECREF(key); | |
2341 | return descriptor; | |
2342 | } | |
2343 | ||
2344 | /* | |
2345 | For backward compatibility only | |
2346 | */ | |
2347 | #define SWIG_POINTER_EXCEPTION 0 | |
2348 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2349 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2350 | ||
2351 | SWIGRUNTIME int | |
2352 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2353 | { | |
2354 | if (PyErr_Occurred()) { | |
2355 | PyObject *type = 0; | |
2356 | PyObject *value = 0; | |
2357 | PyObject *traceback = 0; | |
2358 | PyErr_Fetch(&type, &value, &traceback); | |
2359 | if (value) { | |
2360 | PyObject *old_str = PyObject_Str(value); | |
2361 | Py_XINCREF(type); | |
2362 | PyErr_Clear(); | |
2363 | if (infront) { | |
2364 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2365 | } else { | |
2366 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2367 | } | |
2368 | Py_DECREF(old_str); | |
2369 | } | |
2370 | return 1; | |
2371 | } else { | |
2372 | return 0; | |
2373 | } | |
2374 | } | |
2375 | ||
2376 | SWIGRUNTIME int | |
2377 | SWIG_Python_ArgFail(int argnum) | |
2378 | { | |
2379 | if (PyErr_Occurred()) { | |
2380 | /* add information about failing argument */ | |
2381 | char mesg[256]; | |
2382 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2383 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2384 | } else { | |
2385 | return 0; | |
2386 | } | |
2387 | } | |
2388 | ||
2389 | SWIGRUNTIMEINLINE const char * | |
2390 | PySwigObject_GetDesc(PyObject *self) | |
2391 | { | |
2392 | PySwigObject *v = (PySwigObject *)self; | |
2393 | swig_type_info *ty = v ? v->ty : 0; | |
2394 | return ty ? ty->str : (char*)""; | |
2395 | } | |
2396 | ||
2397 | SWIGRUNTIME void | |
2398 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2399 | { | |
2400 | if (type) { | |
2401 | #if defined(SWIG_COBJECT_TYPES) | |
2402 | if (obj && PySwigObject_Check(obj)) { | |
2403 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2404 | if (otype) { | |
2405 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2406 | type, otype); | |
2407 | return; | |
2408 | } | |
2409 | } else | |
2410 | #endif | |
2411 | { | |
2412 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2413 | if (otype) { | |
2414 | PyObject *str = PyObject_Str(obj); | |
2415 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2416 | if (cstr) { | |
2417 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2418 | type, otype, cstr); | |
2419 | } else { | |
2420 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2421 | type, otype); | |
2422 | } | |
2423 | Py_XDECREF(str); | |
2424 | return; | |
2425 | } | |
2426 | } | |
2427 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2428 | } else { | |
2429 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2430 | } | |
2431 | } | |
2432 | ||
2433 | ||
2434 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2435 | SWIGRUNTIME void * | |
2436 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2437 | void *result; | |
2438 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2439 | PyErr_Clear(); | |
2440 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2441 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2442 | SWIG_Python_ArgFail(argnum); | |
2443 | } | |
2444 | } | |
2445 | return result; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | #ifdef __cplusplus | |
2450 | #if 0 | |
2451 | { /* cc-mode */ | |
2452 | #endif | |
2453 | } | |
2454 | #endif | |
2455 | ||
2456 | ||
2457 | ||
2458 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2459 | ||
2460 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2461 | ||
2462 | ||
2463 | ||
2464 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2465 | ||
fc46b7f3 RD |
2466 | #define SWIGTYPE_p_buffer swig_types[0] |
2467 | #define SWIGTYPE_p_char swig_types[1] | |
2468 | #define SWIGTYPE_p_double swig_types[2] | |
2469 | #define SWIGTYPE_p_form_ops_t swig_types[3] | |
2470 | #define SWIGTYPE_p_int swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_char swig_types[5] | |
2472 | #define SWIGTYPE_p_unsigned_int swig_types[6] | |
2473 | #define SWIGTYPE_p_unsigned_long swig_types[7] | |
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] | |
ddeca22c RD |
2489 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[23] |
2490 | #define SWIGTYPE_p_wxClientDC swig_types[24] | |
2491 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[25] | |
2492 | #define SWIGTYPE_p_wxCloseEvent swig_types[26] | |
2493 | #define SWIGTYPE_p_wxColour swig_types[27] | |
2494 | #define SWIGTYPE_p_wxColourDatabase swig_types[28] | |
2495 | #define SWIGTYPE_p_wxCommandEvent swig_types[29] | |
2496 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[30] | |
2497 | #define SWIGTYPE_p_wxControl swig_types[31] | |
2498 | #define SWIGTYPE_p_wxControlWithItems swig_types[32] | |
2499 | #define SWIGTYPE_p_wxCursor swig_types[33] | |
2500 | #define SWIGTYPE_p_wxDC swig_types[34] | |
2501 | #define SWIGTYPE_p_wxDCBrushChanger swig_types[35] | |
2502 | #define SWIGTYPE_p_wxDCClipper swig_types[36] | |
2503 | #define SWIGTYPE_p_wxDCOverlay swig_types[37] | |
2504 | #define SWIGTYPE_p_wxDCPenChanger swig_types[38] | |
2505 | #define SWIGTYPE_p_wxDCTextColourChanger swig_types[39] | |
2506 | #define SWIGTYPE_p_wxDash swig_types[40] | |
2507 | #define SWIGTYPE_p_wxDateEvent swig_types[41] | |
2508 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[42] | |
2509 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[43] | |
2510 | #define SWIGTYPE_p_wxDuplexMode swig_types[44] | |
2511 | #define SWIGTYPE_p_wxEffects swig_types[45] | |
2512 | #define SWIGTYPE_p_wxEncodingConverter swig_types[46] | |
2513 | #define SWIGTYPE_p_wxEraseEvent swig_types[47] | |
2514 | #define SWIGTYPE_p_wxEvent swig_types[48] | |
2515 | #define SWIGTYPE_p_wxEventBlocker swig_types[49] | |
2516 | #define SWIGTYPE_p_wxEvtHandler swig_types[50] | |
2517 | #define SWIGTYPE_p_wxFSFile swig_types[51] | |
2518 | #define SWIGTYPE_p_wxFileSystem swig_types[52] | |
2519 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[53] | |
2520 | #define SWIGTYPE_p_wxFocusEvent swig_types[54] | |
2521 | #define SWIGTYPE_p_wxFont swig_types[55] | |
2522 | #define SWIGTYPE_p_wxFontList swig_types[56] | |
2523 | #define SWIGTYPE_p_wxFontMapper swig_types[57] | |
2524 | #define SWIGTYPE_p_wxGBSizerItem swig_types[58] | |
2525 | #define SWIGTYPE_p_wxGCDC swig_types[59] | |
2526 | #define SWIGTYPE_p_wxGDIObjListBase swig_types[60] | |
2527 | #define SWIGTYPE_p_wxGDIObject swig_types[61] | |
2528 | #define SWIGTYPE_p_wxGIFHandler swig_types[62] | |
2529 | #define SWIGTYPE_p_wxGraphicsBrush swig_types[63] | |
2530 | #define SWIGTYPE_p_wxGraphicsContext swig_types[64] | |
2531 | #define SWIGTYPE_p_wxGraphicsFont swig_types[65] | |
2532 | #define SWIGTYPE_p_wxGraphicsMatrix swig_types[66] | |
2533 | #define SWIGTYPE_p_wxGraphicsObject swig_types[67] | |
2534 | #define SWIGTYPE_p_wxGraphicsPath swig_types[68] | |
2535 | #define SWIGTYPE_p_wxGraphicsPen swig_types[69] | |
2536 | #define SWIGTYPE_p_wxGraphicsRenderer swig_types[70] | |
2537 | #define SWIGTYPE_p_wxGridBagSizer swig_types[71] | |
2538 | #define SWIGTYPE_p_wxGridSizer swig_types[72] | |
2539 | #define SWIGTYPE_p_wxHeaderButtonParams swig_types[73] | |
2540 | #define SWIGTYPE_p_wxICOHandler swig_types[74] | |
2541 | #define SWIGTYPE_p_wxIcon swig_types[75] | |
2542 | #define SWIGTYPE_p_wxIconBundle swig_types[76] | |
2543 | #define SWIGTYPE_p_wxIconLocation swig_types[77] | |
2544 | #define SWIGTYPE_p_wxIconizeEvent swig_types[78] | |
2545 | #define SWIGTYPE_p_wxIdleEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxImage swig_types[80] | |
2547 | #define SWIGTYPE_p_wxImageHandler swig_types[81] | |
2548 | #define SWIGTYPE_p_wxImageList swig_types[82] | |
2549 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83] | |
2550 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[84] | |
2551 | #define SWIGTYPE_p_wxJPEGHandler swig_types[85] | |
2552 | #define SWIGTYPE_p_wxKeyEvent swig_types[86] | |
2553 | #define SWIGTYPE_p_wxLanguageInfo swig_types[87] | |
2554 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[88] | |
2555 | #define SWIGTYPE_p_wxLocale swig_types[89] | |
2556 | #define SWIGTYPE_p_wxMask swig_types[90] | |
2557 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[91] | |
2558 | #define SWIGTYPE_p_wxMemoryDC swig_types[92] | |
2559 | #define SWIGTYPE_p_wxMenu swig_types[93] | |
2560 | #define SWIGTYPE_p_wxMenuBar swig_types[94] | |
2561 | #define SWIGTYPE_p_wxMenuEvent swig_types[95] | |
2562 | #define SWIGTYPE_p_wxMenuItem swig_types[96] | |
2563 | #define SWIGTYPE_p_wxMetaFile swig_types[97] | |
2564 | #define SWIGTYPE_p_wxMetaFileDC swig_types[98] | |
2565 | #define SWIGTYPE_p_wxMirrorDC swig_types[99] | |
2566 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100] | |
2567 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101] | |
2568 | #define SWIGTYPE_p_wxMouseEvent swig_types[102] | |
2569 | #define SWIGTYPE_p_wxMoveEvent swig_types[103] | |
2570 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104] | |
2571 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[105] | |
2572 | #define SWIGTYPE_p_wxNativePixelData swig_types[106] | |
2573 | #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107] | |
2574 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108] | |
2575 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[109] | |
2576 | #define SWIGTYPE_p_wxNotifyEvent swig_types[110] | |
2577 | #define SWIGTYPE_p_wxObject swig_types[111] | |
2578 | #define SWIGTYPE_p_wxOverlay swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPCXHandler swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPNGHandler swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPNMHandler swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPaintDC swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPaintEvent swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPalette swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPaperSize swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPen swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPenList swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPixelDataBase swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPoint swig_types[124] | |
2591 | #define SWIGTYPE_p_wxPoint2D swig_types[125] | |
2592 | #define SWIGTYPE_p_wxPostScriptDC swig_types[126] | |
2593 | #define SWIGTYPE_p_wxPrintData swig_types[127] | |
2594 | #define SWIGTYPE_p_wxPrinterDC swig_types[128] | |
2595 | #define SWIGTYPE_p_wxPseudoDC swig_types[129] | |
2596 | #define SWIGTYPE_p_wxPyApp swig_types[130] | |
2597 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[131] | |
2598 | #define SWIGTYPE_p_wxPyEvent swig_types[132] | |
2599 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[133] | |
2600 | #define SWIGTYPE_p_wxPyImageHandler swig_types[134] | |
2601 | #define SWIGTYPE_p_wxPyLocale swig_types[135] | |
2602 | #define SWIGTYPE_p_wxPySizer swig_types[136] | |
2603 | #define SWIGTYPE_p_wxPyValidator swig_types[137] | |
2604 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138] | |
2605 | #define SWIGTYPE_p_wxRect swig_types[139] | |
2606 | #define SWIGTYPE_p_wxRect2D swig_types[140] | |
2607 | #define SWIGTYPE_p_wxRegion swig_types[141] | |
2608 | #define SWIGTYPE_p_wxRegionIterator swig_types[142] | |
2609 | #define SWIGTYPE_p_wxRendererNative swig_types[143] | |
2610 | #define SWIGTYPE_p_wxRendererVersion swig_types[144] | |
a7830320 RD |
2611 | #define SWIGTYPE_p_wxSVGFileDC 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}; | |
32fe5131 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) | |
d14a1e28 | 2640 | |
093d3ff1 | 2641 | /* -------- TYPES TABLE (END) -------- */ |
d14a1e28 | 2642 | |
0085ce49 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 | |
d14a1e28 | 2657 | |
093d3ff1 RD |
2658 | /*----------------------------------------------- |
2659 | @(target):= _gdi_.so | |
2660 | ------------------------------------------------*/ | |
2661 | #define SWIG_init init_gdi_ | |
d14a1e28 | 2662 | |
093d3ff1 | 2663 | #define SWIG_name "_gdi_" |
d14a1e28 | 2664 | |
0085ce49 | 2665 | #define SWIGVERSION 0x010329 |
d14a1e28 | 2666 | |
d14a1e28 | 2667 | |
0085ce49 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)) | |
d14a1e28 RD |
2670 | |
2671 | ||
0085ce49 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 | } |
0085ce49 RD |
2684 | |
2685 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2686 | { | |
2687 | Py_XINCREF(_obj); | |
093d3ff1 | 2688 | } |
0085ce49 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 | } |
d14a1e28 | 2719 | |
994141e6 | 2720 | |
0085ce49 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; | |
69223c70 | 2730 | } |
0085ce49 | 2731 | }; |
15afbcd0 RD |
2732 | } |
2733 | ||
2734 | ||
0085ce49 RD |
2735 | #include "wx/wxPython/wxPython.h" |
2736 | #include "wx/wxPython/pyclasses.h" | |
2737 | ||
2738 | ||
2739 | static const wxString wxPyEmptyString(wxEmptyString); | |
2740 | ||
01f6b6d3 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 | ||
0085ce49 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 | |
b88bce5f | 2761 | |
b88bce5f | 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 |
0085ce49 | 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) { | |
0085ce49 | 2779 | return SWIG_TypeError; |
093d3ff1 RD |
2780 | } |
2781 | else if (val) | |
2782 | *val = (unsigned long)v; | |
0085ce49 | 2783 | return SWIG_OK; |
093d3ff1 | 2784 | } |
d14a1e28 RD |
2785 | |
2786 | ||
093d3ff1 | 2787 | SWIGINTERN int |
0085ce49 RD |
2788 | SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) |
2789 | { | |
093d3ff1 | 2790 | unsigned long v; |
0085ce49 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 { |
0085ce49 | 2796 | if (val) *val = static_cast< unsigned char >(v); |
093d3ff1 | 2797 | } |
0085ce49 RD |
2798 | } |
2799 | return res; | |
093d3ff1 | 2800 | } |
33b885b9 | 2801 | |
d14a1e28 | 2802 | |
0085ce49 RD |
2803 | SWIGINTERNINLINE PyObject* |
2804 | SWIG_From_unsigned_SS_long (unsigned long value) | |
093d3ff1 | 2805 | { |
0085ce49 RD |
2806 | return (value > LONG_MAX) ? |
2807 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
093d3ff1 | 2808 | } |
d14a1e28 | 2809 | |
d14a1e28 | 2810 | |
0085ce49 RD |
2811 | SWIGINTERNINLINE PyObject * |
2812 | SWIG_From_unsigned_SS_char (unsigned char value) | |
2813 | { | |
2814 | return SWIG_From_unsigned_SS_long (value); | |
2815 | } | |
d14a1e28 | 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 | } | |
0085ce49 | 2872 | SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){ |
093d3ff1 RD |
2873 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); |
2874 | } | |
d14a1e28 | 2875 | |
0085ce49 RD |
2876 | SWIGINTERN int |
2877 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2878 | { |
0085ce49 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; | |
d14a1e28 RD |
2889 | } |
2890 | ||
0085ce49 | 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 | } | |
0085ce49 | 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); | |
d14a1e28 | 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 | } | |
0085ce49 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; } | |
d14a1e28 | 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> |
b88bce5f | 2942 | |
093d3ff1 RD |
2943 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2944 | char** cArray = NULL; | |
2945 | int count; | |
2946 | ||
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]; | |
2953 | ||
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; | |
b88bce5f | 2959 | } |
b88bce5f RD |
2960 | |
2961 | ||
0085ce49 | 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 | } | |
0085ce49 | 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 | } | |
0085ce49 | 2979 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ |
093d3ff1 RD |
2980 | wxSize size(self->GetWidth(), self->GetHeight()); |
2981 | return size; | |
2982 | } | |
0085ce49 | 2983 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
093d3ff1 RD |
2984 | wxMask *mask = new wxMask(*self, colour); |
2985 | self->SetMask(mask); | |
2986 | } | |
0085ce49 | 2987 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
093d3ff1 RD |
2988 | self->SetWidth(size.x); |
2989 | self->SetHeight(size.y); | |
2990 | } | |
8f514ab4 RD |
2991 | SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){ |
2992 | int height=self->GetHeight(); | |
2993 | int width=self->GetWidth(); | |
fc46b7f3 | 2994 | |
8f514ab4 RD |
2995 | if (DATASIZE != width * height * 3) { |
2996 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2997 | } | |
2998 | wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
2999 | if (! pixData) { | |
3000 | // raise an exception... | |
3001 | wxPyErr_SetString(PyExc_RuntimeError, | |
3002 | "Failed to gain raw access to bitmap data."); | |
3003 | return; | |
3004 | } | |
fc46b7f3 | 3005 | |
8f514ab4 RD |
3006 | wxNativePixelData::Iterator p(pixData); |
3007 | for (int y=0; y<height; y++) { | |
3008 | wxNativePixelData::Iterator rowStart = p; | |
3009 | for (int x=0; x<width; x++) { | |
3010 | p.Red() = *(data++); | |
3011 | p.Green() = *(data++); | |
3012 | p.Blue() = *(data++); | |
3013 | ++p; | |
3014 | } | |
3015 | p = rowStart; | |
3016 | p.OffsetY(pixData, 1); | |
3017 | } | |
3018 | } | |
3019 | SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){ | |
3020 | int height=self->GetHeight(); | |
3021 | int width=self->GetWidth(); | |
3022 | ||
3023 | if (DATASIZE != width * height * 4) { | |
3024 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3025 | } | |
3026 | wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
3027 | if (! pixData) { | |
3028 | // raise an exception... | |
3029 | wxPyErr_SetString(PyExc_RuntimeError, | |
3030 | "Failed to gain raw access to bitmap data."); | |
3031 | return; | |
3032 | } | |
3033 | ||
3034 | pixData.UseAlpha(); | |
3035 | wxAlphaPixelData::Iterator p(pixData); | |
3036 | for (int y=0; y<height; y++) { | |
3037 | wxAlphaPixelData::Iterator rowStart = p; | |
3038 | for (int x=0; x<width; x++) { | |
3039 | byte a = data[3]; | |
3040 | p.Red() = wxPy_premultiply(*(data++), a); | |
3041 | p.Green() = wxPy_premultiply(*(data++), a); | |
3042 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3043 | p.Alpha() = a; data++; | |
3044 | ++p; | |
3045 | } | |
3046 | p = rowStart; | |
3047 | p.OffsetY(pixData, 1); | |
3048 | } | |
3049 | } | |
3050 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; } | |
3051 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; } | |
fc46b7f3 RD |
3052 | |
3053 | wxBitmap* _BitmapFromBufferAlpha(int width, int height, | |
3054 | buffer data, int DATASIZE, | |
3055 | buffer alpha, int ALPHASIZE) | |
3056 | { | |
3057 | if (DATASIZE != width*height*3) { | |
3058 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3059 | return NULL; | |
3060 | } | |
3061 | ||
3062 | if (ALPHASIZE != width*height) { | |
3063 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
3064 | return NULL; | |
3065 | } | |
3066 | ||
3067 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3068 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3069 | if (! pixData) { | |
3070 | // raise an exception... | |
3071 | wxPyErr_SetString(PyExc_RuntimeError, | |
3072 | "Failed to gain raw access to bitmap data."); | |
3073 | return NULL; | |
3074 | } | |
3075 | ||
3076 | pixData.UseAlpha(); | |
3077 | wxAlphaPixelData::Iterator p(pixData); | |
3078 | for (int y=0; y<height; y++) { | |
3079 | wxAlphaPixelData::Iterator rowStart = p; | |
3080 | for (int x=0; x<width; x++) { | |
3081 | byte a = *(alpha++); | |
3082 | p.Red() = wxPy_premultiply(*(data++), a); | |
3083 | p.Green() = wxPy_premultiply(*(data++), a); | |
3084 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3085 | p.Alpha() = a; | |
3086 | ++p; | |
3087 | } | |
3088 | p = rowStart; | |
3089 | p.OffsetY(pixData, 1); | |
3090 | } | |
3091 | return bmp; | |
3092 | } | |
3093 | ||
3094 | wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE) | |
3095 | { | |
3096 | if (DATASIZE != width*height*3) { | |
3097 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3098 | return NULL; | |
3099 | } | |
3100 | ||
3101 | wxBitmap* bmp = new wxBitmap(width, height, 24); | |
3102 | wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3103 | if (! pixData) { | |
3104 | // raise an exception... | |
3105 | wxPyErr_SetString(PyExc_RuntimeError, | |
3106 | "Failed to gain raw access to bitmap data."); | |
3107 | return NULL; | |
3108 | } | |
3109 | ||
3110 | wxNativePixelData::Iterator p(pixData); | |
3111 | for (int y=0; y<height; y++) { | |
3112 | wxNativePixelData::Iterator rowStart = p; | |
3113 | for (int x=0; x<width; x++) { | |
3114 | p.Red() = *(data++); | |
3115 | p.Green() = *(data++); | |
3116 | p.Blue() = *(data++); | |
3117 | ++p; | |
3118 | } | |
3119 | p = rowStart; | |
3120 | p.OffsetY(pixData, 1); | |
3121 | } | |
3122 | return bmp; | |
3123 | } | |
3124 | ||
3125 | ||
3126 | wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE) | |
3127 | { | |
3128 | if (DATASIZE != width*height*4) { | |
3129 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3130 | return NULL; | |
3131 | } | |
3132 | ||
3133 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3134 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3135 | if (! pixData) { | |
3136 | // raise an exception... | |
3137 | wxPyErr_SetString(PyExc_RuntimeError, | |
3138 | "Failed to gain raw access to bitmap data."); | |
3139 | return NULL; | |
3140 | } | |
3141 | ||
3142 | pixData.UseAlpha(); | |
3143 | wxAlphaPixelData::Iterator p(pixData); | |
3144 | for (int y=0; y<height; y++) { | |
3145 | wxAlphaPixelData::Iterator rowStart = p; | |
3146 | for (int x=0; x<width; x++) { | |
3147 | byte a = data[3]; | |
3148 | p.Red() = wxPy_premultiply(*(data++), a); | |
3149 | p.Green() = wxPy_premultiply(*(data++), a); | |
3150 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3151 | p.Alpha() = a; data++; | |
3152 | ++p; | |
3153 | } | |
3154 | p = rowStart; | |
3155 | p.OffsetY(pixData, 1); | |
3156 | } | |
3157 | return bmp; | |
3158 | } | |
3159 | ||
3160 | ||
3161 | typedef wxNativePixelData::Iterator wxNativePixelData_Accessor; | |
3162 | ||
3163 | SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); } | |
3164 | SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); } | |
3165 | SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){ | |
3166 | self->Red() = red; | |
3167 | self->Green() = green; | |
3168 | self->Blue() = blue; | |
3169 | } | |
3170 | SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){ | |
3171 | PyObject* rv = PyTuple_New(3); | |
3172 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3173 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3174 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3175 | return rv; | |
3176 | } | |
3177 | ||
3178 | typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor; | |
3179 | ||
3180 | SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); } | |
3181 | SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); } | |
3182 | SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){ | |
3183 | self->Red() = wxPy_premultiply(red, alpha); | |
3184 | self->Green() = wxPy_premultiply(green, alpha); | |
3185 | self->Blue() = wxPy_premultiply(blue, alpha); | |
3186 | self->Alpha() = alpha; | |
3187 | } | |
3188 | SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){ | |
3189 | PyObject* rv = PyTuple_New(4); | |
3190 | int red = self->Red(); | |
3191 | int green = self->Green(); | |
3192 | int blue = self->Blue(); | |
3193 | int alpha = self->Alpha(); | |
3194 | ||
3195 | PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) )); | |
3196 | PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) )); | |
3197 | PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) )); | |
3198 | PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha )); | |
3199 | return rv; | |
3200 | } | |
0085ce49 | 3201 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ |
b39fe951 | 3202 | if ( !colour.IsOk() ) |
093d3ff1 RD |
3203 | return new wxMask(bitmap, *wxBLACK); |
3204 | else | |
3205 | return new wxMask(bitmap, colour); | |
3206 | } | |
d14a1e28 | 3207 | |
093d3ff1 | 3208 | #include <wx/iconbndl.h> |
d14a1e28 | 3209 | |
0085ce49 | 3210 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
093d3ff1 RD |
3211 | wxIcon* icon = new wxIcon(); |
3212 | icon->CopyFromBitmap(bmp); | |
3213 | return icon; | |
3214 | } | |
0085ce49 | 3215 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
093d3ff1 RD |
3216 | char** cArray = NULL; |
3217 | wxIcon* icon; | |
d14a1e28 | 3218 | |
093d3ff1 RD |
3219 | cArray = ConvertListOfStrings(listOfStrings); |
3220 | if (! cArray) | |
3221 | return NULL; | |
3222 | icon = new wxIcon(cArray); | |
3223 | delete [] cArray; | |
3224 | return icon; | |
3225 | } | |
0085ce49 | 3226 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ |
d14a1e28 RD |
3227 | |
3228 | ||
d14a1e28 | 3229 | |
093d3ff1 | 3230 | return new wxIconLocation(*filename); |
d14a1e28 | 3231 | |
093d3ff1 | 3232 | } |
0085ce49 | 3233 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d14a1e28 RD |
3234 | |
3235 | ||
d14a1e28 | 3236 | |
093d3ff1 | 3237 | // do nothing |
d14a1e28 | 3238 | |
093d3ff1 | 3239 | } |
0085ce49 | 3240 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
b88bce5f RD |
3241 | |
3242 | ||
093d3ff1 RD |
3243 | |
3244 | return -1; | |
3245 | ||
3246 | } | |
8c3a7183 RD |
3247 | |
3248 | SWIGINTERNINLINE PyObject * | |
3249 | SWIG_From_size_t (size_t value) | |
3250 | { | |
3251 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3252 | } | |
3253 | ||
3254 | ||
3255 | SWIGINTERNINLINE int | |
3256 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3257 | { | |
3258 | unsigned long v; | |
3259 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3260 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3261 | return res; | |
3262 | } | |
3263 | ||
0085ce49 | 3264 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 3265 | #ifdef __WXGTK__ |
7557b9b5 RD |
3266 | wxImage img(cursorName, type); |
3267 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
3268 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
3269 | return new wxCursor(img); | |
093d3ff1 | 3270 | #else |
7557b9b5 | 3271 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
3272 | #endif |
3273 | } | |
3274 | ||
3275 | ||
0085ce49 | 3276 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
093d3ff1 RD |
3277 | (*self) ++; |
3278 | } | |
0085ce49 | 3279 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
093d3ff1 RD |
3280 | return self->operator bool(); |
3281 | } | |
3282 | ||
3283 | #include <wx/fontutil.h> | |
3284 | #include <wx/fontmap.h> | |
3285 | #include <wx/fontenum.h> | |
3286 | ||
0085ce49 | 3287 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
093d3ff1 RD |
3288 | return self->ToString(); |
3289 | } | |
3290 | ||
3291 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
3292 | static wxNativeEncodingInfo info; | |
3293 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
3294 | return &info; | |
3295 | else | |
3296 | return NULL; | |
3297 | } | |
3298 | ||
0085ce49 | 3299 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ |
093d3ff1 RD |
3300 | wxFontEncoding alt_enc; |
3301 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3302 | return PyInt_FromLong(alt_enc); | |
3303 | else { | |
3304 | Py_INCREF(Py_None); | |
3305 | return Py_None; | |
3306 | } | |
3307 | } | |
0085ce49 | 3308 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3309 | wxNativeFontInfo nfi; |
3310 | nfi.FromString(info); | |
3311 | return new wxFont(nfi); | |
3312 | } | |
0085ce49 | 3313 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3314 | return wxFont::New(pointSize, family, flags, face, encoding); |
3315 | } | |
0085ce49 | 3316 | 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 |
3317 | return wxFontBase::New(pixelSize, family, |
3318 | style, weight, underlined, | |
3319 | face, encoding); | |
3320 | } | |
0085ce49 | 3321 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3322 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3323 | } | |
0085ce49 RD |
3324 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3325 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
093d3ff1 RD |
3326 | |
3327 | class wxPyFontEnumerator : public wxFontEnumerator { | |
3328 | public: | |
3329 | wxPyFontEnumerator() {} | |
3330 | ~wxPyFontEnumerator() {} | |
3331 | ||
3332 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
3333 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
3334 | ||
3335 | PYPRIVATE; | |
3336 | }; | |
3337 | ||
3338 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
3339 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
3340 | ||
3341 | ||
704eda0c | 3342 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){ |
e9d6f3a4 | 3343 | PyObject* ret; |
704eda0c | 3344 | wxArrayString arr = wxFontEnumerator::GetEncodings(); |
e9d6f3a4 | 3345 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3346 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3347 | wxPyEndBlockThreads(blocked); |
3348 | return ret; | |
093d3ff1 | 3349 | } |
704eda0c | 3350 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){ |
e9d6f3a4 | 3351 | PyObject* ret; |
704eda0c | 3352 | wxArrayString arr = wxFontEnumerator::GetFacenames(); |
e9d6f3a4 | 3353 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3354 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3355 | wxPyEndBlockThreads(blocked); |
3356 | return ret; | |
093d3ff1 RD |
3357 | } |
3358 | ||
3359 | #include <locale.h> | |
3360 | ||
0085ce49 | 3361 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3362 | wxLocale* loc; |
3363 | if (language == -1) | |
3364 | loc = new wxLocale(); | |
3365 | else | |
3366 | loc = new wxLocale(language, flags); | |
3367 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3368 | // for the floating point conversions and such to work right. | |
3369 | #if PY_VERSION_HEX < 0x02040000 | |
3370 | setlocale(LC_NUMERIC, "C"); | |
3371 | #endif | |
3372 | return loc; | |
3373 | } | |
ddeca22c RD |
3374 | SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &name,wxString const &shortName=wxPyEmptyString,wxString const &locale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){ |
3375 | bool rc = self->Init(name, shortName, locale, bLoadDefault, bConvertEncoding); | |
093d3ff1 RD |
3376 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order |
3377 | // for the floating point conversions and such to work right. | |
3378 | #if PY_VERSION_HEX < 0x02040000 | |
3379 | setlocale(LC_NUMERIC, "C"); | |
3380 | #endif | |
3381 | return rc; | |
3382 | } | |
0085ce49 | 3383 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3384 | bool rc = self->Init(language, flags); |
3385 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3386 | // for the floating point conversions and such to work right. | |
3387 | #if PY_VERSION_HEX < 0x02040000 | |
3388 | setlocale(LC_NUMERIC, "C"); | |
3389 | #endif | |
3390 | return rc; | |
3391 | } | |
3392 | ||
fc46b7f3 RD |
3393 | class wxPyLocale : public wxLocale |
3394 | { | |
3395 | public: | |
3396 | wxPyLocale(); | |
3397 | ||
ddeca22c RD |
3398 | wxPyLocale(const wxString& name, // name (for messages) |
3399 | const wxString& shortName = wxPyEmptyString, // dir prefix (for msg files) | |
3400 | const wxString& locale = wxPyEmptyString, // locale (for setlocale) | |
3401 | bool bLoadDefault = true, // preload wxstd.mo? | |
3402 | bool bConvertEncoding = false); // convert Win<->Unix if necessary? | |
fc46b7f3 RD |
3403 | |
3404 | wxPyLocale(int language, // wxLanguage id or custom language | |
ddeca22c | 3405 | int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); |
fc46b7f3 RD |
3406 | |
3407 | ~wxPyLocale(); | |
3408 | ||
ddeca22c RD |
3409 | virtual const wxString& GetString(const wxString& origString, |
3410 | const wxString& domain = wxPyEmptyString) const; | |
3411 | virtual const wxString& GetString(const wxString& origString, | |
3412 | const wxString& origString2, | |
3413 | size_t n, | |
3414 | const wxString& domain = wxPyEmptyString) const; | |
3415 | ||
3416 | virtual const wxString& GetSingularString(const wxString& origString, | |
3417 | const wxString& domain = wxPyEmptyString) const; | |
3418 | virtual const wxString& GetPluralString(const wxString& origString, | |
3419 | const wxString& origString2, | |
3420 | size_t n, | |
3421 | const wxString& domain = wxPyEmptyString) const; | |
3422 | ||
fc46b7f3 RD |
3423 | |
3424 | PYPRIVATE; | |
3425 | private: | |
3426 | DECLARE_NO_COPY_CLASS(wxPyLocale) | |
3427 | }; | |
3428 | ||
3429 | wxPyLocale::wxPyLocale() : wxLocale() | |
3430 | { | |
3431 | } | |
3432 | ||
ddeca22c RD |
3433 | wxPyLocale::wxPyLocale(const wxString& name, // name (for messages) |
3434 | const wxString& shortName, // dir prefix (for msg files) | |
3435 | const wxString& locale, // locale (for setlocale) | |
3436 | bool bLoadDefault, // preload wxstd.mo? | |
3437 | bool bConvertEncoding) // convert Win<->Unix if necessary? | |
3438 | : wxLocale(name, shortName, locale, bLoadDefault, bConvertEncoding) | |
fc46b7f3 RD |
3439 | { |
3440 | } | |
3441 | ||
3442 | wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language | |
3443 | int flags) : wxLocale(language, flags) | |
3444 | { | |
3445 | } | |
3446 | ||
3447 | wxPyLocale::~wxPyLocale() | |
3448 | { | |
3449 | } | |
3450 | ||
ddeca22c RD |
3451 | const wxString& wxPyLocale::GetString(const wxString& origString, |
3452 | const wxString& domain) const | |
fc46b7f3 | 3453 | { |
ddeca22c | 3454 | return GetSingularString(origString, domain); |
fc46b7f3 RD |
3455 | } |
3456 | ||
ddeca22c RD |
3457 | const wxString& wxPyLocale::GetString(const wxString& origString, |
3458 | const wxString& origString2, | |
3459 | size_t n, | |
3460 | const wxString& domain) const | |
fc46b7f3 | 3461 | { |
ddeca22c | 3462 | return GetPluralString(origString, origString2, n, domain); |
fc46b7f3 RD |
3463 | } |
3464 | ||
ddeca22c RD |
3465 | const wxString& wxPyLocale::GetSingularString(const wxString& origString, |
3466 | const wxString& domain) const | |
fc46b7f3 RD |
3467 | { |
3468 | bool found; | |
ddeca22c | 3469 | wxString str( _T("error in translation")); |
fc46b7f3 | 3470 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ddeca22c RD |
3471 | if ((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) { |
3472 | PyObject* param1 = wx2PyString(origString); | |
3473 | PyObject* param2 = wx2PyString(domain); | |
fc46b7f3 RD |
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); | |
ddeca22c | 3483 | return (found ? str : wxLocale::GetString(origString, domain)); |
fc46b7f3 RD |
3484 | } |
3485 | ||
ddeca22c RD |
3486 | const wxString& wxPyLocale::GetPluralString(const wxString& origString, |
3487 | const wxString& origString2, size_t n, | |
3488 | const wxString& domain) const | |
fc46b7f3 RD |
3489 | { |
3490 | bool found; | |
ddeca22c | 3491 | wxString str( _T("error in translation")); |
fc46b7f3 | 3492 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
ddeca22c RD |
3493 | if ((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) { |
3494 | PyObject* param1 = wx2PyString(origString); | |
3495 | PyObject* param2 = wx2PyString(origString2); | |
3496 | PyObject* param4 = wx2PyString(domain); | |
3497 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, | |
3498 | Py_BuildValue("(OOiO)", | |
3499 | param1, param2, | |
3500 | (int)n, param4)); | |
fc46b7f3 RD |
3501 | Py_DECREF(param1); |
3502 | Py_DECREF(param2); | |
3503 | Py_DECREF(param4); | |
3504 | if( ret) { | |
3505 | str = Py2wxString(ret); | |
3506 | Py_DECREF(ret); | |
3507 | } | |
3508 | } | |
3509 | wxPyEndBlockThreads(blocked); | |
ddeca22c | 3510 | return (found ? str : wxLocale::GetString(origString, origString2, n, domain) ); |
fc46b7f3 RD |
3511 | } |
3512 | ||
3513 | SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
3514 | wxPyLocale* loc; | |
3515 | if (language == -1) | |
3516 | loc = new wxPyLocale(); | |
3517 | else | |
3518 | loc = new wxPyLocale(language, flags); | |
3519 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3520 | // for the floating point conversions and such to work right. | |
3521 | #if PY_VERSION_HEX < 0x02040000 | |
3522 | setlocale(LC_NUMERIC, "C"); | |
3523 | #endif | |
3524 | return loc; | |
3525 | } | |
3526 | ||
093d3ff1 RD |
3527 | #include "wx/wxPython/pydrawxxx.h" |
3528 | ||
0085ce49 | 3529 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
093d3ff1 RD |
3530 | wxColour col; |
3531 | self->GetPixel(x, y, &col); | |
3532 | return col; | |
3533 | } | |
0085ce49 | 3534 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
093d3ff1 RD |
3535 | wxColour col; |
3536 | self->GetPixel(pt, &col); | |
3537 | return col; | |
3538 | } | |
3539 | ||
3540 | SWIGINTERN int | |
0085ce49 | 3541 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
3542 | { |
3543 | if (PyNumber_Check(obj)) { | |
3544 | if (val) *val = PyFloat_AsDouble(obj); | |
0085ce49 | 3545 | return SWIG_OK; |
093d3ff1 | 3546 | } |
0085ce49 | 3547 | return SWIG_TypeError; |
093d3ff1 RD |
3548 | } |
3549 | ||
0085ce49 | 3550 | 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 |
3551 | wxRect rv; |
3552 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3553 | return rv; | |
3554 | } | |
0085ce49 | 3555 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
093d3ff1 RD |
3556 | wxRect rect; |
3557 | self->GetClippingBox(rect); | |
3558 | return rect; | |
3559 | } | |
0085ce49 | 3560 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
093d3ff1 RD |
3561 | wxArrayInt widths; |
3562 | self->GetPartialTextExtents(text, widths); | |
3563 | return widths; | |
3564 | } | |
3565 | ||
0085ce49 | 3566 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 | 3567 | |
0085ce49 | 3568 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3569 | self->SetLogicalOrigin(point.x, point.y); |
3570 | } | |
0085ce49 | 3571 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3572 | self->SetDeviceOrigin(point.x, point.y); |
3573 | } | |
0085ce49 | 3574 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3575 | self->CalcBoundingBox(point.x, point.y); |
3576 | } | |
0085ce49 | 3577 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3578 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3579 | } | |
0085ce49 | 3580 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3581 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3582 | } | |
0085ce49 | 3583 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3584 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3585 | } | |
0085ce49 | 3586 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3587 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3588 | } | |
0085ce49 | 3589 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3590 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3591 | } | |
0085ce49 | 3592 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
093d3ff1 RD |
3593 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3594 | } | |
3595 | ||
3596 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3597 | *x1 = dc->MinX(); | |
3598 | *y1 = dc->MinY(); | |
3599 | *x2 = dc->MaxX(); | |
3600 | *y2 = dc->MaxY(); | |
3601 | } | |
3602 | ||
3603 | ||
3604 | #include <wx/dcbuffer.h> | |
3605 | ||
3606 | ||
3607 | #include <wx/dcps.h> | |
3608 | ||
3609 | ||
3610 | class wxMetaFile : public wxObject { | |
3611 | public: | |
3612 | wxMetaFile(const wxString&) | |
3613 | { wxPyRaiseNotImplemented(); } | |
3614 | }; | |
3615 | ||
3616 | class wxMetaFileDC : public wxClientDC { | |
3617 | public: | |
3618 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
3619 | { wxPyRaiseNotImplemented(); } | |
3620 | }; | |
3621 | ||
3622 | ||
3623 | ||
3624 | class wxPrinterDC : public wxClientDC { | |
3625 | public: | |
3626 | wxPrinterDC(const wxPrintData&) | |
3627 | { wxPyRaiseNotImplemented(); } | |
3628 | ||
3629 | }; | |
3630 | ||
3631 | ||
a7830320 RD |
3632 | #include <wx/dcsvg.h> |
3633 | ||
3634 | ||
72ef6efb RD |
3635 | #include <wx/graphics.h> |
3636 | ||
3637 | ||
3638 | #if !wxUSE_GRAPHICS_CONTEXT | |
70d7cb34 RD |
3639 | // C++ stub classes for platforms or build configurations that don't have |
3640 | // wxGraphicsContext yet. | |
72ef6efb | 3641 | |
8bd35413 RD |
3642 | class wxGraphicsRenderer; |
3643 | class wxGraphicsMatrix; | |
3644 | ||
70d7cb34 RD |
3645 | |
3646 | class wxGraphicsObject : public wxObject | |
72ef6efb RD |
3647 | { |
3648 | public : | |
8bd35413 | 3649 | wxGraphicsObject() {} |
70d7cb34 | 3650 | wxGraphicsObject( wxGraphicsRenderer* ) { |
72ef6efb | 3651 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 RD |
3652 | "wx.GraphicsObject is not available on this platform."); |
3653 | } | |
3654 | wxGraphicsObject( const wxGraphicsObject& ) {} | |
3655 | virtual ~wxGraphicsObject() {} | |
3656 | bool IsNull() const { return false; } | |
3657 | wxGraphicsRenderer* GetRenderer() const { return NULL; } | |
3658 | } ; | |
3659 | ||
3660 | ||
3661 | ||
3662 | class wxGraphicsPen : public wxGraphicsObject | |
3663 | { | |
8bd35413 | 3664 | public: |
70d7cb34 RD |
3665 | wxGraphicsPen() {} |
3666 | virtual ~wxGraphicsPen() {} | |
3667 | } ; | |
3668 | wxGraphicsPen wxNullGraphicsPen; | |
3669 | ||
3670 | ||
3671 | ||
3672 | class wxGraphicsBrush : public wxGraphicsObject | |
3673 | { | |
3674 | public : | |
3675 | wxGraphicsBrush() {} | |
3676 | virtual ~wxGraphicsBrush() {} | |
3677 | } ; | |
3678 | wxGraphicsBrush wxNullGraphicsBrush; | |
3679 | ||
3680 | ||
3681 | ||
3682 | class wxGraphicsFont : public wxGraphicsObject | |
3683 | { | |
3684 | public : | |
3685 | wxGraphicsFont() {} | |
3686 | virtual ~wxGraphicsFont() {} | |
3687 | } ; | |
3688 | wxGraphicsFont wxNullGraphicsFont; | |
3689 | ||
3690 | ||
3691 | ||
3692 | class wxGraphicsPath : public wxGraphicsObject | |
3693 | { | |
3694 | public : | |
8bd35413 | 3695 | wxGraphicsPath() { } |
70d7cb34 RD |
3696 | wxGraphicsPath(wxGraphicsRenderer* ) { |
3697 | PyErr_SetString(PyExc_NotImplementedError, | |
3698 | "wx.GraphicsPath is not available on this platform."); | |
72ef6efb RD |
3699 | } |
3700 | virtual ~wxGraphicsPath() {} | |
70d7cb34 | 3701 | |
72ef6efb | 3702 | void MoveToPoint( wxDouble, wxDouble ) {} |
70d7cb34 RD |
3703 | void MoveToPoint( const wxPoint2DDouble& ) {} |
3704 | void AddLineToPoint( wxDouble, wxDouble ) {} | |
3705 | void AddLineToPoint( const wxPoint2DDouble& ) {} | |
72ef6efb | 3706 | void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {} |
70d7cb34 | 3707 | void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {} |
8bd35413 | 3708 | void AddPath( const wxGraphicsPath& ) {} |
72ef6efb | 3709 | void CloseSubpath() {} |
8bd35413 RD |
3710 | void GetCurrentPoint( wxDouble&, wxDouble&) const {} |
3711 | wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); } | |
72ef6efb | 3712 | void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {} |
70d7cb34 | 3713 | void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {} |
72ef6efb RD |
3714 | |
3715 | void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3716 | void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3717 | void AddCircle( wxDouble, wxDouble, wxDouble ) {} | |
3718 | void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {} | |
3719 | ||
70d7cb34 RD |
3720 | void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3721 | void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3722 | void * GetNativePath() const { return NULL; } | |
8bd35413 RD |
3723 | void UnGetNativePath(void *) const {} |
3724 | void Transform( const wxGraphicsMatrix& ) {} | |
3725 | void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {} | |
3726 | wxRect2D GetBox() const { return wxRect2D(0,0,0,0); } | |
70d7cb34 | 3727 | |
8bd35413 RD |
3728 | bool Contains( wxDouble , wxDouble , int ) const { return false; } |
3729 | bool Contains( const wxPoint2DDouble& , int ) const { return false; } | |
70d7cb34 | 3730 | }; |
5c8c7dd3 | 3731 | wxGraphicsPath wxNullGraphicsPath; |
70d7cb34 RD |
3732 | |
3733 | ||
3734 | class wxGraphicsMatrix : public wxGraphicsObject | |
3735 | { | |
3736 | public : | |
8bd35413 | 3737 | wxGraphicsMatrix() { } |
70d7cb34 RD |
3738 | wxGraphicsMatrix(wxGraphicsRenderer* ) { |
3739 | PyErr_SetString(PyExc_NotImplementedError, | |
3740 | "wx.GraphicsMatrix is not available on this platform."); | |
3741 | } | |
3742 | virtual ~wxGraphicsMatrix() {} | |
8bd35413 RD |
3743 | virtual void Concat( const wxGraphicsMatrix & ) {} |
3744 | virtual void Copy( const wxGraphicsMatrix & ) {} | |
70d7cb34 RD |
3745 | virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble , |
3746 | wxDouble , wxDouble ) {} | |
248802d0 RD |
3747 | virtual void Get(wxDouble*, wxDouble*, wxDouble*, |
3748 | wxDouble*, wxDouble*, wxDouble*) {} | |
70d7cb34 | 3749 | virtual void Invert() {} |
8bd35413 RD |
3750 | virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; } |
3751 | virtual bool IsIdentity() const { return false; } | |
70d7cb34 RD |
3752 | virtual void Translate( wxDouble , wxDouble ) {} |
3753 | virtual void Scale( wxDouble , wxDouble ) {} | |
3754 | virtual void Rotate( wxDouble ) {} | |
8bd35413 RD |
3755 | virtual void TransformPoint( wxDouble *, wxDouble * ) const {} |
3756 | virtual void TransformDistance( wxDouble *, wxDouble * ) const {} | |
70d7cb34 | 3757 | virtual void * GetNativeMatrix() const { return NULL; } |
72ef6efb | 3758 | }; |
5c8c7dd3 | 3759 | wxGraphicsMatrix wxNullGraphicsMatrix; |
72ef6efb | 3760 | |
70d7cb34 RD |
3761 | |
3762 | class wxGraphicsContext : public wxGraphicsObject | |
72ef6efb RD |
3763 | { |
3764 | public: | |
70d7cb34 RD |
3765 | |
3766 | wxGraphicsContext(wxGraphicsRenderer* ) { | |
72ef6efb | 3767 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3768 | "wx.GraphicsContext is not available on this platform."); |
72ef6efb | 3769 | } |
70d7cb34 | 3770 | |
72ef6efb | 3771 | virtual ~wxGraphicsContext() {} |
70d7cb34 | 3772 | |
8bd35413 RD |
3773 | static wxGraphicsContext* Create() { |
3774 | PyErr_SetString(PyExc_NotImplementedError, | |
3775 | "wx.GraphicsContext is not available on this platform."); | |
3776 | return NULL; | |
3777 | } | |
70d7cb34 | 3778 | static wxGraphicsContext* Create( const wxWindowDC& ) { |
72ef6efb | 3779 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3780 | "wx.GraphicsContext is not available on this platform."); |
8bd35413 | 3781 | return NULL; |
72ef6efb | 3782 | } |
b876c1e4 | 3783 | |
70d7cb34 | 3784 | static wxGraphicsContext* CreateFromNative( void * ) { |
b876c1e4 | 3785 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3786 | "wx.GraphicsContext is not available on this platform."); |
8bd35413 | 3787 | return NULL; |
70d7cb34 | 3788 | } |
b876c1e4 | 3789 | |
70d7cb34 RD |
3790 | static wxGraphicsContext* CreateFromNativeWindow( void * ) { |
3791 | PyErr_SetString(PyExc_NotImplementedError, | |
3792 | "wx.GraphicsContext is not available on this platform."); | |
8bd35413 | 3793 | return NULL; |
70d7cb34 RD |
3794 | } |
3795 | ||
3796 | static wxGraphicsContext* Create( wxWindow* ) { | |
3797 | PyErr_SetString(PyExc_NotImplementedError, | |
3798 | "wx.GraphicsContext is not available on this platform."); | |
8bd35413 | 3799 | return NULL; |
70d7cb34 RD |
3800 | } |
3801 | ||
8bd35413 | 3802 | wxGraphicsPath CreatePath() { return wxNullGraphicsPath; } |
70d7cb34 | 3803 | |
8bd35413 | 3804 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; } |
70d7cb34 | 3805 | |
8bd35413 | 3806 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; } |
70d7cb34 RD |
3807 | |
3808 | virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , | |
8bd35413 | 3809 | const wxColour&, const wxColour&) { return wxNullGraphicsBrush; } |
70d7cb34 RD |
3810 | |
3811 | virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo, | |
3812 | wxDouble xc, wxDouble yc, wxDouble radius, | |
8bd35413 | 3813 | const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; } |
70d7cb34 | 3814 | |
8bd35413 | 3815 | virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; } |
70d7cb34 | 3816 | |
8bd35413 RD |
3817 | virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble, |
3818 | wxDouble, wxDouble) { return wxNullGraphicsMatrix; } | |
70d7cb34 RD |
3819 | |
3820 | virtual void PushState() {} | |
3821 | virtual void PopState() {} | |
3822 | virtual void Clip( const wxRegion & ) {} | |
3823 | virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3824 | virtual void ResetClip() {} | |
3825 | virtual void * GetNativeContext() { return NULL; } | |
c8aaaf9e RD |
3826 | virtual int GetLogicalFunction() const { return 0; } |
3827 | virtual bool SetLogicalFunction(int ) {} | |
70d7cb34 RD |
3828 | virtual void Translate( wxDouble , wxDouble ) {} |
3829 | virtual void Scale( wxDouble , wxDouble ) {} | |
3830 | virtual void Rotate( wxDouble ) {} | |
8bd35413 RD |
3831 | virtual void ConcatTransform( const wxGraphicsMatrix& ) {} |
3832 | virtual void SetTransform( const wxGraphicsMatrix& ) {} | |
3833 | virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; } | |
70d7cb34 RD |
3834 | |
3835 | virtual void SetPen( const wxGraphicsPen& ) {} | |
3836 | void SetPen( const wxPen& ) {} | |
3837 | ||
3838 | virtual void SetBrush( const wxGraphicsBrush& ) {} | |
3839 | void SetBrush( const wxBrush& ) {} | |
3840 | ||
3841 | virtual void SetFont( const wxGraphicsFont& ) {} | |
3842 | void SetFont( const wxFont&, const wxColour& ) {} | |
3843 | ||
8bd35413 RD |
3844 | virtual void StrokePath( const wxGraphicsPath & ) {} |
3845 | virtual void FillPath( const wxGraphicsPath &, int ) {} | |
3846 | virtual void DrawPath( const wxGraphicsPath &, int ) {} | |
70d7cb34 RD |
3847 | |
3848 | virtual void DrawText( const wxString &, wxDouble , wxDouble ) {} | |
3849 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {} | |
8bd35413 RD |
3850 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {} |
3851 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {} | |
70d7cb34 RD |
3852 | virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *, |
3853 | wxDouble *, wxDouble * ) const {} | |
3854 | virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {} | |
3855 | ||
3856 | virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3857 | virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3858 | ||
3859 | virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3860 | virtual void StrokeLines( size_t , const wxPoint2DDouble *) {} | |
3861 | virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {} | |
3862 | virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {} | |
3863 | virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3864 | virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
4e8107d5 | 3865 | virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} |
70d7cb34 RD |
3866 | virtual bool ShouldOffset() const { return false; } |
3867 | }; | |
3868 | ||
3869 | ||
3870 | class wxGraphicsRenderer : public wxObject | |
3871 | { | |
3872 | public : | |
3873 | wxGraphicsRenderer() { | |
3874 | PyErr_SetString(PyExc_NotImplementedError, | |
3875 | "wx.GraphicsRenderer is not available on this platform."); | |
3876 | } | |
3877 | ||
3878 | virtual ~wxGraphicsRenderer() {} | |
3879 | ||
8bd35413 | 3880 | static wxGraphicsRenderer* GetDefaultRenderer() { |
70d7cb34 RD |
3881 | PyErr_SetString(PyExc_NotImplementedError, |
3882 | "wx.GraphicsRenderer is not available on this platform."); | |
8bd35413 RD |
3883 | return NULL; |
3884 | } | |
70d7cb34 RD |
3885 | |
3886 | virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; } | |
3887 | virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; } | |
3888 | virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; } | |
3889 | virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; } | |
8bd35413 | 3890 | virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; } |
70d7cb34 | 3891 | |
8bd35413 | 3892 | virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; } |
70d7cb34 | 3893 | |
8bd35413 RD |
3894 | virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble , |
3895 | wxDouble , wxDouble ) { return wxNullGraphicsMatrix; } | |
70d7cb34 | 3896 | |
8bd35413 RD |
3897 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; } |
3898 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; } | |
3899 | virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , | |
3900 | const wxColour&, const wxColour&) { return wxNullGraphicsBrush; } | |
70d7cb34 | 3901 | virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble , |
8bd35413 RD |
3902 | const wxColour &, const wxColour &) { return wxNullGraphicsBrush; } |
3903 | virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; } | |
72ef6efb RD |
3904 | }; |
3905 | ||
3906 | ||
70d7cb34 | 3907 | |
72ef6efb RD |
3908 | class wxGCDC: public wxWindowDC |
3909 | { | |
3910 | public: | |
3911 | wxGCDC(const wxWindowDC&) { | |
3912 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3913 | PyErr_SetString(PyExc_NotImplementedError, | |
3914 | "wxGCDC is not available on this platform."); | |
3915 | wxPyEndBlockThreads(blocked); | |
3916 | } | |
70d7cb34 | 3917 | |
48a0c021 RD |
3918 | wxGCDC(const wxWindow*) { |
3919 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3920 | PyErr_SetString(PyExc_NotImplementedError, | |
3921 | "wxGCDC is not available on this platform."); | |
3922 | wxPyEndBlockThreads(blocked); | |
3923 | } | |
3924 | ||
72ef6efb RD |
3925 | wxGCDC() { |
3926 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3927 | PyErr_SetString(PyExc_NotImplementedError, | |
3928 | "wxGCDC is not available on this platform."); | |
3929 | wxPyEndBlockThreads(blocked); | |
3930 | } | |
70d7cb34 | 3931 | |
72ef6efb RD |
3932 | virtual ~wxGCDC() {} |
3933 | ||
b876c1e4 RD |
3934 | wxGraphicsContext* GetGraphicsContext() { return NULL; } |
3935 | void SetGraphicsContext( wxGraphicsContext* ) {} | |
72ef6efb RD |
3936 | }; |
3937 | ||
3938 | #endif | |
3939 | ||
f89238b9 RD |
3940 | SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ |
3941 | if ( !backgroundBrush.IsNull() ) | |
3942 | self->DrawText(str, x, y, backgroundBrush); | |
3943 | else | |
3944 | self->DrawText(str, x, y); | |
3945 | } | |
3946 | SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ | |
3947 | if ( !backgroundBrush.IsNull() ) | |
3948 | self->DrawText(str, x, y, angle, backgroundBrush); | |
3949 | else | |
3950 | self->DrawText(str, x, y, angle); | |
3951 | } | |
be68621e RD |
3952 | SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){ |
3953 | wxDouble width = 0.0, | |
3954 | height = 0.0; | |
3955 | self->GetTextExtent(text, &width, &height, NULL, NULL); | |
3956 | // thread wrapers are turned off for this .i file, so no need to acquire GIL... | |
3957 | PyObject* rv = PyTuple_New(2); | |
3958 | PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width)); | |
3959 | PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height)); | |
3960 | return rv; | |
3961 | } | |
b39fe951 RD |
3962 | SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){ |
3963 | wxArrayDouble widths; | |
3964 | self->GetPartialTextExtents(text, widths); | |
3965 | return widths; | |
3966 | } | |
f8eb59b9 | 3967 | SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){ |
b39fe951 RD |
3968 | size_t c1, c2, count; |
3969 | wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1); | |
3970 | wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2); | |
3971 | ||
3972 | if ( beginP != NULL && endP != NULL ) | |
3973 | { | |
3974 | count = wxMin(c1, c2); | |
3975 | self->StrokeLines(count, beginP, endP); | |
3976 | } | |
3977 | delete [] beginP; | |
3978 | delete [] endP; | |
3979 | } | |
72ef6efb | 3980 | |
0a27f394 RD |
3981 | #include "wx/dcgraph.h" |
3982 | ||
3983 | ||
66493fc7 RD |
3984 | #include <wx/overlay.h> |
3985 | ||
3986 | ||
093d3ff1 | 3987 | |
0085ce49 | 3988 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3989 | self->AddColour(name, wxColour(red, green, blue)); |
3990 | } | |
3991 | ||
50efceee RD |
3992 | wxFontList* _wxPyInitTheFontList() { return wxTheFontList; } |
3993 | wxPenList* _wxPyInitThePenList() { return wxThePenList; } | |
3994 | wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; } | |
3995 | wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; } | |
3996 | ||
3997 | ||
093d3ff1 RD |
3998 | #include <wx/effects.h> |
3999 | ||
8d38bd1d RD |
4000 | |
4001 | #include "wx/renderer.h" | |
4002 | ||
4003 | ||
32fe5131 | 4004 | SWIGINTERNINLINE PyObject* |
0085ce49 | 4005 | SWIG_From_bool (bool value) |
8d38bd1d | 4006 | { |
0085ce49 | 4007 | return PyBool_FromLong(value ? 1 : 0); |
8d38bd1d RD |
4008 | } |
4009 | ||
27e45892 RD |
4010 | |
4011 | #include "wx/wxPython/pseudodc.h" | |
4012 | ||
4013 | SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){ | |
4014 | wxRect rect; | |
4015 | self->GetIdBounds(id, rect); | |
4016 | return rect; | |
4017 | } | |
093d3ff1 RD |
4018 | #ifdef __cplusplus |
4019 | extern "C" { | |
4020 | #endif | |
0085ce49 RD |
4021 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4022 | PyObject *resultobj = 0; | |
4023 | wxGDIObject *result = 0 ; | |
4024 | ||
4025 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
4026 | { | |
4027 | if (!wxPyCheckForApp()) SWIG_fail; | |
4028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4029 | result = (wxGDIObject *)new wxGDIObject(); | |
4030 | wxPyEndAllowThreads(__tstate); | |
4031 | if (PyErr_Occurred()) SWIG_fail; | |
4032 | } | |
4033 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
4034 | return resultobj; | |
4035 | fail: | |
4036 | return NULL; | |
093d3ff1 RD |
4037 | } |
4038 | ||
4039 | ||
0085ce49 RD |
4040 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4041 | PyObject *resultobj = 0; | |
4042 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4043 | void *argp1 = 0 ; | |
4044 | int res1 = 0 ; | |
4045 | PyObject *swig_obj[1] ; | |
4046 | ||
4047 | if (!args) SWIG_fail; | |
4048 | swig_obj[0] = args; | |
4049 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
4050 | if (!SWIG_IsOK(res1)) { | |
4051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4052 | } | |
4053 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4054 | { | |
4055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4056 | delete arg1; | |
093d3ff1 | 4057 | |
0085ce49 RD |
4058 | wxPyEndAllowThreads(__tstate); |
4059 | if (PyErr_Occurred()) SWIG_fail; | |
4060 | } | |
4061 | resultobj = SWIG_Py_Void(); | |
4062 | return resultobj; | |
4063 | fail: | |
4064 | return NULL; | |
d14a1e28 RD |
4065 | } |
4066 | ||
4067 | ||
0085ce49 RD |
4068 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4069 | PyObject *resultobj = 0; | |
4070 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4071 | bool result; | |
4072 | void *argp1 = 0 ; | |
4073 | int res1 = 0 ; | |
4074 | PyObject *swig_obj[1] ; | |
4075 | ||
4076 | if (!args) SWIG_fail; | |
4077 | swig_obj[0] = args; | |
4078 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
4079 | if (!SWIG_IsOK(res1)) { | |
4080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4081 | } | |
4082 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4083 | { | |
4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4085 | result = (bool)(arg1)->IsNull(); | |
4086 | wxPyEndAllowThreads(__tstate); | |
4087 | if (PyErr_Occurred()) SWIG_fail; | |
4088 | } | |
4089 | { | |
4090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4091 | } | |
4092 | return resultobj; | |
4093 | fail: | |
4094 | return NULL; | |
4095 | } | |
4096 | ||
4097 | ||
4098 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4099 | PyObject *obj; | |
4100 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4101 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
4102 | return SWIG_Py_Void(); | |
4103 | } | |
4104 | ||
4105 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4106 | return SWIG_Python_InitShadowInstance(args); | |
4107 | } | |
4108 | ||
4109 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4110 | PyObject *resultobj = 0; | |
4111 | byte arg1 = (byte) 0 ; | |
4112 | byte arg2 = (byte) 0 ; | |
4113 | byte arg3 = (byte) 0 ; | |
fc46b7f3 | 4114 | byte arg4 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
4115 | wxColour *result = 0 ; |
4116 | unsigned char val1 ; | |
4117 | int ecode1 = 0 ; | |
4118 | unsigned char val2 ; | |
4119 | int ecode2 = 0 ; | |
4120 | unsigned char val3 ; | |
4121 | int ecode3 = 0 ; | |
fc46b7f3 RD |
4122 | unsigned char val4 ; |
4123 | int ecode4 = 0 ; | |
0085ce49 RD |
4124 | PyObject * obj0 = 0 ; |
4125 | PyObject * obj1 = 0 ; | |
4126 | PyObject * obj2 = 0 ; | |
fc46b7f3 | 4127 | PyObject * obj3 = 0 ; |
0085ce49 | 4128 | char * kwnames[] = { |
fc46b7f3 | 4129 | (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
4130 | }; |
4131 | ||
fc46b7f3 | 4132 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
4133 | if (obj0) { |
4134 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
4135 | if (!SWIG_IsOK(ecode1)) { | |
4136 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
4137 | } | |
4138 | arg1 = static_cast< byte >(val1); | |
4139 | } | |
4140 | if (obj1) { | |
4141 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4142 | if (!SWIG_IsOK(ecode2)) { | |
4143 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
4144 | } | |
4145 | arg2 = static_cast< byte >(val2); | |
4146 | } | |
4147 | if (obj2) { | |
4148 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4149 | if (!SWIG_IsOK(ecode3)) { | |
4150 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
4151 | } | |
4152 | arg3 = static_cast< byte >(val3); | |
4153 | } | |
fc46b7f3 RD |
4154 | if (obj3) { |
4155 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4156 | if (!SWIG_IsOK(ecode4)) { | |
4157 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'"); | |
4158 | } | |
4159 | arg4 = static_cast< byte >(val4); | |
4160 | } | |
0085ce49 RD |
4161 | { |
4162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4163 | result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4); |
0085ce49 RD |
4164 | wxPyEndAllowThreads(__tstate); |
4165 | if (PyErr_Occurred()) SWIG_fail; | |
4166 | } | |
4167 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
4168 | return resultobj; | |
4169 | fail: | |
4170 | return NULL; | |
d14a1e28 RD |
4171 | } |
4172 | ||
4173 | ||
0085ce49 RD |
4174 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4175 | PyObject *resultobj = 0; | |
4176 | wxString *arg1 = 0 ; | |
4177 | wxColour *result = 0 ; | |
4178 | bool temp1 = false ; | |
4179 | PyObject * obj0 = 0 ; | |
4180 | char * kwnames[] = { | |
4181 | (char *) "colorName", NULL | |
4182 | }; | |
4183 | ||
4184 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
4185 | { | |
4186 | arg1 = wxString_in_helper(obj0); | |
4187 | if (arg1 == NULL) SWIG_fail; | |
4188 | temp1 = true; | |
4189 | } | |
4190 | { | |
4191 | if (!wxPyCheckForApp()) SWIG_fail; | |
4192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4193 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
4194 | wxPyEndAllowThreads(__tstate); | |
4195 | if (PyErr_Occurred()) SWIG_fail; | |
4196 | } | |
4197 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4198 | { | |
4199 | if (temp1) | |
4200 | delete arg1; | |
4201 | } | |
4202 | return resultobj; | |
4203 | fail: | |
4204 | { | |
4205 | if (temp1) | |
4206 | delete arg1; | |
4207 | } | |
4208 | return NULL; | |
d14a1e28 RD |
4209 | } |
4210 | ||
4211 | ||
0085ce49 RD |
4212 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4213 | PyObject *resultobj = 0; | |
4214 | unsigned long arg1 ; | |
4215 | wxColour *result = 0 ; | |
4216 | unsigned long val1 ; | |
4217 | int ecode1 = 0 ; | |
4218 | PyObject * obj0 = 0 ; | |
4219 | char * kwnames[] = { | |
4220 | (char *) "colRGB", NULL | |
4221 | }; | |
4222 | ||
4223 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
4224 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
4225 | if (!SWIG_IsOK(ecode1)) { | |
4226 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
4227 | } | |
4228 | arg1 = static_cast< unsigned long >(val1); | |
4229 | { | |
4230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4231 | result = (wxColour *)new wxColour(arg1); | |
4232 | wxPyEndAllowThreads(__tstate); | |
4233 | if (PyErr_Occurred()) SWIG_fail; | |
4234 | } | |
4235 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4236 | return resultobj; | |
4237 | fail: | |
4238 | return NULL; | |
d14a1e28 RD |
4239 | } |
4240 | ||
4241 | ||
0085ce49 RD |
4242 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4243 | PyObject *resultobj = 0; | |
4244 | wxColour *arg1 = (wxColour *) 0 ; | |
4245 | void *argp1 = 0 ; | |
4246 | int res1 = 0 ; | |
4247 | PyObject *swig_obj[1] ; | |
4248 | ||
4249 | if (!args) SWIG_fail; | |
4250 | swig_obj[0] = args; | |
4251 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
4252 | if (!SWIG_IsOK(res1)) { | |
4253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4254 | } | |
4255 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4256 | { | |
4257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4258 | delete arg1; | |
d14a1e28 | 4259 | |
0085ce49 RD |
4260 | wxPyEndAllowThreads(__tstate); |
4261 | if (PyErr_Occurred()) SWIG_fail; | |
4262 | } | |
4263 | resultobj = SWIG_Py_Void(); | |
4264 | return resultobj; | |
4265 | fail: | |
4266 | return NULL; | |
d14a1e28 RD |
4267 | } |
4268 | ||
4269 | ||
0085ce49 RD |
4270 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4271 | PyObject *resultobj = 0; | |
4272 | wxColour *arg1 = (wxColour *) 0 ; | |
4273 | byte result; | |
4274 | void *argp1 = 0 ; | |
4275 | int res1 = 0 ; | |
4276 | PyObject *swig_obj[1] ; | |
4277 | ||
4278 | if (!args) SWIG_fail; | |
4279 | swig_obj[0] = args; | |
4280 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4281 | if (!SWIG_IsOK(res1)) { | |
4282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4283 | } | |
4284 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4285 | { | |
4286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4287 | result = (byte)(arg1)->Red(); | |
4288 | wxPyEndAllowThreads(__tstate); | |
4289 | if (PyErr_Occurred()) SWIG_fail; | |
4290 | } | |
4291 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4292 | return resultobj; | |
4293 | fail: | |
4294 | return NULL; | |
d14a1e28 RD |
4295 | } |
4296 | ||
4297 | ||
0085ce49 RD |
4298 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4299 | PyObject *resultobj = 0; | |
4300 | wxColour *arg1 = (wxColour *) 0 ; | |
4301 | byte result; | |
4302 | void *argp1 = 0 ; | |
4303 | int res1 = 0 ; | |
4304 | PyObject *swig_obj[1] ; | |
4305 | ||
4306 | if (!args) SWIG_fail; | |
4307 | swig_obj[0] = args; | |
4308 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4309 | if (!SWIG_IsOK(res1)) { | |
4310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4311 | } | |
4312 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4313 | { | |
4314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4315 | result = (byte)(arg1)->Green(); | |
4316 | wxPyEndAllowThreads(__tstate); | |
4317 | if (PyErr_Occurred()) SWIG_fail; | |
4318 | } | |
4319 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4320 | return resultobj; | |
4321 | fail: | |
4322 | return NULL; | |
5cbf236d RD |
4323 | } |
4324 | ||
4325 | ||
0085ce49 RD |
4326 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4327 | PyObject *resultobj = 0; | |
4328 | wxColour *arg1 = (wxColour *) 0 ; | |
4329 | byte result; | |
4330 | void *argp1 = 0 ; | |
4331 | int res1 = 0 ; | |
4332 | PyObject *swig_obj[1] ; | |
4333 | ||
4334 | if (!args) SWIG_fail; | |
4335 | swig_obj[0] = args; | |
4336 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4337 | if (!SWIG_IsOK(res1)) { | |
4338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4339 | } | |
4340 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4341 | { | |
4342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4343 | result = (byte)(arg1)->Blue(); | |
4344 | wxPyEndAllowThreads(__tstate); | |
4345 | if (PyErr_Occurred()) SWIG_fail; | |
4346 | } | |
4347 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4348 | return resultobj; | |
4349 | fail: | |
4350 | return NULL; | |
d14a1e28 RD |
4351 | } |
4352 | ||
4353 | ||
fc46b7f3 RD |
4354 | SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4355 | PyObject *resultobj = 0; | |
4356 | wxColour *arg1 = (wxColour *) 0 ; | |
4357 | byte result; | |
4358 | void *argp1 = 0 ; | |
4359 | int res1 = 0 ; | |
4360 | PyObject *swig_obj[1] ; | |
4361 | ||
4362 | if (!args) SWIG_fail; | |
4363 | swig_obj[0] = args; | |
4364 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4365 | if (!SWIG_IsOK(res1)) { | |
4366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4367 | } | |
4368 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4369 | { | |
4370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4371 | result = (byte)(arg1)->Alpha(); | |
4372 | wxPyEndAllowThreads(__tstate); | |
4373 | if (PyErr_Occurred()) SWIG_fail; | |
4374 | } | |
4375 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4376 | return resultobj; | |
4377 | fail: | |
4378 | return NULL; | |
4379 | } | |
4380 | ||
4381 | ||
b39fe951 | 4382 | SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
4383 | PyObject *resultobj = 0; |
4384 | wxColour *arg1 = (wxColour *) 0 ; | |
4385 | bool result; | |
4386 | void *argp1 = 0 ; | |
4387 | int res1 = 0 ; | |
4388 | PyObject *swig_obj[1] ; | |
4389 | ||
4390 | if (!args) SWIG_fail; | |
4391 | swig_obj[0] = args; | |
4392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4393 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4395 | } |
4396 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4397 | { | |
4398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4399 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
4400 | wxPyEndAllowThreads(__tstate); |
4401 | if (PyErr_Occurred()) SWIG_fail; | |
4402 | } | |
4403 | { | |
4404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4405 | } | |
4406 | return resultobj; | |
4407 | fail: | |
4408 | return NULL; | |
4409 | } | |
4410 | ||
4411 | ||
4412 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4413 | PyObject *resultobj = 0; | |
4414 | wxColour *arg1 = (wxColour *) 0 ; | |
4415 | byte arg2 ; | |
4416 | byte arg3 ; | |
4417 | byte arg4 ; | |
fc46b7f3 | 4418 | byte arg5 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
4419 | void *argp1 = 0 ; |
4420 | int res1 = 0 ; | |
4421 | unsigned char val2 ; | |
4422 | int ecode2 = 0 ; | |
4423 | unsigned char val3 ; | |
4424 | int ecode3 = 0 ; | |
4425 | unsigned char val4 ; | |
4426 | int ecode4 = 0 ; | |
fc46b7f3 RD |
4427 | unsigned char val5 ; |
4428 | int ecode5 = 0 ; | |
0085ce49 RD |
4429 | PyObject * obj0 = 0 ; |
4430 | PyObject * obj1 = 0 ; | |
4431 | PyObject * obj2 = 0 ; | |
4432 | PyObject * obj3 = 0 ; | |
fc46b7f3 | 4433 | PyObject * obj4 = 0 ; |
0085ce49 | 4434 | char * kwnames[] = { |
fc46b7f3 | 4435 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
4436 | }; |
4437 | ||
fc46b7f3 | 4438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
0085ce49 RD |
4439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); |
4440 | if (!SWIG_IsOK(res1)) { | |
4441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4442 | } | |
4443 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4444 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4445 | if (!SWIG_IsOK(ecode2)) { | |
4446 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
4447 | } | |
4448 | arg2 = static_cast< byte >(val2); | |
4449 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4450 | if (!SWIG_IsOK(ecode3)) { | |
4451 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
4452 | } | |
4453 | arg3 = static_cast< byte >(val3); | |
4454 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4455 | if (!SWIG_IsOK(ecode4)) { | |
4456 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
4457 | } | |
4458 | arg4 = static_cast< byte >(val4); | |
fc46b7f3 RD |
4459 | if (obj4) { |
4460 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
4461 | if (!SWIG_IsOK(ecode5)) { | |
4462 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'"); | |
4463 | } | |
4464 | arg5 = static_cast< byte >(val5); | |
4465 | } | |
0085ce49 RD |
4466 | { |
4467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4468 | (arg1)->Set(arg2,arg3,arg4,arg5); |
0085ce49 RD |
4469 | wxPyEndAllowThreads(__tstate); |
4470 | if (PyErr_Occurred()) SWIG_fail; | |
4471 | } | |
4472 | resultobj = SWIG_Py_Void(); | |
4473 | return resultobj; | |
4474 | fail: | |
4475 | return NULL; | |
4476 | } | |
4477 | ||
4478 | ||
4479 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4480 | PyObject *resultobj = 0; | |
4481 | wxColour *arg1 = (wxColour *) 0 ; | |
4482 | unsigned long arg2 ; | |
4483 | void *argp1 = 0 ; | |
4484 | int res1 = 0 ; | |
4485 | unsigned long val2 ; | |
4486 | int ecode2 = 0 ; | |
4487 | PyObject * obj0 = 0 ; | |
4488 | PyObject * obj1 = 0 ; | |
4489 | char * kwnames[] = { | |
4490 | (char *) "self",(char *) "colRGB", NULL | |
4491 | }; | |
4492 | ||
4493 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4494 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4495 | if (!SWIG_IsOK(res1)) { | |
4496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4497 | } | |
4498 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4499 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
4500 | if (!SWIG_IsOK(ecode2)) { | |
4501 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
4502 | } | |
4503 | arg2 = static_cast< unsigned long >(val2); | |
4504 | { | |
4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4506 | (arg1)->Set(arg2); | |
4507 | wxPyEndAllowThreads(__tstate); | |
4508 | if (PyErr_Occurred()) SWIG_fail; | |
4509 | } | |
4510 | resultobj = SWIG_Py_Void(); | |
4511 | return resultobj; | |
4512 | fail: | |
4513 | return NULL; | |
4514 | } | |
4515 | ||
4516 | ||
4517 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4518 | PyObject *resultobj = 0; | |
4519 | wxColour *arg1 = (wxColour *) 0 ; | |
4520 | wxString *arg2 = 0 ; | |
4521 | void *argp1 = 0 ; | |
4522 | int res1 = 0 ; | |
4523 | bool temp2 = false ; | |
4524 | PyObject * obj0 = 0 ; | |
4525 | PyObject * obj1 = 0 ; | |
4526 | char * kwnames[] = { | |
4527 | (char *) "self",(char *) "colourName", NULL | |
4528 | }; | |
4529 | ||
4530 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4531 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4532 | if (!SWIG_IsOK(res1)) { | |
4533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4534 | } | |
4535 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4536 | { | |
4537 | arg2 = wxString_in_helper(obj1); | |
4538 | if (arg2 == NULL) SWIG_fail; | |
4539 | temp2 = true; | |
4540 | } | |
4541 | { | |
4542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
72ef6efb | 4543 | (arg1)->Set((wxString const &)*arg2); |
0085ce49 RD |
4544 | wxPyEndAllowThreads(__tstate); |
4545 | if (PyErr_Occurred()) SWIG_fail; | |
4546 | } | |
4547 | resultobj = SWIG_Py_Void(); | |
4548 | { | |
4549 | if (temp2) | |
4550 | delete arg2; | |
4551 | } | |
4552 | return resultobj; | |
4553 | fail: | |
4554 | { | |
4555 | if (temp2) | |
4556 | delete arg2; | |
4557 | } | |
4558 | return NULL; | |
d14a1e28 RD |
4559 | } |
4560 | ||
4561 | ||
01f6b6d3 RD |
4562 | SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4563 | PyObject *resultobj = 0; | |
4564 | wxColour *arg1 = (wxColour *) 0 ; | |
4565 | long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ; | |
4566 | wxString result; | |
4567 | void *argp1 = 0 ; | |
4568 | int res1 = 0 ; | |
4569 | long val2 ; | |
4570 | int ecode2 = 0 ; | |
4571 | PyObject * obj0 = 0 ; | |
4572 | PyObject * obj1 = 0 ; | |
4573 | char * kwnames[] = { | |
4574 | (char *) "self",(char *) "flags", NULL | |
4575 | }; | |
4576 | ||
4577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail; | |
4578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4579 | if (!SWIG_IsOK(res1)) { | |
4580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4581 | } | |
4582 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4583 | if (obj1) { | |
4584 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4585 | if (!SWIG_IsOK(ecode2)) { | |
4586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'"); | |
4587 | } | |
4588 | arg2 = static_cast< long >(val2); | |
4589 | } | |
4590 | { | |
4591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4592 | result = ((wxColour const *)arg1)->GetAsString(arg2); | |
4593 | wxPyEndAllowThreads(__tstate); | |
4594 | if (PyErr_Occurred()) SWIG_fail; | |
4595 | } | |
4596 | { | |
4597 | #if wxUSE_UNICODE | |
4598 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4599 | #else | |
4600 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4601 | #endif | |
4602 | } | |
4603 | return resultobj; | |
4604 | fail: | |
4605 | return NULL; | |
4606 | } | |
4607 | ||
4608 | ||
0085ce49 RD |
4609 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4610 | PyObject *resultobj = 0; | |
4611 | wxColour *arg1 = (wxColour *) 0 ; | |
4612 | long result; | |
4613 | void *argp1 = 0 ; | |
4614 | int res1 = 0 ; | |
4615 | PyObject *swig_obj[1] ; | |
4616 | ||
4617 | if (!args) SWIG_fail; | |
4618 | swig_obj[0] = args; | |
4619 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4620 | if (!SWIG_IsOK(res1)) { | |
4621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4622 | } | |
4623 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4624 | { | |
4625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4626 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
4627 | wxPyEndAllowThreads(__tstate); | |
4628 | if (PyErr_Occurred()) SWIG_fail; | |
4629 | } | |
4630 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4631 | return resultobj; | |
4632 | fail: | |
4633 | return NULL; | |
4634 | } | |
4635 | ||
4636 | ||
4637 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4638 | PyObject *resultobj = 0; | |
4639 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4640 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4641 | bool result; |
4642 | void *argp1 = 0 ; | |
4643 | int res1 = 0 ; | |
0085ce49 RD |
4644 | PyObject * obj0 = 0 ; |
4645 | PyObject * obj1 = 0 ; | |
4646 | char * kwnames[] = { | |
e9d6f3a4 | 4647 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4648 | }; |
4649 | ||
4650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4652 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4654 | } |
4655 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4656 | arg2 = obj1; |
0085ce49 | 4657 | { |
e9d6f3a4 | 4658 | result = (bool)wxColour___eq__(arg1,arg2); |
0085ce49 RD |
4659 | if (PyErr_Occurred()) SWIG_fail; |
4660 | } | |
4661 | { | |
4662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4663 | } | |
4664 | return resultobj; | |
4665 | fail: | |
4666 | return NULL; | |
4667 | } | |
4668 | ||
4669 | ||
4670 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4671 | PyObject *resultobj = 0; | |
4672 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4673 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4674 | bool result; |
4675 | void *argp1 = 0 ; | |
4676 | int res1 = 0 ; | |
0085ce49 RD |
4677 | PyObject * obj0 = 0 ; |
4678 | PyObject * obj1 = 0 ; | |
4679 | char * kwnames[] = { | |
e9d6f3a4 | 4680 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4681 | }; |
4682 | ||
4683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4685 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4687 | } |
4688 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4689 | arg2 = obj1; |
0085ce49 | 4690 | { |
e9d6f3a4 | 4691 | result = (bool)wxColour___ne__(arg1,arg2); |
0085ce49 RD |
4692 | if (PyErr_Occurred()) SWIG_fail; |
4693 | } | |
4694 | { | |
4695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4696 | } | |
4697 | return resultobj; | |
4698 | fail: | |
4699 | return NULL; | |
d14a1e28 RD |
4700 | } |
4701 | ||
4702 | ||
fc46b7f3 | 4703 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
4704 | PyObject *resultobj = 0; |
4705 | wxColour *arg1 = (wxColour *) 0 ; | |
fc46b7f3 | 4706 | bool arg2 = (bool) false ; |
0085ce49 RD |
4707 | PyObject *result = 0 ; |
4708 | void *argp1 = 0 ; | |
4709 | int res1 = 0 ; | |
fc46b7f3 RD |
4710 | bool val2 ; |
4711 | int ecode2 = 0 ; | |
4712 | PyObject * obj0 = 0 ; | |
4713 | PyObject * obj1 = 0 ; | |
4714 | char * kwnames[] = { | |
4715 | (char *) "self",(char *) "includeAlpha", NULL | |
4716 | }; | |
0085ce49 | 4717 | |
fc46b7f3 RD |
4718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail; |
4719 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
0085ce49 RD |
4720 | if (!SWIG_IsOK(res1)) { |
4721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4722 | } | |
4723 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
fc46b7f3 RD |
4724 | if (obj1) { |
4725 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4726 | if (!SWIG_IsOK(ecode2)) { | |
4727 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'"); | |
4728 | } | |
4729 | arg2 = static_cast< bool >(val2); | |
4730 | } | |
0085ce49 | 4731 | { |
fc46b7f3 | 4732 | result = (PyObject *)wxColour_Get(arg1,arg2); |
0085ce49 RD |
4733 | if (PyErr_Occurred()) SWIG_fail; |
4734 | } | |
4735 | resultobj = result; | |
4736 | return resultobj; | |
4737 | fail: | |
4738 | return NULL; | |
d14a1e28 RD |
4739 | } |
4740 | ||
4741 | ||
0085ce49 RD |
4742 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4743 | PyObject *resultobj = 0; | |
4744 | wxColour *arg1 = (wxColour *) 0 ; | |
4745 | unsigned long result; | |
4746 | void *argp1 = 0 ; | |
4747 | int res1 = 0 ; | |
4748 | PyObject *swig_obj[1] ; | |
4749 | ||
4750 | if (!args) SWIG_fail; | |
4751 | swig_obj[0] = args; | |
4752 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4753 | if (!SWIG_IsOK(res1)) { | |
4754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4755 | } | |
4756 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4757 | { | |
0085ce49 | 4758 | result = (unsigned long)wxColour_GetRGB(arg1); |
0085ce49 RD |
4759 | if (PyErr_Occurred()) SWIG_fail; |
4760 | } | |
4761 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
4762 | return resultobj; | |
4763 | fail: | |
4764 | return NULL; | |
4765 | } | |
4766 | ||
4767 | ||
4768 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4769 | PyObject *obj; | |
4770 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4771 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
4772 | return SWIG_Py_Void(); | |
4773 | } | |
4774 | ||
4775 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4776 | return SWIG_Python_InitShadowInstance(args); | |
4777 | } | |
4778 | ||
4779 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4780 | PyObject *resultobj = 0; | |
4781 | int arg1 ; | |
4782 | unsigned char *arg2 = (unsigned char *) 0 ; | |
4783 | unsigned char *arg3 = (unsigned char *) 0 ; | |
4784 | unsigned char *arg4 = (unsigned char *) 0 ; | |
4785 | wxPalette *result = 0 ; | |
4786 | int val1 ; | |
4787 | int ecode1 = 0 ; | |
4788 | void *argp2 = 0 ; | |
4789 | int res2 = 0 ; | |
4790 | void *argp3 = 0 ; | |
4791 | int res3 = 0 ; | |
4792 | void *argp4 = 0 ; | |
4793 | int res4 = 0 ; | |
4794 | PyObject * obj0 = 0 ; | |
4795 | PyObject * obj1 = 0 ; | |
4796 | PyObject * obj2 = 0 ; | |
4797 | PyObject * obj3 = 0 ; | |
4798 | char * kwnames[] = { | |
4799 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4800 | }; | |
4801 | ||
4802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4803 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4804 | if (!SWIG_IsOK(ecode1)) { | |
4805 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
4806 | } | |
4807 | arg1 = static_cast< int >(val1); | |
4808 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4809 | if (!SWIG_IsOK(res2)) { | |
4810 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
4811 | } | |
4812 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
4813 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4814 | if (!SWIG_IsOK(res3)) { | |
4815 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
4816 | } | |
4817 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
4818 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4819 | if (!SWIG_IsOK(res4)) { | |
4820 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4821 | } | |
4822 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4823 | { | |
4824 | if (!wxPyCheckForApp()) SWIG_fail; | |
4825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4826 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4827 | wxPyEndAllowThreads(__tstate); | |
4828 | if (PyErr_Occurred()) SWIG_fail; | |
4829 | } | |
4830 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4831 | return resultobj; | |
4832 | fail: | |
4833 | return NULL; | |
d14a1e28 RD |
4834 | } |
4835 | ||
4836 | ||
0085ce49 RD |
4837 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4838 | PyObject *resultobj = 0; | |
4839 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4840 | void *argp1 = 0 ; | |
4841 | int res1 = 0 ; | |
4842 | PyObject *swig_obj[1] ; | |
4843 | ||
4844 | if (!args) SWIG_fail; | |
4845 | swig_obj[0] = args; | |
4846 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4847 | if (!SWIG_IsOK(res1)) { | |
4848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4849 | } | |
4850 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4851 | { | |
4852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4853 | delete arg1; | |
d14a1e28 | 4854 | |
0085ce49 RD |
4855 | wxPyEndAllowThreads(__tstate); |
4856 | if (PyErr_Occurred()) SWIG_fail; | |
4857 | } | |
4858 | resultobj = SWIG_Py_Void(); | |
4859 | return resultobj; | |
4860 | fail: | |
4861 | return NULL; | |
4862 | } | |
4863 | ||
4864 | ||
4865 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4866 | PyObject *resultobj = 0; | |
4867 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4868 | byte arg2 ; | |
4869 | byte arg3 ; | |
4870 | byte arg4 ; | |
4871 | int result; | |
4872 | void *argp1 = 0 ; | |
4873 | int res1 = 0 ; | |
4874 | unsigned char val2 ; | |
4875 | int ecode2 = 0 ; | |
4876 | unsigned char val3 ; | |
4877 | int ecode3 = 0 ; | |
4878 | unsigned char val4 ; | |
4879 | int ecode4 = 0 ; | |
4880 | PyObject * obj0 = 0 ; | |
4881 | PyObject * obj1 = 0 ; | |
4882 | PyObject * obj2 = 0 ; | |
4883 | PyObject * obj3 = 0 ; | |
4884 | char * kwnames[] = { | |
4885 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4886 | }; | |
4887 | ||
4888 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4889 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4890 | if (!SWIG_IsOK(res1)) { | |
4891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4892 | } | |
4893 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4894 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4895 | if (!SWIG_IsOK(ecode2)) { | |
4896 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4897 | } | |
4898 | arg2 = static_cast< byte >(val2); | |
4899 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4900 | if (!SWIG_IsOK(ecode3)) { | |
4901 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4902 | } | |
4903 | arg3 = static_cast< byte >(val3); | |
4904 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4905 | if (!SWIG_IsOK(ecode4)) { | |
4906 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4907 | } | |
4908 | arg4 = static_cast< byte >(val4); | |
4909 | { | |
4910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4911 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4912 | wxPyEndAllowThreads(__tstate); | |
4913 | if (PyErr_Occurred()) SWIG_fail; | |
4914 | } | |
4915 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4916 | return resultobj; | |
4917 | fail: | |
4918 | return NULL; | |
4919 | } | |
4920 | ||
4921 | ||
4922 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4923 | PyObject *resultobj = 0; | |
4924 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4925 | int arg2 ; | |
4926 | byte *arg3 = (byte *) 0 ; | |
4927 | byte *arg4 = (byte *) 0 ; | |
4928 | byte *arg5 = (byte *) 0 ; | |
4929 | bool result; | |
4930 | void *argp1 = 0 ; | |
4931 | int res1 = 0 ; | |
4932 | int val2 ; | |
4933 | int ecode2 = 0 ; | |
4934 | byte temp3 ; | |
4935 | int res3 = SWIG_TMPOBJ ; | |
4936 | byte temp4 ; | |
4937 | int res4 = SWIG_TMPOBJ ; | |
4938 | byte temp5 ; | |
4939 | int res5 = SWIG_TMPOBJ ; | |
4940 | PyObject * obj0 = 0 ; | |
4941 | PyObject * obj1 = 0 ; | |
4942 | char * kwnames[] = { | |
4943 | (char *) "self",(char *) "pixel", NULL | |
4944 | }; | |
4945 | ||
4946 | arg3 = &temp3; | |
4947 | arg4 = &temp4; | |
4948 | arg5 = &temp5; | |
4949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4951 | if (!SWIG_IsOK(res1)) { | |
4952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4953 | } | |
4954 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4955 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4956 | if (!SWIG_IsOK(ecode2)) { | |
4957 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4958 | } | |
4959 | arg2 = static_cast< int >(val2); | |
4960 | { | |
4961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4962 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4963 | wxPyEndAllowThreads(__tstate); | |
4964 | if (PyErr_Occurred()) SWIG_fail; | |
4965 | } | |
4966 | { | |
4967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4968 | } | |
4969 | if (SWIG_IsTmpObj(res3)) { | |
4970 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4971 | } else { | |
4972 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4973 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4974 | } | |
4975 | if (SWIG_IsTmpObj(res4)) { | |
4976 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4977 | } else { | |
4978 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4979 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4980 | } | |
4981 | if (SWIG_IsTmpObj(res5)) { | |
4982 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4983 | } else { | |
4984 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4985 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4986 | } | |
4987 | return resultobj; | |
4988 | fail: | |
4989 | return NULL; | |
d14a1e28 RD |
4990 | } |
4991 | ||
4992 | ||
0085ce49 RD |
4993 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4994 | PyObject *resultobj = 0; | |
4995 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4996 | int result; | |
4997 | void *argp1 = 0 ; | |
4998 | int res1 = 0 ; | |
4999 | PyObject *swig_obj[1] ; | |
5000 | ||
5001 | if (!args) SWIG_fail; | |
5002 | swig_obj[0] = args; | |
5003 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
5004 | if (!SWIG_IsOK(res1)) { | |
5005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
5006 | } | |
5007 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
5008 | { | |
5009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5010 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
5011 | wxPyEndAllowThreads(__tstate); | |
5012 | if (PyErr_Occurred()) SWIG_fail; | |
5013 | } | |
5014 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5015 | return resultobj; | |
5016 | fail: | |
5017 | return NULL; | |
d14a1e28 RD |
5018 | } |
5019 | ||
5020 | ||
b39fe951 | 5021 | SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
5022 | PyObject *resultobj = 0; |
5023 | wxPalette *arg1 = (wxPalette *) 0 ; | |
5024 | bool result; | |
5025 | void *argp1 = 0 ; | |
5026 | int res1 = 0 ; | |
5027 | PyObject *swig_obj[1] ; | |
5028 | ||
5029 | if (!args) SWIG_fail; | |
5030 | swig_obj[0] = args; | |
5031 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
5032 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'"); |
0085ce49 RD |
5034 | } |
5035 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
5036 | { | |
5037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5038 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
5039 | wxPyEndAllowThreads(__tstate); |
5040 | if (PyErr_Occurred()) SWIG_fail; | |
5041 | } | |
5042 | { | |
5043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5044 | } | |
5045 | return resultobj; | |
5046 | fail: | |
5047 | return NULL; | |
5048 | } | |
5049 | ||
5050 | ||
5051 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5052 | PyObject *obj; | |
5053 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5054 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
5055 | return SWIG_Py_Void(); | |
5056 | } | |
5057 | ||
5058 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5059 | return SWIG_Python_InitShadowInstance(args); | |
5060 | } | |
5061 | ||
5062 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5063 | PyObject *resultobj = 0; | |
5064 | wxColour *arg1 = 0 ; | |
5065 | int arg2 = (int) 1 ; | |
5066 | int arg3 = (int) wxSOLID ; | |
5067 | wxPen *result = 0 ; | |
5068 | wxColour temp1 ; | |
5069 | int val2 ; | |
5070 | int ecode2 = 0 ; | |
5071 | int val3 ; | |
5072 | int ecode3 = 0 ; | |
5073 | PyObject * obj0 = 0 ; | |
5074 | PyObject * obj1 = 0 ; | |
5075 | PyObject * obj2 = 0 ; | |
5076 | char * kwnames[] = { | |
5077 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
5078 | }; | |
5079 | ||
5080 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5081 | { | |
5082 | arg1 = &temp1; | |
5083 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5084 | } | |
5085 | if (obj1) { | |
5086 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5087 | if (!SWIG_IsOK(ecode2)) { | |
5088 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
5089 | } | |
5090 | arg2 = static_cast< int >(val2); | |
5091 | } | |
5092 | if (obj2) { | |
5093 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5094 | if (!SWIG_IsOK(ecode3)) { | |
5095 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
5096 | } | |
5097 | arg3 = static_cast< int >(val3); | |
5098 | } | |
5099 | { | |
5100 | if (!wxPyCheckForApp()) SWIG_fail; | |
5101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5102 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
5103 | wxPyEndAllowThreads(__tstate); | |
5104 | if (PyErr_Occurred()) SWIG_fail; | |
5105 | } | |
5106 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
5107 | return resultobj; | |
5108 | fail: | |
5109 | return NULL; | |
d14a1e28 RD |
5110 | } |
5111 | ||
5112 | ||
0085ce49 RD |
5113 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5114 | PyObject *resultobj = 0; | |
5115 | wxPen *arg1 = (wxPen *) 0 ; | |
5116 | void *argp1 = 0 ; | |
5117 | int res1 = 0 ; | |
5118 | PyObject *swig_obj[1] ; | |
5119 | ||
5120 | if (!args) SWIG_fail; | |
5121 | swig_obj[0] = args; | |
5122 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
5123 | if (!SWIG_IsOK(res1)) { | |
5124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5125 | } | |
5126 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5127 | { | |
5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5129 | delete arg1; | |
d14a1e28 | 5130 | |
0085ce49 RD |
5131 | wxPyEndAllowThreads(__tstate); |
5132 | if (PyErr_Occurred()) SWIG_fail; | |
5133 | } | |
5134 | resultobj = SWIG_Py_Void(); | |
5135 | return resultobj; | |
5136 | fail: | |
5137 | return NULL; | |
d14a1e28 RD |
5138 | } |
5139 | ||
5140 | ||
0085ce49 RD |
5141 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5142 | PyObject *resultobj = 0; | |
5143 | wxPen *arg1 = (wxPen *) 0 ; | |
5144 | int result; | |
5145 | void *argp1 = 0 ; | |
5146 | int res1 = 0 ; | |
5147 | PyObject *swig_obj[1] ; | |
5148 | ||
5149 | if (!args) SWIG_fail; | |
5150 | swig_obj[0] = args; | |
5151 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5152 | if (!SWIG_IsOK(res1)) { | |
5153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5154 | } | |
5155 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5156 | { | |
5157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5158 | result = (int)(arg1)->GetCap(); | |
5159 | wxPyEndAllowThreads(__tstate); | |
5160 | if (PyErr_Occurred()) SWIG_fail; | |
5161 | } | |
5162 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5163 | return resultobj; | |
5164 | fail: | |
5165 | return NULL; | |
d14a1e28 RD |
5166 | } |
5167 | ||
5168 | ||
0085ce49 RD |
5169 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5170 | PyObject *resultobj = 0; | |
5171 | wxPen *arg1 = (wxPen *) 0 ; | |
5172 | wxColour result; | |
5173 | void *argp1 = 0 ; | |
5174 | int res1 = 0 ; | |
5175 | PyObject *swig_obj[1] ; | |
5176 | ||
5177 | if (!args) SWIG_fail; | |
5178 | swig_obj[0] = args; | |
5179 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5180 | if (!SWIG_IsOK(res1)) { | |
5181 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5182 | } | |
5183 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5184 | { | |
5185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5186 | result = (arg1)->GetColour(); | |
5187 | wxPyEndAllowThreads(__tstate); | |
5188 | if (PyErr_Occurred()) SWIG_fail; | |
5189 | } | |
5190 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5191 | return resultobj; | |
5192 | fail: | |
5193 | return NULL; | |
d14a1e28 RD |
5194 | } |
5195 | ||
5196 | ||
0085ce49 RD |
5197 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5198 | PyObject *resultobj = 0; | |
5199 | wxPen *arg1 = (wxPen *) 0 ; | |
5200 | int result; | |
5201 | void *argp1 = 0 ; | |
5202 | int res1 = 0 ; | |
5203 | PyObject *swig_obj[1] ; | |
5204 | ||
5205 | if (!args) SWIG_fail; | |
5206 | swig_obj[0] = args; | |
5207 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5208 | if (!SWIG_IsOK(res1)) { | |
5209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5210 | } | |
5211 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5212 | { | |
5213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5214 | result = (int)(arg1)->GetJoin(); | |
5215 | wxPyEndAllowThreads(__tstate); | |
5216 | if (PyErr_Occurred()) SWIG_fail; | |
5217 | } | |
5218 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5219 | return resultobj; | |
5220 | fail: | |
5221 | return NULL; | |
d14a1e28 RD |
5222 | } |
5223 | ||
5224 | ||
0085ce49 RD |
5225 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5226 | PyObject *resultobj = 0; | |
5227 | wxPen *arg1 = (wxPen *) 0 ; | |
5228 | int result; | |
5229 | void *argp1 = 0 ; | |
5230 | int res1 = 0 ; | |
5231 | PyObject *swig_obj[1] ; | |
5232 | ||
5233 | if (!args) SWIG_fail; | |
5234 | swig_obj[0] = args; | |
5235 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5236 | if (!SWIG_IsOK(res1)) { | |
5237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5238 | } | |
5239 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5240 | { | |
5241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5242 | result = (int)(arg1)->GetStyle(); | |
5243 | wxPyEndAllowThreads(__tstate); | |
5244 | if (PyErr_Occurred()) SWIG_fail; | |
5245 | } | |
5246 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5247 | return resultobj; | |
5248 | fail: | |
5249 | return NULL; | |
3adfb63b RD |
5250 | } |
5251 | ||
5252 | ||
0085ce49 RD |
5253 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5254 | PyObject *resultobj = 0; | |
5255 | wxPen *arg1 = (wxPen *) 0 ; | |
5256 | int result; | |
5257 | void *argp1 = 0 ; | |
5258 | int res1 = 0 ; | |
5259 | PyObject *swig_obj[1] ; | |
5260 | ||
5261 | if (!args) SWIG_fail; | |
5262 | swig_obj[0] = args; | |
5263 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5264 | if (!SWIG_IsOK(res1)) { | |
5265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5266 | } | |
5267 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5268 | { | |
5269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5270 | result = (int)(arg1)->GetWidth(); | |
5271 | wxPyEndAllowThreads(__tstate); | |
5272 | if (PyErr_Occurred()) SWIG_fail; | |
5273 | } | |
5274 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5275 | return resultobj; | |
5276 | fail: | |
5277 | return NULL; | |
d14a1e28 RD |
5278 | } |
5279 | ||
5280 | ||
b39fe951 | 5281 | SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
5282 | PyObject *resultobj = 0; |
5283 | wxPen *arg1 = (wxPen *) 0 ; | |
5284 | bool result; | |
5285 | void *argp1 = 0 ; | |
5286 | int res1 = 0 ; | |
5287 | PyObject *swig_obj[1] ; | |
5288 | ||
5289 | if (!args) SWIG_fail; | |
5290 | swig_obj[0] = args; | |
5291 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5292 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'"); |
0085ce49 RD |
5294 | } |
5295 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5296 | { | |
5297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5298 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
5299 | wxPyEndAllowThreads(__tstate); |
5300 | if (PyErr_Occurred()) SWIG_fail; | |
5301 | } | |
5302 | { | |
5303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5304 | } | |
5305 | return resultobj; | |
5306 | fail: | |
5307 | return NULL; | |
5308 | } | |
5309 | ||
5310 | ||
5311 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5312 | PyObject *resultobj = 0; | |
5313 | wxPen *arg1 = (wxPen *) 0 ; | |
5314 | int arg2 ; | |
5315 | void *argp1 = 0 ; | |
5316 | int res1 = 0 ; | |
5317 | int val2 ; | |
5318 | int ecode2 = 0 ; | |
5319 | PyObject * obj0 = 0 ; | |
5320 | PyObject * obj1 = 0 ; | |
5321 | char * kwnames[] = { | |
5322 | (char *) "self",(char *) "cap_style", NULL | |
5323 | }; | |
5324 | ||
5325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5327 | if (!SWIG_IsOK(res1)) { | |
5328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5329 | } | |
5330 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5331 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5332 | if (!SWIG_IsOK(ecode2)) { | |
5333 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
5334 | } | |
5335 | arg2 = static_cast< int >(val2); | |
5336 | { | |
5337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5338 | (arg1)->SetCap(arg2); | |
5339 | wxPyEndAllowThreads(__tstate); | |
5340 | if (PyErr_Occurred()) SWIG_fail; | |
5341 | } | |
5342 | resultobj = SWIG_Py_Void(); | |
5343 | return resultobj; | |
5344 | fail: | |
5345 | return NULL; | |
5346 | } | |
5347 | ||
5348 | ||
5349 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5350 | PyObject *resultobj = 0; | |
5351 | wxPen *arg1 = (wxPen *) 0 ; | |
5352 | wxColour *arg2 = 0 ; | |
5353 | void *argp1 = 0 ; | |
5354 | int res1 = 0 ; | |
5355 | wxColour temp2 ; | |
5356 | PyObject * obj0 = 0 ; | |
5357 | PyObject * obj1 = 0 ; | |
5358 | char * kwnames[] = { | |
5359 | (char *) "self",(char *) "colour", NULL | |
5360 | }; | |
5361 | ||
5362 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5363 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5364 | if (!SWIG_IsOK(res1)) { | |
5365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5366 | } | |
5367 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5368 | { | |
5369 | arg2 = &temp2; | |
5370 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5371 | } | |
5372 | { | |
5373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5374 | (arg1)->SetColour(*arg2); | |
5375 | wxPyEndAllowThreads(__tstate); | |
5376 | if (PyErr_Occurred()) SWIG_fail; | |
5377 | } | |
5378 | resultobj = SWIG_Py_Void(); | |
5379 | return resultobj; | |
5380 | fail: | |
5381 | return NULL; | |
5382 | } | |
5383 | ||
5384 | ||
5385 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5386 | PyObject *resultobj = 0; | |
5387 | wxPen *arg1 = (wxPen *) 0 ; | |
5388 | int arg2 ; | |
5389 | void *argp1 = 0 ; | |
5390 | int res1 = 0 ; | |
5391 | int val2 ; | |
5392 | int ecode2 = 0 ; | |
5393 | PyObject * obj0 = 0 ; | |
5394 | PyObject * obj1 = 0 ; | |
5395 | char * kwnames[] = { | |
5396 | (char *) "self",(char *) "join_style", NULL | |
5397 | }; | |
5398 | ||
5399 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
5400 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5401 | if (!SWIG_IsOK(res1)) { | |
5402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5403 | } | |
5404 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5405 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5406 | if (!SWIG_IsOK(ecode2)) { | |
5407 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
5408 | } | |
5409 | arg2 = static_cast< int >(val2); | |
5410 | { | |
5411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5412 | (arg1)->SetJoin(arg2); | |
5413 | wxPyEndAllowThreads(__tstate); | |
5414 | if (PyErr_Occurred()) SWIG_fail; | |
5415 | } | |
5416 | resultobj = SWIG_Py_Void(); | |
5417 | return resultobj; | |
5418 | fail: | |
5419 | return NULL; | |
5420 | } | |
5421 | ||
5422 | ||
5423 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5424 | PyObject *resultobj = 0; | |
5425 | wxPen *arg1 = (wxPen *) 0 ; | |
5426 | int arg2 ; | |
5427 | void *argp1 = 0 ; | |
5428 | int res1 = 0 ; | |
5429 | int val2 ; | |
5430 | int ecode2 = 0 ; | |
5431 | PyObject * obj0 = 0 ; | |
5432 | PyObject * obj1 = 0 ; | |
5433 | char * kwnames[] = { | |
5434 | (char *) "self",(char *) "style", NULL | |
5435 | }; | |
5436 | ||
5437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5439 | if (!SWIG_IsOK(res1)) { | |
5440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5441 | } | |
5442 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5443 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5444 | if (!SWIG_IsOK(ecode2)) { | |
5445 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5446 | } | |
5447 | arg2 = static_cast< int >(val2); | |
5448 | { | |
5449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5450 | (arg1)->SetStyle(arg2); | |
5451 | wxPyEndAllowThreads(__tstate); | |
5452 | if (PyErr_Occurred()) SWIG_fail; | |
5453 | } | |
5454 | resultobj = SWIG_Py_Void(); | |
5455 | return resultobj; | |
5456 | fail: | |
5457 | return NULL; | |
5458 | } | |
5459 | ||
5460 | ||
5461 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5462 | PyObject *resultobj = 0; | |
5463 | wxPen *arg1 = (wxPen *) 0 ; | |
5464 | int arg2 ; | |
5465 | void *argp1 = 0 ; | |
5466 | int res1 = 0 ; | |
5467 | int val2 ; | |
5468 | int ecode2 = 0 ; | |
5469 | PyObject * obj0 = 0 ; | |
5470 | PyObject * obj1 = 0 ; | |
5471 | char * kwnames[] = { | |
5472 | (char *) "self",(char *) "width", NULL | |
5473 | }; | |
5474 | ||
5475 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5476 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5477 | if (!SWIG_IsOK(res1)) { | |
5478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5479 | } | |
5480 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5481 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5482 | if (!SWIG_IsOK(ecode2)) { | |
5483 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
5484 | } | |
5485 | arg2 = static_cast< int >(val2); | |
5486 | { | |
5487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5488 | (arg1)->SetWidth(arg2); | |
5489 | wxPyEndAllowThreads(__tstate); | |
5490 | if (PyErr_Occurred()) SWIG_fail; | |
5491 | } | |
5492 | resultobj = SWIG_Py_Void(); | |
5493 | return resultobj; | |
5494 | fail: | |
5495 | return NULL; | |
5496 | } | |
5497 | ||
5498 | ||
5499 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5500 | PyObject *resultobj = 0; | |
5501 | wxPen *arg1 = (wxPen *) 0 ; | |
5502 | int arg2 ; | |
5503 | wxDash *arg3 = (wxDash *) 0 ; | |
5504 | void *argp1 = 0 ; | |
5505 | int res1 = 0 ; | |
5506 | PyObject * obj0 = 0 ; | |
5507 | PyObject * obj1 = 0 ; | |
5508 | char * kwnames[] = { | |
5509 | (char *) "self",(char *) "dashes", NULL | |
5510 | }; | |
5511 | ||
5512 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
5513 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5514 | if (!SWIG_IsOK(res1)) { | |
5515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5516 | } | |
5517 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5518 | { | |
5519 | arg2 = PyList_Size(obj1); | |
5520 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
5521 | if (arg3 == NULL) SWIG_fail; | |
5522 | } | |
5523 | { | |
5524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5525 | (arg1)->SetDashes(arg2,arg3); | |
5526 | wxPyEndAllowThreads(__tstate); | |
5527 | if (PyErr_Occurred()) SWIG_fail; | |
5528 | } | |
5529 | resultobj = SWIG_Py_Void(); | |
5530 | { | |
5531 | if (arg3) delete [] arg3; | |
5532 | } | |
5533 | return resultobj; | |
5534 | fail: | |
5535 | { | |
5536 | if (arg3) delete [] arg3; | |
5537 | } | |
5538 | return NULL; | |
d14a1e28 RD |
5539 | } |
5540 | ||
5541 | ||
0085ce49 RD |
5542 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5543 | PyObject *resultobj = 0; | |
5544 | wxPen *arg1 = (wxPen *) 0 ; | |
5545 | PyObject *result = 0 ; | |
5546 | void *argp1 = 0 ; | |
5547 | int res1 = 0 ; | |
5548 | PyObject *swig_obj[1] ; | |
5549 | ||
5550 | if (!args) SWIG_fail; | |
5551 | swig_obj[0] = args; | |
5552 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5553 | if (!SWIG_IsOK(res1)) { | |
5554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5555 | } | |
5556 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5557 | { | |
5558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5559 | result = (PyObject *)wxPen_GetDashes(arg1); | |
5560 | wxPyEndAllowThreads(__tstate); | |
5561 | if (PyErr_Occurred()) SWIG_fail; | |
5562 | } | |
5563 | resultobj = result; | |
5564 | return resultobj; | |
5565 | fail: | |
5566 | return NULL; | |
5567 | } | |
5568 | ||
5569 | ||
5570 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5571 | PyObject *resultobj = 0; | |
5572 | wxPen *arg1 = (wxPen *) 0 ; | |
5573 | PyObject *arg2 = (PyObject *) 0 ; | |
5574 | PyObject *arg3 = (PyObject *) 0 ; | |
5575 | void *argp1 = 0 ; | |
5576 | int res1 = 0 ; | |
5577 | PyObject * obj0 = 0 ; | |
5578 | PyObject * obj1 = 0 ; | |
5579 | PyObject * obj2 = 0 ; | |
5580 | char * kwnames[] = { | |
5581 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
5582 | }; | |
5583 | ||
5584 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5585 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5586 | if (!SWIG_IsOK(res1)) { | |
5587 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5588 | } | |
5589 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5590 | arg2 = obj1; | |
5591 | arg3 = obj2; | |
5592 | { | |
5593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5594 | wxPen__SetDashes(arg1,arg2,arg3); | |
5595 | wxPyEndAllowThreads(__tstate); | |
5596 | if (PyErr_Occurred()) SWIG_fail; | |
5597 | } | |
5598 | resultobj = SWIG_Py_Void(); | |
5599 | return resultobj; | |
5600 | fail: | |
5601 | return NULL; | |
d14a1e28 RD |
5602 | } |
5603 | ||
5604 | ||
0085ce49 RD |
5605 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5606 | PyObject *resultobj = 0; | |
5607 | wxPen *arg1 = (wxPen *) 0 ; | |
5608 | int result; | |
5609 | void *argp1 = 0 ; | |
5610 | int res1 = 0 ; | |
5611 | PyObject *swig_obj[1] ; | |
5612 | ||
5613 | if (!args) SWIG_fail; | |
5614 | swig_obj[0] = args; | |
5615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5616 | if (!SWIG_IsOK(res1)) { | |
5617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
5618 | } | |
5619 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5620 | { | |
5621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5622 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
5623 | wxPyEndAllowThreads(__tstate); | |
5624 | if (PyErr_Occurred()) SWIG_fail; | |
5625 | } | |
5626 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5627 | return resultobj; | |
5628 | fail: | |
5629 | return NULL; | |
5630 | } | |
5631 | ||
5632 | ||
5633 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5634 | PyObject *resultobj = 0; | |
5635 | wxPen *arg1 = (wxPen *) 0 ; | |
5636 | wxPen *arg2 = (wxPen *) 0 ; | |
5637 | bool result; | |
5638 | void *argp1 = 0 ; | |
5639 | int res1 = 0 ; | |
5640 | void *argp2 = 0 ; | |
5641 | int res2 = 0 ; | |
5642 | PyObject * obj0 = 0 ; | |
5643 | PyObject * obj1 = 0 ; | |
5644 | char * kwnames[] = { | |
5645 | (char *) "self",(char *) "other", NULL | |
5646 | }; | |
5647 | ||
5648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5650 | if (!SWIG_IsOK(res1)) { | |
5651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5652 | } | |
5653 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5654 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5655 | if (!SWIG_IsOK(res2)) { | |
5656 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5657 | } | |
5658 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5659 | { | |
5660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5661 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
5662 | wxPyEndAllowThreads(__tstate); | |
5663 | if (PyErr_Occurred()) SWIG_fail; | |
5664 | } | |
5665 | { | |
5666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5667 | } | |
5668 | return resultobj; | |
5669 | fail: | |
5670 | return NULL; | |
5671 | } | |
5672 | ||
5673 | ||
5674 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5675 | PyObject *resultobj = 0; | |
5676 | wxPen *arg1 = (wxPen *) 0 ; | |
5677 | wxPen *arg2 = (wxPen *) 0 ; | |
5678 | bool result; | |
5679 | void *argp1 = 0 ; | |
5680 | int res1 = 0 ; | |
5681 | void *argp2 = 0 ; | |
5682 | int res2 = 0 ; | |
5683 | PyObject * obj0 = 0 ; | |
5684 | PyObject * obj1 = 0 ; | |
5685 | char * kwnames[] = { | |
5686 | (char *) "self",(char *) "other", NULL | |
5687 | }; | |
5688 | ||
5689 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5690 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5691 | if (!SWIG_IsOK(res1)) { | |
5692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5693 | } | |
5694 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5695 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5696 | if (!SWIG_IsOK(res2)) { | |
5697 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5698 | } | |
5699 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5700 | { | |
5701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5702 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
5703 | wxPyEndAllowThreads(__tstate); | |
5704 | if (PyErr_Occurred()) SWIG_fail; | |
5705 | } | |
5706 | { | |
5707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5708 | } | |
5709 | return resultobj; | |
5710 | fail: | |
5711 | return NULL; | |
d14a1e28 RD |
5712 | } |
5713 | ||
5714 | ||
0085ce49 RD |
5715 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5716 | PyObject *obj; | |
5717 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5718 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
5719 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5720 | } |
5721 | ||
0085ce49 RD |
5722 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5723 | return SWIG_Python_InitShadowInstance(args); | |
5724 | } | |
d14a1e28 | 5725 | |
0085ce49 RD |
5726 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5727 | PyObject *resultobj = 0; | |
5728 | wxColour *arg1 = 0 ; | |
5729 | int arg2 = (int) wxSOLID ; | |
5730 | wxBrush *result = 0 ; | |
5731 | wxColour temp1 ; | |
5732 | int val2 ; | |
5733 | int ecode2 = 0 ; | |
5734 | PyObject * obj0 = 0 ; | |
5735 | PyObject * obj1 = 0 ; | |
5736 | char * kwnames[] = { | |
5737 | (char *) "colour",(char *) "style", NULL | |
5738 | }; | |
5739 | ||
5740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
5741 | { | |
5742 | arg1 = &temp1; | |
5743 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5744 | } | |
5745 | if (obj1) { | |
5746 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5747 | if (!SWIG_IsOK(ecode2)) { | |
5748 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
5749 | } | |
5750 | arg2 = static_cast< int >(val2); | |
5751 | } | |
5752 | { | |
5753 | if (!wxPyCheckForApp()) SWIG_fail; | |
5754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5755 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
5756 | wxPyEndAllowThreads(__tstate); | |
5757 | if (PyErr_Occurred()) SWIG_fail; | |
5758 | } | |
5759 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
5760 | return resultobj; | |
5761 | fail: | |
5762 | return NULL; | |
5763 | } | |
5764 | ||
5765 | ||
5766 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5767 | PyObject *resultobj = 0; | |
5768 | wxBitmap *arg1 = 0 ; | |
5769 | wxBrush *result = 0 ; | |
5770 | void *argp1 = 0 ; | |
5771 | int res1 = 0 ; | |
5772 | PyObject * obj0 = 0 ; | |
5773 | char * kwnames[] = { | |
5774 | (char *) "stippleBitmap", NULL | |
5775 | }; | |
5776 | ||
5777 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5778 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5779 | if (!SWIG_IsOK(res1)) { | |
5780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5781 | } | |
5782 | if (!argp1) { | |
5783 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5784 | } | |
5785 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5786 | { | |
5787 | if (!wxPyCheckForApp()) SWIG_fail; | |
5788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5789 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5790 | wxPyEndAllowThreads(__tstate); | |
5791 | if (PyErr_Occurred()) SWIG_fail; | |
5792 | } | |
5793 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5794 | return resultobj; | |
5795 | fail: | |
5796 | return NULL; | |
d14a1e28 RD |
5797 | } |
5798 | ||
5799 | ||
0085ce49 RD |
5800 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5801 | PyObject *resultobj = 0; | |
5802 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5803 | void *argp1 = 0 ; | |
5804 | int res1 = 0 ; | |
5805 | PyObject *swig_obj[1] ; | |
5806 | ||
5807 | if (!args) SWIG_fail; | |
5808 | swig_obj[0] = args; | |
5809 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5810 | if (!SWIG_IsOK(res1)) { | |
5811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5812 | } | |
5813 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5814 | { | |
5815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5816 | delete arg1; | |
d14a1e28 | 5817 | |
0085ce49 RD |
5818 | wxPyEndAllowThreads(__tstate); |
5819 | if (PyErr_Occurred()) SWIG_fail; | |
5820 | } | |
5821 | resultobj = SWIG_Py_Void(); | |
5822 | return resultobj; | |
5823 | fail: | |
5824 | return NULL; | |
5825 | } | |
5826 | ||
5827 | ||
5828 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5829 | PyObject *resultobj = 0; | |
5830 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5831 | wxColour *arg2 = 0 ; | |
5832 | void *argp1 = 0 ; | |
5833 | int res1 = 0 ; | |
5834 | wxColour temp2 ; | |
5835 | PyObject * obj0 = 0 ; | |
5836 | PyObject * obj1 = 0 ; | |
5837 | char * kwnames[] = { | |
5838 | (char *) "self",(char *) "col", NULL | |
5839 | }; | |
5840 | ||
5841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5843 | if (!SWIG_IsOK(res1)) { | |
5844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5845 | } | |
5846 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5847 | { | |
5848 | arg2 = &temp2; | |
5849 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5850 | } | |
5851 | { | |
5852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5853 | (arg1)->SetColour((wxColour const &)*arg2); | |
5854 | wxPyEndAllowThreads(__tstate); | |
5855 | if (PyErr_Occurred()) SWIG_fail; | |
5856 | } | |
5857 | resultobj = SWIG_Py_Void(); | |
5858 | return resultobj; | |
5859 | fail: | |
5860 | return NULL; | |
5861 | } | |
5862 | ||
5863 | ||
5864 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5865 | PyObject *resultobj = 0; | |
5866 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5867 | int arg2 ; | |
5868 | void *argp1 = 0 ; | |
5869 | int res1 = 0 ; | |
5870 | int val2 ; | |
5871 | int ecode2 = 0 ; | |
5872 | PyObject * obj0 = 0 ; | |
5873 | PyObject * obj1 = 0 ; | |
5874 | char * kwnames[] = { | |
5875 | (char *) "self",(char *) "style", NULL | |
5876 | }; | |
5877 | ||
5878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5880 | if (!SWIG_IsOK(res1)) { | |
5881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5882 | } | |
5883 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5884 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5885 | if (!SWIG_IsOK(ecode2)) { | |
5886 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5887 | } | |
5888 | arg2 = static_cast< int >(val2); | |
5889 | { | |
5890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5891 | (arg1)->SetStyle(arg2); | |
5892 | wxPyEndAllowThreads(__tstate); | |
5893 | if (PyErr_Occurred()) SWIG_fail; | |
5894 | } | |
5895 | resultobj = SWIG_Py_Void(); | |
5896 | return resultobj; | |
5897 | fail: | |
5898 | return NULL; | |
5899 | } | |
5900 | ||
5901 | ||
5902 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5903 | PyObject *resultobj = 0; | |
5904 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5905 | wxBitmap *arg2 = 0 ; | |
5906 | void *argp1 = 0 ; | |
5907 | int res1 = 0 ; | |
5908 | void *argp2 = 0 ; | |
5909 | int res2 = 0 ; | |
5910 | PyObject * obj0 = 0 ; | |
5911 | PyObject * obj1 = 0 ; | |
5912 | char * kwnames[] = { | |
5913 | (char *) "self",(char *) "stipple", NULL | |
5914 | }; | |
5915 | ||
5916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5918 | if (!SWIG_IsOK(res1)) { | |
5919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5920 | } | |
5921 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5922 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5923 | if (!SWIG_IsOK(res2)) { | |
5924 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5925 | } | |
5926 | if (!argp2) { | |
5927 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5928 | } | |
5929 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5930 | { | |
5931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5932 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5933 | wxPyEndAllowThreads(__tstate); | |
5934 | if (PyErr_Occurred()) SWIG_fail; | |
5935 | } | |
5936 | resultobj = SWIG_Py_Void(); | |
5937 | return resultobj; | |
5938 | fail: | |
5939 | return NULL; | |
d14a1e28 RD |
5940 | } |
5941 | ||
5942 | ||
0085ce49 RD |
5943 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5944 | PyObject *resultobj = 0; | |
5945 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5946 | wxColour result; | |
5947 | void *argp1 = 0 ; | |
5948 | int res1 = 0 ; | |
5949 | PyObject *swig_obj[1] ; | |
5950 | ||
5951 | if (!args) SWIG_fail; | |
5952 | swig_obj[0] = args; | |
5953 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5954 | if (!SWIG_IsOK(res1)) { | |
5955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5956 | } | |
5957 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5958 | { | |
5959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5960 | result = ((wxBrush const *)arg1)->GetColour(); | |
5961 | wxPyEndAllowThreads(__tstate); | |
5962 | if (PyErr_Occurred()) SWIG_fail; | |
5963 | } | |
5964 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5965 | return resultobj; | |
5966 | fail: | |
5967 | return NULL; | |
d14a1e28 RD |
5968 | } |
5969 | ||
5970 | ||
0085ce49 RD |
5971 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5972 | PyObject *resultobj = 0; | |
5973 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5974 | int result; | |
5975 | void *argp1 = 0 ; | |
5976 | int res1 = 0 ; | |
5977 | PyObject *swig_obj[1] ; | |
5978 | ||
5979 | if (!args) SWIG_fail; | |
5980 | swig_obj[0] = args; | |
5981 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5982 | if (!SWIG_IsOK(res1)) { | |
5983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5984 | } | |
5985 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5986 | { | |
5987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5988 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
5989 | wxPyEndAllowThreads(__tstate); | |
5990 | if (PyErr_Occurred()) SWIG_fail; | |
5991 | } | |
5992 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5993 | return resultobj; | |
5994 | fail: | |
5995 | return NULL; | |
d14a1e28 RD |
5996 | } |
5997 | ||
5998 | ||
0085ce49 RD |
5999 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6000 | PyObject *resultobj = 0; | |
6001 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6002 | wxBitmap *result = 0 ; | |
6003 | void *argp1 = 0 ; | |
6004 | int res1 = 0 ; | |
6005 | PyObject *swig_obj[1] ; | |
6006 | ||
6007 | if (!args) SWIG_fail; | |
6008 | swig_obj[0] = args; | |
6009 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6010 | if (!SWIG_IsOK(res1)) { | |
6011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6012 | } | |
6013 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6014 | { | |
6015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6016 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
6017 | wxPyEndAllowThreads(__tstate); | |
6018 | if (PyErr_Occurred()) SWIG_fail; | |
6019 | } | |
6020 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6021 | return resultobj; | |
6022 | fail: | |
6023 | return NULL; | |
d14a1e28 RD |
6024 | } |
6025 | ||
6026 | ||
0085ce49 RD |
6027 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6028 | PyObject *resultobj = 0; | |
6029 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6030 | bool result; | |
6031 | void *argp1 = 0 ; | |
6032 | int res1 = 0 ; | |
6033 | PyObject *swig_obj[1] ; | |
6034 | ||
6035 | if (!args) SWIG_fail; | |
6036 | swig_obj[0] = args; | |
6037 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6038 | if (!SWIG_IsOK(res1)) { | |
6039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6040 | } | |
6041 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6042 | { | |
6043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6044 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
6045 | wxPyEndAllowThreads(__tstate); | |
6046 | if (PyErr_Occurred()) SWIG_fail; | |
6047 | } | |
6048 | { | |
6049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6050 | } | |
6051 | return resultobj; | |
6052 | fail: | |
6053 | return NULL; | |
f78cc896 RD |
6054 | } |
6055 | ||
6056 | ||
b39fe951 | 6057 | SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
6058 | PyObject *resultobj = 0; |
6059 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6060 | bool result; | |
6061 | void *argp1 = 0 ; | |
6062 | int res1 = 0 ; | |
6063 | PyObject *swig_obj[1] ; | |
6064 | ||
6065 | if (!args) SWIG_fail; | |
6066 | swig_obj[0] = args; | |
6067 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6068 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'"); |
0085ce49 RD |
6070 | } |
6071 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6072 | { | |
6073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 6074 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
6075 | wxPyEndAllowThreads(__tstate); |
6076 | if (PyErr_Occurred()) SWIG_fail; | |
6077 | } | |
6078 | { | |
6079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6080 | } | |
6081 | return resultobj; | |
6082 | fail: | |
6083 | return NULL; | |
d14a1e28 RD |
6084 | } |
6085 | ||
6086 | ||
0085ce49 RD |
6087 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6088 | PyObject *obj; | |
6089 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6090 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
6091 | return SWIG_Py_Void(); | |
d14a1e28 RD |
6092 | } |
6093 | ||
0085ce49 RD |
6094 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6095 | return SWIG_Python_InitShadowInstance(args); | |
6096 | } | |
d14a1e28 | 6097 | |
0085ce49 RD |
6098 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6099 | PyObject *resultobj = 0; | |
6100 | wxString *arg1 = 0 ; | |
6101 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
6102 | wxBitmap *result = 0 ; | |
6103 | bool temp1 = false ; | |
6104 | int val2 ; | |
6105 | int ecode2 = 0 ; | |
6106 | PyObject * obj0 = 0 ; | |
6107 | PyObject * obj1 = 0 ; | |
6108 | char * kwnames[] = { | |
6109 | (char *) "name",(char *) "type", NULL | |
6110 | }; | |
6111 | ||
6112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6113 | { | |
6114 | arg1 = wxString_in_helper(obj0); | |
6115 | if (arg1 == NULL) SWIG_fail; | |
6116 | temp1 = true; | |
6117 | } | |
6118 | if (obj1) { | |
6119 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6120 | if (!SWIG_IsOK(ecode2)) { | |
6121 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
6122 | } | |
6123 | arg2 = static_cast< wxBitmapType >(val2); | |
6124 | } | |
6125 | { | |
6126 | if (!wxPyCheckForApp()) SWIG_fail; | |
6127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6128 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
6129 | wxPyEndAllowThreads(__tstate); | |
6130 | if (PyErr_Occurred()) SWIG_fail; | |
6131 | } | |
6132 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
6133 | { | |
6134 | if (temp1) | |
6135 | delete arg1; | |
6136 | } | |
6137 | return resultobj; | |
6138 | fail: | |
6139 | { | |
6140 | if (temp1) | |
6141 | delete arg1; | |
6142 | } | |
6143 | return NULL; | |
d14a1e28 RD |
6144 | } |
6145 | ||
6146 | ||
0085ce49 RD |
6147 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6148 | PyObject *resultobj = 0; | |
6149 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6150 | void *argp1 = 0 ; | |
6151 | int res1 = 0 ; | |
6152 | PyObject *swig_obj[1] ; | |
6153 | ||
6154 | if (!args) SWIG_fail; | |
6155 | swig_obj[0] = args; | |
6156 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
6157 | if (!SWIG_IsOK(res1)) { | |
6158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6159 | } | |
6160 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6161 | { | |
0085ce49 | 6162 | delete arg1; |
66c033b4 | 6163 | |
0085ce49 RD |
6164 | if (PyErr_Occurred()) SWIG_fail; |
6165 | } | |
6166 | resultobj = SWIG_Py_Void(); | |
6167 | return resultobj; | |
6168 | fail: | |
6169 | return NULL; | |
6170 | } | |
6171 | ||
6172 | ||
6173 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6174 | PyObject *resultobj = 0; | |
6175 | int arg1 ; | |
6176 | int arg2 ; | |
6177 | int arg3 = (int) -1 ; | |
6178 | wxBitmap *result = 0 ; | |
6179 | int val1 ; | |
6180 | int ecode1 = 0 ; | |
6181 | int val2 ; | |
6182 | int ecode2 = 0 ; | |
6183 | int val3 ; | |
6184 | int ecode3 = 0 ; | |
6185 | PyObject * obj0 = 0 ; | |
6186 | PyObject * obj1 = 0 ; | |
6187 | PyObject * obj2 = 0 ; | |
6188 | char * kwnames[] = { | |
6189 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
6190 | }; | |
6191 | ||
6192 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6193 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6194 | if (!SWIG_IsOK(ecode1)) { | |
6195 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
6196 | } | |
6197 | arg1 = static_cast< int >(val1); | |
6198 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6199 | if (!SWIG_IsOK(ecode2)) { | |
6200 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
6201 | } | |
6202 | arg2 = static_cast< int >(val2); | |
6203 | if (obj2) { | |
6204 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6205 | if (!SWIG_IsOK(ecode3)) { | |
6206 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
6207 | } | |
6208 | arg3 = static_cast< int >(val3); | |
6209 | } | |
6210 | { | |
6211 | if (!wxPyCheckForApp()) SWIG_fail; | |
6212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6213 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
6214 | wxPyEndAllowThreads(__tstate); | |
6215 | if (PyErr_Occurred()) SWIG_fail; | |
6216 | } | |
6217 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6218 | return resultobj; | |
6219 | fail: | |
6220 | return NULL; | |
6221 | } | |
6222 | ||
6223 | ||
6224 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6225 | PyObject *resultobj = 0; | |
6226 | wxIcon *arg1 = 0 ; | |
6227 | wxBitmap *result = 0 ; | |
6228 | void *argp1 = 0 ; | |
6229 | int res1 = 0 ; | |
6230 | PyObject * obj0 = 0 ; | |
6231 | char * kwnames[] = { | |
6232 | (char *) "icon", NULL | |
6233 | }; | |
6234 | ||
6235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
6236 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
6237 | if (!SWIG_IsOK(res1)) { | |
6238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6239 | } | |
6240 | if (!argp1) { | |
6241 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6242 | } | |
6243 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6244 | { | |
6245 | if (!wxPyCheckForApp()) SWIG_fail; | |
6246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6247 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
6248 | wxPyEndAllowThreads(__tstate); | |
6249 | if (PyErr_Occurred()) SWIG_fail; | |
6250 | } | |
6251 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6252 | return resultobj; | |
6253 | fail: | |
6254 | return NULL; | |
6255 | } | |
6256 | ||
6257 | ||
6258 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6259 | PyObject *resultobj = 0; | |
6260 | wxImage *arg1 = 0 ; | |
6261 | int arg2 = (int) -1 ; | |
6262 | wxBitmap *result = 0 ; | |
6263 | void *argp1 = 0 ; | |
6264 | int res1 = 0 ; | |
6265 | int val2 ; | |
6266 | int ecode2 = 0 ; | |
6267 | PyObject * obj0 = 0 ; | |
6268 | PyObject * obj1 = 0 ; | |
6269 | char * kwnames[] = { | |
6270 | (char *) "image",(char *) "depth", NULL | |
6271 | }; | |
6272 | ||
6273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
6274 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
6275 | if (!SWIG_IsOK(res1)) { | |
6276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6277 | } | |
6278 | if (!argp1) { | |
6279 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6280 | } | |
6281 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
6282 | if (obj1) { | |
6283 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6284 | if (!SWIG_IsOK(ecode2)) { | |
6285 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
6286 | } | |
6287 | arg2 = static_cast< int >(val2); | |
6288 | } | |
6289 | { | |
6290 | if (!wxPyCheckForApp()) SWIG_fail; | |
6291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6292 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
6293 | wxPyEndAllowThreads(__tstate); | |
6294 | if (PyErr_Occurred()) SWIG_fail; | |
6295 | } | |
6296 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6297 | return resultobj; | |
6298 | fail: | |
6299 | return NULL; | |
66c033b4 RD |
6300 | } |
6301 | ||
6302 | ||
0085ce49 RD |
6303 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6304 | PyObject *resultobj = 0; | |
6305 | PyObject *arg1 = (PyObject *) 0 ; | |
6306 | wxBitmap *result = 0 ; | |
6307 | PyObject * obj0 = 0 ; | |
6308 | char * kwnames[] = { | |
6309 | (char *) "listOfStrings", NULL | |
6310 | }; | |
6311 | ||
6312 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6313 | arg1 = obj0; | |
6314 | { | |
6315 | if (!wxPyCheckForApp()) SWIG_fail; | |
6316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6317 | result = (wxBitmap *)new_wxBitmap(arg1); | |
6318 | wxPyEndAllowThreads(__tstate); | |
6319 | if (PyErr_Occurred()) SWIG_fail; | |
6320 | } | |
6321 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6322 | return resultobj; | |
6323 | fail: | |
6324 | return NULL; | |
6325 | } | |
6326 | ||
6327 | ||
6328 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6329 | PyObject *resultobj = 0; | |
6330 | PyObject *arg1 = (PyObject *) 0 ; | |
6331 | int arg2 ; | |
6332 | int arg3 ; | |
6333 | int arg4 = (int) 1 ; | |
6334 | wxBitmap *result = 0 ; | |
6335 | int val2 ; | |
6336 | int ecode2 = 0 ; | |
6337 | int val3 ; | |
6338 | int ecode3 = 0 ; | |
6339 | int val4 ; | |
6340 | int ecode4 = 0 ; | |
6341 | PyObject * obj0 = 0 ; | |
6342 | PyObject * obj1 = 0 ; | |
6343 | PyObject * obj2 = 0 ; | |
6344 | PyObject * obj3 = 0 ; | |
6345 | char * kwnames[] = { | |
6346 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
6347 | }; | |
6348 | ||
6349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6350 | arg1 = obj0; | |
6351 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6352 | if (!SWIG_IsOK(ecode2)) { | |
6353 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
6354 | } | |
6355 | arg2 = static_cast< int >(val2); | |
6356 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6357 | if (!SWIG_IsOK(ecode3)) { | |
6358 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
6359 | } | |
6360 | arg3 = static_cast< int >(val3); | |
6361 | if (obj3) { | |
6362 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6363 | if (!SWIG_IsOK(ecode4)) { | |
6364 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
6365 | } | |
6366 | arg4 = static_cast< int >(val4); | |
6367 | } | |
6368 | { | |
6369 | if (!wxPyCheckForApp()) SWIG_fail; | |
6370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6371 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
6372 | wxPyEndAllowThreads(__tstate); | |
6373 | if (PyErr_Occurred()) SWIG_fail; | |
6374 | } | |
6375 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6376 | return resultobj; | |
6377 | fail: | |
6378 | return NULL; | |
d14a1e28 RD |
6379 | } |
6380 | ||
6381 | ||
b39fe951 | 6382 | SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
6383 | PyObject *resultobj = 0; |
6384 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6385 | bool result; | |
6386 | void *argp1 = 0 ; | |
6387 | int res1 = 0 ; | |
6388 | PyObject *swig_obj[1] ; | |
6389 | ||
6390 | if (!args) SWIG_fail; | |
6391 | swig_obj[0] = args; | |
6392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6393 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'"); |
0085ce49 RD |
6395 | } |
6396 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6397 | { | |
b39fe951 | 6398 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
6399 | if (PyErr_Occurred()) SWIG_fail; |
6400 | } | |
6401 | { | |
6402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6403 | } | |
6404 | return resultobj; | |
6405 | fail: | |
6406 | return NULL; | |
d14a1e28 RD |
6407 | } |
6408 | ||
6409 | ||
0085ce49 RD |
6410 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6411 | PyObject *resultobj = 0; | |
6412 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6413 | int result; | |
6414 | void *argp1 = 0 ; | |
6415 | int res1 = 0 ; | |
6416 | PyObject *swig_obj[1] ; | |
6417 | ||
6418 | if (!args) SWIG_fail; | |
6419 | swig_obj[0] = args; | |
6420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6421 | if (!SWIG_IsOK(res1)) { | |
6422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6423 | } | |
6424 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6425 | { | |
0085ce49 | 6426 | result = (int)(arg1)->GetWidth(); |
0085ce49 RD |
6427 | if (PyErr_Occurred()) SWIG_fail; |
6428 | } | |
6429 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6430 | return resultobj; | |
6431 | fail: | |
6432 | return NULL; | |
d14a1e28 RD |
6433 | } |
6434 | ||
6435 | ||
0085ce49 RD |
6436 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6437 | PyObject *resultobj = 0; | |
6438 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6439 | int result; | |
6440 | void *argp1 = 0 ; | |
6441 | int res1 = 0 ; | |
6442 | PyObject *swig_obj[1] ; | |
6443 | ||
6444 | if (!args) SWIG_fail; | |
6445 | swig_obj[0] = args; | |
6446 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6447 | if (!SWIG_IsOK(res1)) { | |
6448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6449 | } | |
6450 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6451 | { | |
0085ce49 | 6452 | result = (int)(arg1)->GetHeight(); |
0085ce49 RD |
6453 | if (PyErr_Occurred()) SWIG_fail; |
6454 | } | |
6455 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6456 | return resultobj; | |
6457 | fail: | |
6458 | return NULL; | |
d14a1e28 RD |
6459 | } |
6460 | ||
6461 | ||
0085ce49 RD |
6462 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6463 | PyObject *resultobj = 0; | |
6464 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6465 | int result; | |
6466 | void *argp1 = 0 ; | |
6467 | int res1 = 0 ; | |
6468 | PyObject *swig_obj[1] ; | |
6469 | ||
6470 | if (!args) SWIG_fail; | |
6471 | swig_obj[0] = args; | |
6472 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6473 | if (!SWIG_IsOK(res1)) { | |
6474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6475 | } | |
6476 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6477 | { | |
0085ce49 | 6478 | result = (int)(arg1)->GetDepth(); |
0085ce49 RD |
6479 | if (PyErr_Occurred()) SWIG_fail; |
6480 | } | |
6481 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6482 | return resultobj; | |
6483 | fail: | |
6484 | return NULL; | |
d14a1e28 RD |
6485 | } |
6486 | ||
6487 | ||
0085ce49 RD |
6488 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6489 | PyObject *resultobj = 0; | |
6490 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6491 | wxSize result; | |
6492 | void *argp1 = 0 ; | |
6493 | int res1 = 0 ; | |
6494 | PyObject *swig_obj[1] ; | |
6495 | ||
6496 | if (!args) SWIG_fail; | |
6497 | swig_obj[0] = args; | |
6498 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6499 | if (!SWIG_IsOK(res1)) { | |
6500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6501 | } | |
6502 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6503 | { | |
0085ce49 | 6504 | result = wxBitmap_GetSize(arg1); |
0085ce49 RD |
6505 | if (PyErr_Occurred()) SWIG_fail; |
6506 | } | |
6507 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
6508 | return resultobj; | |
6509 | fail: | |
6510 | return NULL; | |
d14a1e28 RD |
6511 | } |
6512 | ||
6513 | ||
0085ce49 RD |
6514 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6515 | PyObject *resultobj = 0; | |
6516 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6517 | SwigValueWrapper<wxImage > result; | |
6518 | void *argp1 = 0 ; | |
6519 | int res1 = 0 ; | |
6520 | PyObject *swig_obj[1] ; | |
6521 | ||
6522 | if (!args) SWIG_fail; | |
6523 | swig_obj[0] = args; | |
6524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6525 | if (!SWIG_IsOK(res1)) { | |
6526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6527 | } | |
6528 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6529 | { | |
0085ce49 | 6530 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
0085ce49 RD |
6531 | if (PyErr_Occurred()) SWIG_fail; |
6532 | } | |
6533 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
6534 | return resultobj; | |
6535 | fail: | |
6536 | return NULL; | |
d14a1e28 RD |
6537 | } |
6538 | ||
6539 | ||
0085ce49 RD |
6540 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6541 | PyObject *resultobj = 0; | |
6542 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6543 | wxMask *result = 0 ; | |
6544 | void *argp1 = 0 ; | |
6545 | int res1 = 0 ; | |
6546 | PyObject *swig_obj[1] ; | |
6547 | ||
6548 | if (!args) SWIG_fail; | |
6549 | swig_obj[0] = args; | |
6550 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6551 | if (!SWIG_IsOK(res1)) { | |
6552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6553 | } | |
6554 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6555 | { | |
0085ce49 | 6556 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
0085ce49 RD |
6557 | if (PyErr_Occurred()) SWIG_fail; |
6558 | } | |
6559 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
6560 | return resultobj; | |
6561 | fail: | |
6562 | return NULL; | |
6563 | } | |
6564 | ||
6565 | ||
6566 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6567 | PyObject *resultobj = 0; | |
6568 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6569 | wxMask *arg2 = (wxMask *) 0 ; | |
6570 | void *argp1 = 0 ; | |
6571 | int res1 = 0 ; | |
6572 | int res2 = 0 ; | |
6573 | PyObject * obj0 = 0 ; | |
6574 | PyObject * obj1 = 0 ; | |
6575 | char * kwnames[] = { | |
6576 | (char *) "self",(char *) "mask", NULL | |
6577 | }; | |
6578 | ||
6579 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6580 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6581 | if (!SWIG_IsOK(res1)) { | |
6582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6583 | } | |
6584 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6585 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6586 | if (!SWIG_IsOK(res2)) { | |
6587 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
6588 | } | |
6589 | { | |
0085ce49 | 6590 | (arg1)->SetMask(arg2); |
0085ce49 RD |
6591 | if (PyErr_Occurred()) SWIG_fail; |
6592 | } | |
6593 | resultobj = SWIG_Py_Void(); | |
6594 | return resultobj; | |
6595 | fail: | |
6596 | return NULL; | |
6597 | } | |
6598 | ||
6599 | ||
6600 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6601 | PyObject *resultobj = 0; | |
6602 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6603 | wxColour *arg2 = 0 ; | |
6604 | void *argp1 = 0 ; | |
6605 | int res1 = 0 ; | |
6606 | wxColour temp2 ; | |
6607 | PyObject * obj0 = 0 ; | |
6608 | PyObject * obj1 = 0 ; | |
6609 | char * kwnames[] = { | |
6610 | (char *) "self",(char *) "colour", NULL | |
6611 | }; | |
6612 | ||
6613 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
6614 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6615 | if (!SWIG_IsOK(res1)) { | |
6616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6617 | } | |
6618 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6619 | { | |
6620 | arg2 = &temp2; | |
6621 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6622 | } | |
6623 | { | |
0085ce49 | 6624 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); |
0085ce49 RD |
6625 | if (PyErr_Occurred()) SWIG_fail; |
6626 | } | |
6627 | resultobj = SWIG_Py_Void(); | |
6628 | return resultobj; | |
6629 | fail: | |
6630 | return NULL; | |
6631 | } | |
6632 | ||
6633 | ||
6634 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6635 | PyObject *resultobj = 0; | |
6636 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6637 | wxRect *arg2 = 0 ; | |
6638 | SwigValueWrapper<wxBitmap > result; | |
6639 | void *argp1 = 0 ; | |
6640 | int res1 = 0 ; | |
6641 | wxRect temp2 ; | |
6642 | PyObject * obj0 = 0 ; | |
6643 | PyObject * obj1 = 0 ; | |
6644 | char * kwnames[] = { | |
6645 | (char *) "self",(char *) "rect", NULL | |
6646 | }; | |
6647 | ||
6648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6650 | if (!SWIG_IsOK(res1)) { | |
6651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6652 | } | |
6653 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6654 | { | |
6655 | arg2 = &temp2; | |
6656 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6657 | } | |
6658 | { | |
0085ce49 | 6659 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); |
0085ce49 RD |
6660 | if (PyErr_Occurred()) SWIG_fail; |
6661 | } | |
6662 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6663 | return resultobj; | |
6664 | fail: | |
6665 | return NULL; | |
6666 | } | |
6667 | ||
6668 | ||
6669 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6670 | PyObject *resultobj = 0; | |
6671 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6672 | wxString *arg2 = 0 ; | |
6673 | wxBitmapType arg3 ; | |
6674 | wxPalette *arg4 = (wxPalette *) NULL ; | |
6675 | bool result; | |
6676 | void *argp1 = 0 ; | |
6677 | int res1 = 0 ; | |
6678 | bool temp2 = false ; | |
6679 | int val3 ; | |
6680 | int ecode3 = 0 ; | |
6681 | void *argp4 = 0 ; | |
6682 | int res4 = 0 ; | |
6683 | PyObject * obj0 = 0 ; | |
6684 | PyObject * obj1 = 0 ; | |
6685 | PyObject * obj2 = 0 ; | |
6686 | PyObject * obj3 = 0 ; | |
6687 | char * kwnames[] = { | |
6688 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6689 | }; | |
6690 | ||
6691 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6692 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6693 | if (!SWIG_IsOK(res1)) { | |
6694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6695 | } | |
6696 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6697 | { | |
6698 | arg2 = wxString_in_helper(obj1); | |
6699 | if (arg2 == NULL) SWIG_fail; | |
6700 | temp2 = true; | |
6701 | } | |
6702 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6703 | if (!SWIG_IsOK(ecode3)) { | |
6704 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6705 | } | |
6706 | arg3 = static_cast< wxBitmapType >(val3); | |
6707 | if (obj3) { | |
6708 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6709 | if (!SWIG_IsOK(res4)) { | |
6710 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6711 | } |
0085ce49 RD |
6712 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6713 | } | |
6714 | { | |
0085ce49 | 6715 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
0085ce49 RD |
6716 | if (PyErr_Occurred()) SWIG_fail; |
6717 | } | |
6718 | { | |
6719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6720 | } | |
6721 | { | |
6722 | if (temp2) | |
6723 | delete arg2; | |
6724 | } | |
6725 | return resultobj; | |
6726 | fail: | |
6727 | { | |
6728 | if (temp2) | |
6729 | delete arg2; | |
6730 | } | |
6731 | return NULL; | |
6732 | } | |
6733 | ||
6734 | ||
6735 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6736 | PyObject *resultobj = 0; | |
6737 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6738 | wxString *arg2 = 0 ; | |
6739 | wxBitmapType arg3 ; | |
6740 | bool result; | |
6741 | void *argp1 = 0 ; | |
6742 | int res1 = 0 ; | |
6743 | bool temp2 = false ; | |
6744 | int val3 ; | |
6745 | int ecode3 = 0 ; | |
6746 | PyObject * obj0 = 0 ; | |
6747 | PyObject * obj1 = 0 ; | |
6748 | PyObject * obj2 = 0 ; | |
6749 | char * kwnames[] = { | |
6750 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6751 | }; | |
6752 | ||
6753 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6754 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6755 | if (!SWIG_IsOK(res1)) { | |
6756 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6757 | } | |
6758 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6759 | { | |
6760 | arg2 = wxString_in_helper(obj1); | |
6761 | if (arg2 == NULL) SWIG_fail; | |
6762 | temp2 = true; | |
6763 | } | |
6764 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6765 | if (!SWIG_IsOK(ecode3)) { | |
6766 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6767 | } | |
6768 | arg3 = static_cast< wxBitmapType >(val3); | |
6769 | { | |
0085ce49 | 6770 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
0085ce49 RD |
6771 | if (PyErr_Occurred()) SWIG_fail; |
6772 | } | |
6773 | { | |
6774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6775 | } | |
6776 | { | |
6777 | if (temp2) | |
6778 | delete arg2; | |
6779 | } | |
6780 | return resultobj; | |
6781 | fail: | |
6782 | { | |
6783 | if (temp2) | |
6784 | delete arg2; | |
6785 | } | |
6786 | return NULL; | |
d04418a7 RD |
6787 | } |
6788 | ||
6789 | ||
0085ce49 RD |
6790 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6791 | PyObject *resultobj = 0; | |
6792 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6793 | wxPalette *result = 0 ; | |
6794 | void *argp1 = 0 ; | |
6795 | int res1 = 0 ; | |
6796 | PyObject *swig_obj[1] ; | |
6797 | ||
6798 | if (!args) SWIG_fail; | |
6799 | swig_obj[0] = args; | |
6800 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6801 | if (!SWIG_IsOK(res1)) { | |
6802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6803 | } | |
6804 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6805 | { | |
0085ce49 | 6806 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
0085ce49 RD |
6807 | if (PyErr_Occurred()) SWIG_fail; |
6808 | } | |
6809 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6810 | return resultobj; | |
6811 | fail: | |
6812 | return NULL; | |
6813 | } | |
6814 | ||
6815 | ||
6816 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6817 | PyObject *resultobj = 0; | |
6818 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6819 | wxIcon *arg2 = 0 ; | |
6820 | bool result; | |
6821 | void *argp1 = 0 ; | |
6822 | int res1 = 0 ; | |
6823 | void *argp2 = 0 ; | |
6824 | int res2 = 0 ; | |
6825 | PyObject * obj0 = 0 ; | |
6826 | PyObject * obj1 = 0 ; | |
6827 | char * kwnames[] = { | |
6828 | (char *) "self",(char *) "icon", NULL | |
6829 | }; | |
6830 | ||
6831 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6832 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6833 | if (!SWIG_IsOK(res1)) { | |
6834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6835 | } | |
6836 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6837 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6838 | if (!SWIG_IsOK(res2)) { | |
6839 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6840 | } | |
6841 | if (!argp2) { | |
6842 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6843 | } | |
6844 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6845 | { | |
0085ce49 | 6846 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
0085ce49 RD |
6847 | if (PyErr_Occurred()) SWIG_fail; |
6848 | } | |
6849 | { | |
6850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6851 | } | |
6852 | return resultobj; | |
6853 | fail: | |
6854 | return NULL; | |
6855 | } | |
6856 | ||
6857 | ||
6858 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6859 | PyObject *resultobj = 0; | |
6860 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6861 | int arg2 ; | |
6862 | void *argp1 = 0 ; | |
6863 | int res1 = 0 ; | |
6864 | int val2 ; | |
6865 | int ecode2 = 0 ; | |
6866 | PyObject * obj0 = 0 ; | |
6867 | PyObject * obj1 = 0 ; | |
6868 | char * kwnames[] = { | |
6869 | (char *) "self",(char *) "height", NULL | |
6870 | }; | |
6871 | ||
6872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6874 | if (!SWIG_IsOK(res1)) { | |
6875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6876 | } | |
6877 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6878 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6879 | if (!SWIG_IsOK(ecode2)) { | |
6880 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6881 | } | |
6882 | arg2 = static_cast< int >(val2); | |
6883 | { | |
0085ce49 | 6884 | (arg1)->SetHeight(arg2); |
0085ce49 RD |
6885 | if (PyErr_Occurred()) SWIG_fail; |
6886 | } | |
6887 | resultobj = SWIG_Py_Void(); | |
6888 | return resultobj; | |
6889 | fail: | |
6890 | return NULL; | |
6891 | } | |
6892 | ||
6893 | ||
6894 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6895 | PyObject *resultobj = 0; | |
6896 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6897 | int arg2 ; | |
6898 | void *argp1 = 0 ; | |
6899 | int res1 = 0 ; | |
6900 | int val2 ; | |
6901 | int ecode2 = 0 ; | |
6902 | PyObject * obj0 = 0 ; | |
6903 | PyObject * obj1 = 0 ; | |
6904 | char * kwnames[] = { | |
6905 | (char *) "self",(char *) "width", NULL | |
6906 | }; | |
6907 | ||
6908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6909 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6910 | if (!SWIG_IsOK(res1)) { | |
6911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6912 | } | |
6913 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6914 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6915 | if (!SWIG_IsOK(ecode2)) { | |
6916 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
6917 | } | |
6918 | arg2 = static_cast< int >(val2); | |
6919 | { | |
0085ce49 | 6920 | (arg1)->SetWidth(arg2); |
0085ce49 RD |
6921 | if (PyErr_Occurred()) SWIG_fail; |
6922 | } | |
6923 | resultobj = SWIG_Py_Void(); | |
6924 | return resultobj; | |
6925 | fail: | |
6926 | return NULL; | |
6927 | } | |
6928 | ||
6929 | ||
6930 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6931 | PyObject *resultobj = 0; | |
6932 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6933 | int arg2 ; | |
6934 | void *argp1 = 0 ; | |
6935 | int res1 = 0 ; | |
6936 | int val2 ; | |
6937 | int ecode2 = 0 ; | |
6938 | PyObject * obj0 = 0 ; | |
6939 | PyObject * obj1 = 0 ; | |
6940 | char * kwnames[] = { | |
6941 | (char *) "self",(char *) "depth", NULL | |
6942 | }; | |
6943 | ||
6944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6946 | if (!SWIG_IsOK(res1)) { | |
6947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6948 | } | |
6949 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6950 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6951 | if (!SWIG_IsOK(ecode2)) { | |
6952 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
6953 | } | |
6954 | arg2 = static_cast< int >(val2); | |
6955 | { | |
0085ce49 | 6956 | (arg1)->SetDepth(arg2); |
0085ce49 RD |
6957 | if (PyErr_Occurred()) SWIG_fail; |
6958 | } | |
6959 | resultobj = SWIG_Py_Void(); | |
6960 | return resultobj; | |
6961 | fail: | |
6962 | return NULL; | |
6963 | } | |
6964 | ||
6965 | ||
6966 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6967 | PyObject *resultobj = 0; | |
6968 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6969 | wxSize *arg2 = 0 ; | |
6970 | void *argp1 = 0 ; | |
6971 | int res1 = 0 ; | |
6972 | wxSize temp2 ; | |
6973 | PyObject * obj0 = 0 ; | |
6974 | PyObject * obj1 = 0 ; | |
6975 | char * kwnames[] = { | |
6976 | (char *) "self",(char *) "size", NULL | |
6977 | }; | |
6978 | ||
6979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
6980 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6981 | if (!SWIG_IsOK(res1)) { | |
6982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6983 | } | |
6984 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6985 | { | |
6986 | arg2 = &temp2; | |
6987 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6988 | } | |
6989 | { | |
0085ce49 | 6990 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
0085ce49 RD |
6991 | if (PyErr_Occurred()) SWIG_fail; |
6992 | } | |
6993 | resultobj = SWIG_Py_Void(); | |
6994 | return resultobj; | |
6995 | fail: | |
6996 | return NULL; | |
6997 | } | |
6998 | ||
6999 | ||
8f514ab4 RD |
7000 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7001 | PyObject *resultobj = 0; | |
7002 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7003 | buffer arg2 ; | |
7004 | int arg3 ; | |
7005 | void *argp1 = 0 ; | |
7006 | int res1 = 0 ; | |
7007 | Py_ssize_t temp2 ; | |
7008 | PyObject * obj0 = 0 ; | |
7009 | PyObject * obj1 = 0 ; | |
7010 | char * kwnames[] = { | |
7011 | (char *) "self",(char *) "data", NULL | |
7012 | }; | |
7013 | ||
7014 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7015 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7016 | if (!SWIG_IsOK(res1)) { | |
7017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7018 | } | |
7019 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7020 | { | |
7021 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7022 | arg3 = (int)temp2; | |
7023 | } | |
7024 | { | |
7025 | wxBitmap_CopyFromBuffer(arg1,arg2,arg3); | |
7026 | if (PyErr_Occurred()) SWIG_fail; | |
7027 | } | |
7028 | resultobj = SWIG_Py_Void(); | |
7029 | return resultobj; | |
7030 | fail: | |
7031 | return NULL; | |
7032 | } | |
7033 | ||
7034 | ||
7035 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7036 | PyObject *resultobj = 0; | |
7037 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7038 | buffer arg2 ; | |
7039 | int arg3 ; | |
7040 | void *argp1 = 0 ; | |
7041 | int res1 = 0 ; | |
7042 | Py_ssize_t temp2 ; | |
7043 | PyObject * obj0 = 0 ; | |
7044 | PyObject * obj1 = 0 ; | |
7045 | char * kwnames[] = { | |
7046 | (char *) "self",(char *) "data", NULL | |
7047 | }; | |
7048 | ||
7049 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail; | |
7050 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7051 | if (!SWIG_IsOK(res1)) { | |
7052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7053 | } | |
7054 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7055 | { | |
7056 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7057 | arg3 = (int)temp2; | |
7058 | } | |
7059 | { | |
7060 | wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3); | |
7061 | if (PyErr_Occurred()) SWIG_fail; | |
7062 | } | |
7063 | resultobj = SWIG_Py_Void(); | |
7064 | return resultobj; | |
7065 | fail: | |
7066 | return NULL; | |
7067 | } | |
7068 | ||
7069 | ||
0085ce49 RD |
7070 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7071 | PyObject *resultobj = 0; | |
7072 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7073 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7074 | bool result; | |
7075 | void *argp1 = 0 ; | |
7076 | int res1 = 0 ; | |
7077 | void *argp2 = 0 ; | |
7078 | int res2 = 0 ; | |
7079 | PyObject * obj0 = 0 ; | |
7080 | PyObject * obj1 = 0 ; | |
7081 | char * kwnames[] = { | |
7082 | (char *) "self",(char *) "other", NULL | |
7083 | }; | |
7084 | ||
7085 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7087 | if (!SWIG_IsOK(res1)) { | |
7088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7089 | } | |
7090 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7091 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7092 | if (!SWIG_IsOK(res2)) { | |
7093 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7094 | } | |
7095 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7096 | { | |
0085ce49 | 7097 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
0085ce49 RD |
7098 | if (PyErr_Occurred()) SWIG_fail; |
7099 | } | |
7100 | { | |
fc46b7f3 RD |
7101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
7102 | } | |
7103 | return resultobj; | |
7104 | fail: | |
7105 | return NULL; | |
7106 | } | |
7107 | ||
7108 | ||
7109 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7110 | PyObject *resultobj = 0; | |
7111 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7112 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7113 | bool result; | |
7114 | void *argp1 = 0 ; | |
7115 | int res1 = 0 ; | |
7116 | void *argp2 = 0 ; | |
7117 | int res2 = 0 ; | |
7118 | PyObject * obj0 = 0 ; | |
7119 | PyObject * obj1 = 0 ; | |
7120 | char * kwnames[] = { | |
7121 | (char *) "self",(char *) "other", NULL | |
7122 | }; | |
7123 | ||
7124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7126 | if (!SWIG_IsOK(res1)) { | |
7127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7128 | } | |
7129 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7130 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7131 | if (!SWIG_IsOK(res2)) { | |
7132 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7133 | } | |
7134 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7135 | { | |
7136 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
7137 | if (PyErr_Occurred()) SWIG_fail; | |
7138 | } | |
7139 | { | |
7140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7141 | } | |
7142 | return resultobj; | |
7143 | fail: | |
7144 | return NULL; | |
7145 | } | |
7146 | ||
7147 | ||
7148 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7149 | PyObject *obj; | |
7150 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7151 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
7152 | return SWIG_Py_Void(); | |
7153 | } | |
7154 | ||
7155 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7156 | return SWIG_Python_InitShadowInstance(args); | |
7157 | } | |
7158 | ||
7159 | SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7160 | PyObject *resultobj = 0; | |
7161 | int arg1 ; | |
7162 | int arg2 ; | |
7163 | buffer arg3 ; | |
7164 | int arg4 ; | |
7165 | buffer arg5 ; | |
7166 | int arg6 ; | |
7167 | wxBitmap *result = 0 ; | |
7168 | int val1 ; | |
7169 | int ecode1 = 0 ; | |
7170 | int val2 ; | |
7171 | int ecode2 = 0 ; | |
c79fdf86 RD |
7172 | Py_ssize_t temp3 ; |
7173 | Py_ssize_t temp5 ; | |
fc46b7f3 RD |
7174 | PyObject * obj0 = 0 ; |
7175 | PyObject * obj1 = 0 ; | |
7176 | PyObject * obj2 = 0 ; | |
7177 | PyObject * obj3 = 0 ; | |
7178 | char * kwnames[] = { | |
7179 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
7180 | }; | |
7181 | ||
7182 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7183 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7184 | if (!SWIG_IsOK(ecode1)) { | |
7185 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'"); | |
7186 | } | |
7187 | arg1 = static_cast< int >(val1); | |
7188 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7189 | if (!SWIG_IsOK(ecode2)) { | |
7190 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'"); | |
7191 | } | |
7192 | arg2 = static_cast< int >(val2); | |
7193 | { | |
c79fdf86 RD |
7194 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7195 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7196 | } |
7197 | { | |
7198 | if (obj3 != Py_None) { | |
c79fdf86 RD |
7199 | if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail; |
7200 | arg6 = (int)temp5; | |
fc46b7f3 RD |
7201 | } |
7202 | } | |
7203 | { | |
7204 | result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6); | |
7205 | if (PyErr_Occurred()) SWIG_fail; | |
7206 | } | |
7207 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7208 | return resultobj; | |
7209 | fail: | |
7210 | return NULL; | |
7211 | } | |
7212 | ||
7213 | ||
7214 | SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7215 | PyObject *resultobj = 0; | |
7216 | int arg1 ; | |
7217 | int arg2 ; | |
7218 | buffer arg3 ; | |
7219 | int arg4 ; | |
7220 | wxBitmap *result = 0 ; | |
7221 | int val1 ; | |
7222 | int ecode1 = 0 ; | |
7223 | int val2 ; | |
7224 | int ecode2 = 0 ; | |
c79fdf86 | 7225 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7226 | PyObject * obj0 = 0 ; |
7227 | PyObject * obj1 = 0 ; | |
7228 | PyObject * obj2 = 0 ; | |
7229 | char * kwnames[] = { | |
7230 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7231 | }; | |
7232 | ||
7233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7234 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7235 | if (!SWIG_IsOK(ecode1)) { | |
7236 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'"); | |
7237 | } | |
7238 | arg1 = static_cast< int >(val1); | |
7239 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7240 | if (!SWIG_IsOK(ecode2)) { | |
7241 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'"); | |
7242 | } | |
7243 | arg2 = static_cast< int >(val2); | |
7244 | { | |
c79fdf86 RD |
7245 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7246 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7247 | } |
7248 | { | |
7249 | result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4); | |
7250 | if (PyErr_Occurred()) SWIG_fail; | |
7251 | } | |
7252 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7253 | return resultobj; | |
7254 | fail: | |
7255 | return NULL; | |
7256 | } | |
7257 | ||
7258 | ||
7259 | SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7260 | PyObject *resultobj = 0; | |
7261 | int arg1 ; | |
7262 | int arg2 ; | |
7263 | buffer arg3 ; | |
7264 | int arg4 ; | |
7265 | wxBitmap *result = 0 ; | |
7266 | int val1 ; | |
7267 | int ecode1 = 0 ; | |
7268 | int val2 ; | |
7269 | int ecode2 = 0 ; | |
c79fdf86 | 7270 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7271 | PyObject * obj0 = 0 ; |
7272 | PyObject * obj1 = 0 ; | |
7273 | PyObject * obj2 = 0 ; | |
7274 | char * kwnames[] = { | |
7275 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7276 | }; | |
7277 | ||
7278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7279 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7280 | if (!SWIG_IsOK(ecode1)) { | |
7281 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'"); | |
7282 | } | |
7283 | arg1 = static_cast< int >(val1); | |
7284 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7285 | if (!SWIG_IsOK(ecode2)) { | |
7286 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'"); | |
7287 | } | |
7288 | arg2 = static_cast< int >(val2); | |
7289 | { | |
c79fdf86 RD |
7290 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7291 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7292 | } |
7293 | { | |
7294 | result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4); | |
7295 | if (PyErr_Occurred()) SWIG_fail; | |
7296 | } | |
7297 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7298 | return resultobj; | |
7299 | fail: | |
7300 | return NULL; | |
7301 | } | |
7302 | ||
7303 | ||
7304 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7305 | PyObject *resultobj = 0; | |
7306 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7307 | wxPoint result; | |
7308 | void *argp1 = 0 ; | |
7309 | int res1 = 0 ; | |
7310 | PyObject *swig_obj[1] ; | |
7311 | ||
7312 | if (!args) SWIG_fail; | |
7313 | swig_obj[0] = args; | |
7314 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7315 | if (!SWIG_IsOK(res1)) { | |
7316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7317 | } | |
7318 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7319 | { | |
7320 | result = ((wxPixelDataBase const *)arg1)->GetOrigin(); | |
7321 | if (PyErr_Occurred()) SWIG_fail; | |
7322 | } | |
7323 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
7324 | return resultobj; | |
7325 | fail: | |
7326 | return NULL; | |
7327 | } | |
7328 | ||
7329 | ||
7330 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7331 | PyObject *resultobj = 0; | |
7332 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7333 | int result; | |
7334 | void *argp1 = 0 ; | |
7335 | int res1 = 0 ; | |
7336 | PyObject *swig_obj[1] ; | |
7337 | ||
7338 | if (!args) SWIG_fail; | |
7339 | swig_obj[0] = args; | |
7340 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7341 | if (!SWIG_IsOK(res1)) { | |
7342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7343 | } | |
7344 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7345 | { | |
7346 | result = (int)((wxPixelDataBase const *)arg1)->GetWidth(); | |
7347 | if (PyErr_Occurred()) SWIG_fail; | |
7348 | } | |
7349 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7350 | return resultobj; | |
7351 | fail: | |
7352 | return NULL; | |
7353 | } | |
7354 | ||
7355 | ||
7356 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7357 | PyObject *resultobj = 0; | |
7358 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7359 | int result; | |
7360 | void *argp1 = 0 ; | |
7361 | int res1 = 0 ; | |
7362 | PyObject *swig_obj[1] ; | |
7363 | ||
7364 | if (!args) SWIG_fail; | |
7365 | swig_obj[0] = args; | |
7366 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7367 | if (!SWIG_IsOK(res1)) { | |
7368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7369 | } | |
7370 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7371 | { | |
7372 | result = (int)((wxPixelDataBase const *)arg1)->GetHeight(); | |
7373 | if (PyErr_Occurred()) SWIG_fail; | |
7374 | } | |
7375 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7376 | return resultobj; | |
7377 | fail: | |
7378 | return NULL; | |
7379 | } | |
7380 | ||
7381 | ||
7382 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7383 | PyObject *resultobj = 0; | |
7384 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7385 | wxSize result; | |
7386 | void *argp1 = 0 ; | |
7387 | int res1 = 0 ; | |
7388 | PyObject *swig_obj[1] ; | |
7389 | ||
7390 | if (!args) SWIG_fail; | |
7391 | swig_obj[0] = args; | |
7392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7393 | if (!SWIG_IsOK(res1)) { | |
7394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7395 | } | |
7396 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7397 | { | |
7398 | result = ((wxPixelDataBase const *)arg1)->GetSize(); | |
7399 | if (PyErr_Occurred()) SWIG_fail; | |
7400 | } | |
7401 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
7402 | return resultobj; | |
7403 | fail: | |
7404 | return NULL; | |
7405 | } | |
7406 | ||
7407 | ||
7408 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7409 | PyObject *resultobj = 0; | |
7410 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7411 | int result; | |
7412 | void *argp1 = 0 ; | |
7413 | int res1 = 0 ; | |
7414 | PyObject *swig_obj[1] ; | |
7415 | ||
7416 | if (!args) SWIG_fail; | |
7417 | swig_obj[0] = args; | |
7418 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7419 | if (!SWIG_IsOK(res1)) { | |
7420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7421 | } | |
7422 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7423 | { | |
7424 | result = (int)((wxPixelDataBase const *)arg1)->GetRowStride(); | |
7425 | if (PyErr_Occurred()) SWIG_fail; | |
7426 | } | |
7427 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7428 | return resultobj; | |
7429 | fail: | |
7430 | return NULL; | |
7431 | } | |
7432 | ||
7433 | ||
7434 | SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7435 | PyObject *obj; | |
7436 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7437 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj)); | |
7438 | return SWIG_Py_Void(); | |
7439 | } | |
7440 | ||
7441 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7442 | PyObject *resultobj = 0; | |
7443 | wxBitmap *arg1 = 0 ; | |
7444 | wxNativePixelData *result = 0 ; | |
7445 | void *argp1 = 0 ; | |
7446 | int res1 = 0 ; | |
7447 | ||
7448 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7449 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7450 | if (!SWIG_IsOK(res1)) { | |
7451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7452 | } | |
7453 | if (!argp1) { | |
7454 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7455 | } | |
7456 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7457 | { | |
7458 | result = (wxNativePixelData *)new wxNativePixelData(*arg1); | |
7459 | if (PyErr_Occurred()) SWIG_fail; | |
7460 | } | |
7461 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7462 | return resultobj; | |
7463 | fail: | |
7464 | return NULL; | |
7465 | } | |
7466 | ||
7467 | ||
7468 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7469 | PyObject *resultobj = 0; | |
7470 | wxBitmap *arg1 = 0 ; | |
7471 | wxRect *arg2 = 0 ; | |
7472 | wxNativePixelData *result = 0 ; | |
7473 | void *argp1 = 0 ; | |
7474 | int res1 = 0 ; | |
7475 | wxRect temp2 ; | |
7476 | ||
7477 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7478 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7479 | if (!SWIG_IsOK(res1)) { | |
7480 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7481 | } | |
7482 | if (!argp1) { | |
7483 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7484 | } | |
7485 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7486 | { | |
7487 | arg2 = &temp2; | |
7488 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7489 | } | |
7490 | { | |
7491 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2); | |
7492 | if (PyErr_Occurred()) SWIG_fail; | |
7493 | } | |
7494 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7495 | return resultobj; | |
7496 | fail: | |
7497 | return NULL; | |
7498 | } | |
7499 | ||
7500 | ||
7501 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7502 | PyObject *resultobj = 0; | |
7503 | wxBitmap *arg1 = 0 ; | |
7504 | wxPoint *arg2 = 0 ; | |
7505 | wxSize *arg3 = 0 ; | |
7506 | wxNativePixelData *result = 0 ; | |
7507 | void *argp1 = 0 ; | |
7508 | int res1 = 0 ; | |
7509 | wxPoint temp2 ; | |
7510 | wxSize temp3 ; | |
7511 | ||
7512 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
7513 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7514 | if (!SWIG_IsOK(res1)) { | |
7515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7516 | } | |
7517 | if (!argp1) { | |
7518 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7519 | } | |
7520 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7521 | { | |
7522 | arg2 = &temp2; | |
7523 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7524 | } | |
7525 | { | |
7526 | arg3 = &temp3; | |
7527 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
7528 | } | |
7529 | { | |
7530 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
7531 | if (PyErr_Occurred()) SWIG_fail; | |
7532 | } | |
7533 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7534 | return resultobj; | |
7535 | fail: | |
7536 | return NULL; | |
7537 | } | |
7538 | ||
7539 | ||
7540 | SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) { | |
7541 | int argc; | |
7542 | PyObject *argv[4]; | |
7543 | ||
7544 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail; | |
7545 | --argc; | |
7546 | if (argc == 1) { | |
7547 | return _wrap_new_NativePixelData__SWIG_0(self, argc, argv); | |
7548 | } | |
7549 | if (argc == 2) { | |
7550 | return _wrap_new_NativePixelData__SWIG_1(self, argc, argv); | |
7551 | } | |
7552 | if (argc == 3) { | |
7553 | return _wrap_new_NativePixelData__SWIG_2(self, argc, argv); | |
7554 | } | |
7555 | ||
7556 | fail: | |
7557 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'"); | |
7558 | return NULL; | |
7559 | } | |
7560 | ||
7561 | ||
7562 | SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7563 | PyObject *resultobj = 0; | |
7564 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7565 | void *argp1 = 0 ; | |
7566 | int res1 = 0 ; | |
7567 | PyObject *swig_obj[1] ; | |
7568 | ||
7569 | if (!args) SWIG_fail; | |
7570 | swig_obj[0] = args; | |
7571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 ); | |
7572 | if (!SWIG_IsOK(res1)) { | |
7573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7574 | } | |
7575 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7576 | { | |
7577 | delete arg1; | |
7578 | ||
7579 | if (PyErr_Occurred()) SWIG_fail; | |
7580 | } | |
7581 | resultobj = SWIG_Py_Void(); | |
7582 | return resultobj; | |
7583 | fail: | |
7584 | return NULL; | |
7585 | } | |
7586 | ||
7587 | ||
7588 | SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7589 | PyObject *resultobj = 0; | |
7590 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7591 | wxNativePixelData_Accessor result; | |
7592 | void *argp1 = 0 ; | |
7593 | int res1 = 0 ; | |
7594 | PyObject *swig_obj[1] ; | |
7595 | ||
7596 | if (!args) SWIG_fail; | |
7597 | swig_obj[0] = args; | |
7598 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7599 | if (!SWIG_IsOK(res1)) { | |
7600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'"); | |
7601 | } | |
7602 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7603 | { | |
7604 | result = ((wxNativePixelData const *)arg1)->GetPixels(); | |
7605 | if (PyErr_Occurred()) SWIG_fail; | |
7606 | } | |
7607 | resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
7608 | return resultobj; | |
7609 | fail: | |
7610 | return NULL; | |
7611 | } | |
7612 | ||
7613 | ||
7614 | SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7615 | PyObject *resultobj = 0; | |
7616 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7617 | void *argp1 = 0 ; | |
7618 | int res1 = 0 ; | |
7619 | PyObject *swig_obj[1] ; | |
7620 | ||
7621 | if (!args) SWIG_fail; | |
7622 | swig_obj[0] = args; | |
7623 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7624 | if (!SWIG_IsOK(res1)) { | |
7625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7626 | } | |
7627 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7628 | { | |
7629 | (arg1)->UseAlpha(); | |
7630 | if (PyErr_Occurred()) SWIG_fail; | |
7631 | } | |
7632 | resultobj = SWIG_Py_Void(); | |
7633 | return resultobj; | |
7634 | fail: | |
7635 | return NULL; | |
7636 | } | |
7637 | ||
7638 | ||
7639 | SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7640 | PyObject *resultobj = 0; | |
7641 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7642 | bool result; | |
7643 | void *argp1 = 0 ; | |
7644 | int res1 = 0 ; | |
7645 | PyObject *swig_obj[1] ; | |
7646 | ||
7647 | if (!args) SWIG_fail; | |
7648 | swig_obj[0] = args; | |
7649 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7650 | if (!SWIG_IsOK(res1)) { | |
7651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7652 | } | |
7653 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7654 | { | |
7655 | result = (bool)wxNativePixelData___nonzero__(arg1); | |
7656 | if (PyErr_Occurred()) SWIG_fail; | |
7657 | } | |
7658 | { | |
7659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7660 | } | |
7661 | return resultobj; | |
7662 | fail: | |
7663 | return NULL; | |
7664 | } | |
7665 | ||
7666 | ||
7667 | SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7668 | PyObject *obj; | |
7669 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7670 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj)); | |
7671 | return SWIG_Py_Void(); | |
7672 | } | |
7673 | ||
7674 | SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7675 | return SWIG_Python_InitShadowInstance(args); | |
7676 | } | |
7677 | ||
7678 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7679 | PyObject *resultobj = 0; | |
7680 | wxNativePixelData *arg1 = 0 ; | |
7681 | wxNativePixelData_Accessor *result = 0 ; | |
7682 | void *argp1 = 0 ; | |
7683 | int res1 = 0 ; | |
7684 | ||
7685 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7686 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7687 | if (!SWIG_IsOK(res1)) { | |
7688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7689 | } | |
7690 | if (!argp1) { | |
7691 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7692 | } | |
7693 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7694 | { | |
7695 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1); | |
7696 | if (PyErr_Occurred()) SWIG_fail; | |
7697 | } | |
7698 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7699 | return resultobj; | |
7700 | fail: | |
7701 | return NULL; | |
7702 | } | |
7703 | ||
7704 | ||
7705 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7706 | PyObject *resultobj = 0; | |
7707 | wxBitmap *arg1 = 0 ; | |
7708 | wxNativePixelData *arg2 = 0 ; | |
7709 | wxNativePixelData_Accessor *result = 0 ; | |
7710 | void *argp1 = 0 ; | |
7711 | int res1 = 0 ; | |
7712 | void *argp2 = 0 ; | |
7713 | int res2 = 0 ; | |
7714 | ||
7715 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7716 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7717 | if (!SWIG_IsOK(res1)) { | |
7718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7719 | } | |
7720 | if (!argp1) { | |
7721 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7722 | } | |
7723 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7724 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7725 | if (!SWIG_IsOK(res2)) { | |
7726 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7727 | } | |
7728 | if (!argp2) { | |
7729 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7730 | } | |
7731 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7732 | { | |
7733 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2); | |
7734 | if (PyErr_Occurred()) SWIG_fail; | |
7735 | } | |
7736 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7737 | return resultobj; | |
7738 | fail: | |
7739 | return NULL; | |
7740 | } | |
7741 | ||
7742 | ||
7743 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
7744 | PyObject *resultobj = 0; | |
7745 | wxNativePixelData_Accessor *result = 0 ; | |
7746 | ||
7747 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
7748 | { | |
7749 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(); | |
7750 | if (PyErr_Occurred()) SWIG_fail; | |
7751 | } | |
7752 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7753 | return resultobj; | |
7754 | fail: | |
7755 | return NULL; | |
7756 | } | |
7757 | ||
7758 | ||
7759 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) { | |
7760 | int argc; | |
7761 | PyObject *argv[3]; | |
7762 | ||
7763 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail; | |
7764 | --argc; | |
7765 | if (argc == 0) { | |
7766 | return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv); | |
7767 | } | |
7768 | if (argc == 1) { | |
7769 | return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv); | |
7770 | } | |
7771 | if (argc == 2) { | |
7772 | return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv); | |
7773 | } | |
7774 | ||
7775 | fail: | |
7776 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'"); | |
7777 | return NULL; | |
7778 | } | |
7779 | ||
7780 | ||
7781 | SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7782 | PyObject *resultobj = 0; | |
7783 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7784 | void *argp1 = 0 ; | |
7785 | int res1 = 0 ; | |
7786 | PyObject *swig_obj[1] ; | |
7787 | ||
7788 | if (!args) SWIG_fail; | |
7789 | swig_obj[0] = args; | |
7790 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
7791 | if (!SWIG_IsOK(res1)) { | |
7792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7793 | } | |
7794 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7795 | { | |
7796 | delete arg1; | |
7797 | ||
7798 | if (PyErr_Occurred()) SWIG_fail; | |
7799 | } | |
7800 | resultobj = SWIG_Py_Void(); | |
7801 | return resultobj; | |
7802 | fail: | |
7803 | return NULL; | |
7804 | } | |
7805 | ||
7806 | ||
7807 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7808 | PyObject *resultobj = 0; | |
7809 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7810 | wxNativePixelData *arg2 = 0 ; | |
7811 | void *argp1 = 0 ; | |
7812 | int res1 = 0 ; | |
7813 | void *argp2 = 0 ; | |
7814 | int res2 = 0 ; | |
7815 | PyObject * obj0 = 0 ; | |
7816 | PyObject * obj1 = 0 ; | |
7817 | char * kwnames[] = { | |
7818 | (char *) "self",(char *) "data", NULL | |
7819 | }; | |
7820 | ||
7821 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
7822 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7823 | if (!SWIG_IsOK(res1)) { | |
7824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7825 | } | |
7826 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7827 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7828 | if (!SWIG_IsOK(res2)) { | |
7829 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7830 | } | |
7831 | if (!argp2) { | |
7832 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7833 | } | |
7834 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7835 | { | |
7836 | (arg1)->Reset((wxNativePixelData const &)*arg2); | |
7837 | if (PyErr_Occurred()) SWIG_fail; | |
7838 | } | |
7839 | resultobj = SWIG_Py_Void(); | |
7840 | return resultobj; | |
7841 | fail: | |
7842 | return NULL; | |
7843 | } | |
7844 | ||
7845 | ||
7846 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7847 | PyObject *resultobj = 0; | |
7848 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7849 | bool result; | |
7850 | void *argp1 = 0 ; | |
7851 | int res1 = 0 ; | |
7852 | PyObject *swig_obj[1] ; | |
7853 | ||
7854 | if (!args) SWIG_fail; | |
7855 | swig_obj[0] = args; | |
7856 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7857 | if (!SWIG_IsOK(res1)) { | |
7858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'"); | |
7859 | } | |
7860 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7861 | { | |
7862 | result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk(); | |
7863 | if (PyErr_Occurred()) SWIG_fail; | |
7864 | } | |
7865 | { | |
7866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7867 | } | |
7868 | return resultobj; | |
7869 | fail: | |
7870 | return NULL; | |
7871 | } | |
7872 | ||
7873 | ||
7874 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7875 | PyObject *resultobj = 0; | |
7876 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7877 | void *argp1 = 0 ; | |
7878 | int res1 = 0 ; | |
7879 | PyObject *swig_obj[1] ; | |
7880 | ||
7881 | if (!args) SWIG_fail; | |
7882 | swig_obj[0] = args; | |
7883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7884 | if (!SWIG_IsOK(res1)) { | |
7885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7886 | } | |
7887 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7888 | { | |
7889 | wxNativePixelData_Accessor_nextPixel(arg1); | |
7890 | if (PyErr_Occurred()) SWIG_fail; | |
7891 | } | |
7892 | resultobj = SWIG_Py_Void(); | |
7893 | return resultobj; | |
7894 | fail: | |
7895 | return NULL; | |
7896 | } | |
7897 | ||
7898 | ||
7899 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7900 | PyObject *resultobj = 0; | |
7901 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7902 | wxNativePixelData *arg2 = 0 ; | |
7903 | int arg3 ; | |
7904 | int arg4 ; | |
7905 | void *argp1 = 0 ; | |
7906 | int res1 = 0 ; | |
7907 | void *argp2 = 0 ; | |
7908 | int res2 = 0 ; | |
7909 | int val3 ; | |
7910 | int ecode3 = 0 ; | |
7911 | int val4 ; | |
7912 | int ecode4 = 0 ; | |
7913 | PyObject * obj0 = 0 ; | |
7914 | PyObject * obj1 = 0 ; | |
7915 | PyObject * obj2 = 0 ; | |
7916 | PyObject * obj3 = 0 ; | |
7917 | char * kwnames[] = { | |
7918 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
7919 | }; | |
7920 | ||
7921 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7922 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7923 | if (!SWIG_IsOK(res1)) { | |
7924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7925 | } | |
7926 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7927 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7928 | if (!SWIG_IsOK(res2)) { | |
7929 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7930 | } | |
7931 | if (!argp2) { | |
7932 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7933 | } | |
7934 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7935 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7936 | if (!SWIG_IsOK(ecode3)) { | |
7937 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
7938 | } | |
7939 | arg3 = static_cast< int >(val3); | |
7940 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7941 | if (!SWIG_IsOK(ecode4)) { | |
7942 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
7943 | } | |
7944 | arg4 = static_cast< int >(val4); | |
7945 | { | |
7946 | (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4); | |
7947 | if (PyErr_Occurred()) SWIG_fail; | |
7948 | } | |
7949 | resultobj = SWIG_Py_Void(); | |
7950 | return resultobj; | |
7951 | fail: | |
7952 | return NULL; | |
7953 | } | |
7954 | ||
7955 | ||
7956 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7957 | PyObject *resultobj = 0; | |
7958 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7959 | wxNativePixelData *arg2 = 0 ; | |
7960 | int arg3 ; | |
7961 | void *argp1 = 0 ; | |
7962 | int res1 = 0 ; | |
7963 | void *argp2 = 0 ; | |
7964 | int res2 = 0 ; | |
7965 | int val3 ; | |
7966 | int ecode3 = 0 ; | |
7967 | PyObject * obj0 = 0 ; | |
7968 | PyObject * obj1 = 0 ; | |
7969 | PyObject * obj2 = 0 ; | |
7970 | char * kwnames[] = { | |
7971 | (char *) "self",(char *) "data",(char *) "x", NULL | |
7972 | }; | |
7973 | ||
7974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7976 | if (!SWIG_IsOK(res1)) { | |
7977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7978 | } | |
7979 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7980 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7981 | if (!SWIG_IsOK(res2)) { | |
7982 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7983 | } | |
7984 | if (!argp2) { | |
7985 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7986 | } | |
7987 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7988 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7989 | if (!SWIG_IsOK(ecode3)) { | |
7990 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
7991 | } | |
7992 | arg3 = static_cast< int >(val3); | |
7993 | { | |
7994 | (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3); | |
7995 | if (PyErr_Occurred()) SWIG_fail; | |
7996 | } | |
7997 | resultobj = SWIG_Py_Void(); | |
7998 | return resultobj; | |
7999 | fail: | |
8000 | return NULL; | |
8001 | } | |
8002 | ||
8003 | ||
8004 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8005 | PyObject *resultobj = 0; | |
8006 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8007 | wxNativePixelData *arg2 = 0 ; | |
8008 | int arg3 ; | |
8009 | void *argp1 = 0 ; | |
8010 | int res1 = 0 ; | |
8011 | void *argp2 = 0 ; | |
8012 | int res2 = 0 ; | |
8013 | int val3 ; | |
8014 | int ecode3 = 0 ; | |
8015 | PyObject * obj0 = 0 ; | |
8016 | PyObject * obj1 = 0 ; | |
8017 | PyObject * obj2 = 0 ; | |
8018 | char * kwnames[] = { | |
8019 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8020 | }; | |
8021 | ||
8022 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8023 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8024 | if (!SWIG_IsOK(res1)) { | |
8025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8026 | } | |
8027 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8028 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8029 | if (!SWIG_IsOK(res2)) { | |
8030 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8031 | } | |
8032 | if (!argp2) { | |
8033 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8034 | } | |
8035 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8036 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8037 | if (!SWIG_IsOK(ecode3)) { | |
8038 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8039 | } | |
8040 | arg3 = static_cast< int >(val3); | |
8041 | { | |
8042 | (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3); | |
8043 | if (PyErr_Occurred()) SWIG_fail; | |
8044 | } | |
8045 | resultobj = SWIG_Py_Void(); | |
8046 | return resultobj; | |
8047 | fail: | |
8048 | return NULL; | |
8049 | } | |
8050 | ||
8051 | ||
8052 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8053 | PyObject *resultobj = 0; | |
8054 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8055 | wxNativePixelData *arg2 = 0 ; | |
8056 | int arg3 ; | |
8057 | int arg4 ; | |
8058 | void *argp1 = 0 ; | |
8059 | int res1 = 0 ; | |
8060 | void *argp2 = 0 ; | |
8061 | int res2 = 0 ; | |
8062 | int val3 ; | |
8063 | int ecode3 = 0 ; | |
8064 | int val4 ; | |
8065 | int ecode4 = 0 ; | |
8066 | PyObject * obj0 = 0 ; | |
8067 | PyObject * obj1 = 0 ; | |
8068 | PyObject * obj2 = 0 ; | |
8069 | PyObject * obj3 = 0 ; | |
8070 | char * kwnames[] = { | |
8071 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8072 | }; | |
8073 | ||
8074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8075 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8076 | if (!SWIG_IsOK(res1)) { | |
8077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8078 | } | |
8079 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8080 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8081 | if (!SWIG_IsOK(res2)) { | |
8082 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8083 | } | |
8084 | if (!argp2) { | |
8085 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8086 | } | |
8087 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8088 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8089 | if (!SWIG_IsOK(ecode3)) { | |
8090 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8091 | } | |
8092 | arg3 = static_cast< int >(val3); | |
8093 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8094 | if (!SWIG_IsOK(ecode4)) { | |
8095 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8096 | } | |
8097 | arg4 = static_cast< int >(val4); | |
8098 | { | |
8099 | (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4); | |
8100 | if (PyErr_Occurred()) SWIG_fail; | |
8101 | } | |
8102 | resultobj = SWIG_Py_Void(); | |
8103 | return resultobj; | |
8104 | fail: | |
8105 | return NULL; | |
8106 | } | |
8107 | ||
8108 | ||
8109 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8110 | PyObject *resultobj = 0; | |
8111 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8112 | byte arg2 ; | |
8113 | byte arg3 ; | |
8114 | byte arg4 ; | |
8115 | void *argp1 = 0 ; | |
8116 | int res1 = 0 ; | |
8117 | unsigned char val2 ; | |
8118 | int ecode2 = 0 ; | |
8119 | unsigned char val3 ; | |
8120 | int ecode3 = 0 ; | |
8121 | unsigned char val4 ; | |
8122 | int ecode4 = 0 ; | |
8123 | PyObject * obj0 = 0 ; | |
8124 | PyObject * obj1 = 0 ; | |
8125 | PyObject * obj2 = 0 ; | |
8126 | PyObject * obj3 = 0 ; | |
8127 | char * kwnames[] = { | |
8128 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
8129 | }; | |
8130 | ||
8131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8133 | if (!SWIG_IsOK(res1)) { | |
8134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8135 | } | |
8136 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8137 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8138 | if (!SWIG_IsOK(ecode2)) { | |
8139 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8140 | } | |
8141 | arg2 = static_cast< byte >(val2); | |
8142 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8143 | if (!SWIG_IsOK(ecode3)) { | |
8144 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8145 | } | |
8146 | arg3 = static_cast< byte >(val3); | |
8147 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8148 | if (!SWIG_IsOK(ecode4)) { | |
8149 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8150 | } | |
8151 | arg4 = static_cast< byte >(val4); | |
8152 | { | |
8153 | wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4); | |
8154 | if (PyErr_Occurred()) SWIG_fail; | |
8155 | } | |
8156 | resultobj = SWIG_Py_Void(); | |
8157 | return resultobj; | |
8158 | fail: | |
8159 | return NULL; | |
8160 | } | |
8161 | ||
8162 | ||
8163 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8164 | PyObject *resultobj = 0; | |
8165 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8166 | PyObject *result = 0 ; | |
8167 | void *argp1 = 0 ; | |
8168 | int res1 = 0 ; | |
8169 | PyObject *swig_obj[1] ; | |
8170 | ||
8171 | if (!args) SWIG_fail; | |
8172 | swig_obj[0] = args; | |
8173 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8174 | if (!SWIG_IsOK(res1)) { | |
8175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8176 | } | |
8177 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8178 | { | |
8179 | result = (PyObject *)wxNativePixelData_Accessor_Get(arg1); | |
8180 | if (PyErr_Occurred()) SWIG_fail; | |
8181 | } | |
8182 | resultobj = result; | |
8183 | return resultobj; | |
8184 | fail: | |
8185 | return NULL; | |
8186 | } | |
8187 | ||
8188 | ||
8189 | SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8190 | PyObject *obj; | |
8191 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8192 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj)); | |
8193 | return SWIG_Py_Void(); | |
8194 | } | |
8195 | ||
8196 | SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8197 | return SWIG_Python_InitShadowInstance(args); | |
8198 | } | |
8199 | ||
8200 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8201 | PyObject *resultobj = 0; | |
8202 | wxBitmap *arg1 = 0 ; | |
8203 | wxAlphaPixelData *result = 0 ; | |
8204 | void *argp1 = 0 ; | |
8205 | int res1 = 0 ; | |
8206 | ||
8207 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8209 | if (!SWIG_IsOK(res1)) { | |
8210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8211 | } | |
8212 | if (!argp1) { | |
8213 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8214 | } | |
8215 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8216 | { | |
8217 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1); | |
8218 | if (PyErr_Occurred()) SWIG_fail; | |
8219 | } | |
8220 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8221 | return resultobj; | |
8222 | fail: | |
8223 | return NULL; | |
8224 | } | |
8225 | ||
8226 | ||
8227 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8228 | PyObject *resultobj = 0; | |
8229 | wxBitmap *arg1 = 0 ; | |
8230 | wxRect *arg2 = 0 ; | |
8231 | wxAlphaPixelData *result = 0 ; | |
8232 | void *argp1 = 0 ; | |
8233 | int res1 = 0 ; | |
8234 | wxRect temp2 ; | |
8235 | ||
8236 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8238 | if (!SWIG_IsOK(res1)) { | |
8239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8240 | } | |
8241 | if (!argp1) { | |
8242 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8243 | } | |
8244 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8245 | { | |
8246 | arg2 = &temp2; | |
8247 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8248 | } | |
8249 | { | |
8250 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2); | |
8251 | if (PyErr_Occurred()) SWIG_fail; | |
8252 | } | |
8253 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8254 | return resultobj; | |
8255 | fail: | |
8256 | return NULL; | |
8257 | } | |
8258 | ||
8259 | ||
8260 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8261 | PyObject *resultobj = 0; | |
8262 | wxBitmap *arg1 = 0 ; | |
8263 | wxPoint *arg2 = 0 ; | |
8264 | wxSize *arg3 = 0 ; | |
8265 | wxAlphaPixelData *result = 0 ; | |
8266 | void *argp1 = 0 ; | |
8267 | int res1 = 0 ; | |
8268 | wxPoint temp2 ; | |
8269 | wxSize temp3 ; | |
8270 | ||
8271 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
8272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8273 | if (!SWIG_IsOK(res1)) { | |
8274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8275 | } | |
8276 | if (!argp1) { | |
8277 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8278 | } | |
8279 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8280 | { | |
8281 | arg2 = &temp2; | |
8282 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8283 | } | |
8284 | { | |
8285 | arg3 = &temp3; | |
8286 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
8287 | } | |
8288 | { | |
8289 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8290 | if (PyErr_Occurred()) SWIG_fail; | |
8291 | } | |
8292 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8293 | return resultobj; | |
8294 | fail: | |
8295 | return NULL; | |
8296 | } | |
8297 | ||
8298 | ||
8299 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) { | |
8300 | int argc; | |
8301 | PyObject *argv[4]; | |
8302 | ||
8303 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail; | |
8304 | --argc; | |
8305 | if (argc == 1) { | |
8306 | return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv); | |
8307 | } | |
8308 | if (argc == 2) { | |
8309 | return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv); | |
8310 | } | |
8311 | if (argc == 3) { | |
8312 | return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv); | |
8313 | } | |
8314 | ||
8315 | fail: | |
8316 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'"); | |
8317 | return NULL; | |
8318 | } | |
8319 | ||
8320 | ||
8321 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8322 | PyObject *resultobj = 0; | |
8323 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8324 | void *argp1 = 0 ; | |
8325 | int res1 = 0 ; | |
8326 | PyObject *swig_obj[1] ; | |
8327 | ||
8328 | if (!args) SWIG_fail; | |
8329 | swig_obj[0] = args; | |
8330 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 ); | |
8331 | if (!SWIG_IsOK(res1)) { | |
8332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8333 | } | |
8334 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8335 | { | |
8336 | delete arg1; | |
8337 | ||
8338 | if (PyErr_Occurred()) SWIG_fail; | |
8339 | } | |
8340 | resultobj = SWIG_Py_Void(); | |
8341 | return resultobj; | |
8342 | fail: | |
8343 | return NULL; | |
8344 | } | |
8345 | ||
8346 | ||
8347 | SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8348 | PyObject *resultobj = 0; | |
8349 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8350 | wxAlphaPixelData_Accessor result; | |
8351 | void *argp1 = 0 ; | |
8352 | int res1 = 0 ; | |
8353 | PyObject *swig_obj[1] ; | |
8354 | ||
8355 | if (!args) SWIG_fail; | |
8356 | swig_obj[0] = args; | |
8357 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8358 | if (!SWIG_IsOK(res1)) { | |
8359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'"); | |
8360 | } | |
8361 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8362 | { | |
8363 | result = ((wxAlphaPixelData const *)arg1)->GetPixels(); | |
8364 | if (PyErr_Occurred()) SWIG_fail; | |
8365 | } | |
8366 | resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
8367 | return resultobj; | |
8368 | fail: | |
8369 | return NULL; | |
8370 | } | |
8371 | ||
8372 | ||
8373 | SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8374 | PyObject *resultobj = 0; | |
8375 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8376 | void *argp1 = 0 ; | |
8377 | int res1 = 0 ; | |
8378 | PyObject *swig_obj[1] ; | |
8379 | ||
8380 | if (!args) SWIG_fail; | |
8381 | swig_obj[0] = args; | |
8382 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8383 | if (!SWIG_IsOK(res1)) { | |
8384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8385 | } | |
8386 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8387 | { | |
8388 | (arg1)->UseAlpha(); | |
8389 | if (PyErr_Occurred()) SWIG_fail; | |
8390 | } | |
8391 | resultobj = SWIG_Py_Void(); | |
8392 | return resultobj; | |
8393 | fail: | |
8394 | return NULL; | |
8395 | } | |
8396 | ||
8397 | ||
8398 | SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8399 | PyObject *resultobj = 0; | |
8400 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8401 | bool result; | |
8402 | void *argp1 = 0 ; | |
8403 | int res1 = 0 ; | |
8404 | PyObject *swig_obj[1] ; | |
8405 | ||
8406 | if (!args) SWIG_fail; | |
8407 | swig_obj[0] = args; | |
8408 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8409 | if (!SWIG_IsOK(res1)) { | |
8410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8411 | } | |
8412 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8413 | { | |
8414 | result = (bool)wxAlphaPixelData___nonzero__(arg1); | |
8415 | if (PyErr_Occurred()) SWIG_fail; | |
8416 | } | |
8417 | { | |
8418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8419 | } | |
8420 | return resultobj; | |
8421 | fail: | |
8422 | return NULL; | |
8423 | } | |
8424 | ||
8425 | ||
8426 | SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8427 | PyObject *obj; | |
8428 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8429 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj)); | |
8430 | return SWIG_Py_Void(); | |
8431 | } | |
8432 | ||
8433 | SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8434 | return SWIG_Python_InitShadowInstance(args); | |
8435 | } | |
8436 | ||
8437 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8438 | PyObject *resultobj = 0; | |
8439 | wxAlphaPixelData *arg1 = 0 ; | |
8440 | wxAlphaPixelData_Accessor *result = 0 ; | |
8441 | void *argp1 = 0 ; | |
8442 | int res1 = 0 ; | |
8443 | ||
8444 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8445 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8446 | if (!SWIG_IsOK(res1)) { | |
8447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8448 | } | |
8449 | if (!argp1) { | |
8450 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8451 | } | |
8452 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8453 | { | |
8454 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1); | |
8455 | if (PyErr_Occurred()) SWIG_fail; | |
8456 | } | |
8457 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8458 | return resultobj; | |
8459 | fail: | |
8460 | return NULL; | |
8461 | } | |
8462 | ||
8463 | ||
8464 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8465 | PyObject *resultobj = 0; | |
8466 | wxBitmap *arg1 = 0 ; | |
8467 | wxAlphaPixelData *arg2 = 0 ; | |
8468 | wxAlphaPixelData_Accessor *result = 0 ; | |
8469 | void *argp1 = 0 ; | |
8470 | int res1 = 0 ; | |
8471 | void *argp2 = 0 ; | |
8472 | int res2 = 0 ; | |
8473 | ||
8474 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8476 | if (!SWIG_IsOK(res1)) { | |
8477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8478 | } | |
8479 | if (!argp1) { | |
8480 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8481 | } | |
8482 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8483 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8484 | if (!SWIG_IsOK(res2)) { | |
8485 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8486 | } | |
8487 | if (!argp2) { | |
8488 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8489 | } | |
8490 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8491 | { | |
8492 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2); | |
8493 | if (PyErr_Occurred()) SWIG_fail; | |
8494 | } | |
8495 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8496 | return resultobj; | |
8497 | fail: | |
8498 | return NULL; | |
8499 | } | |
8500 | ||
8501 | ||
8502 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
8503 | PyObject *resultobj = 0; | |
8504 | wxAlphaPixelData_Accessor *result = 0 ; | |
8505 | ||
8506 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
8507 | { | |
8508 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(); | |
8509 | if (PyErr_Occurred()) SWIG_fail; | |
8510 | } | |
8511 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8512 | return resultobj; | |
8513 | fail: | |
8514 | return NULL; | |
8515 | } | |
8516 | ||
8517 | ||
8518 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) { | |
8519 | int argc; | |
8520 | PyObject *argv[3]; | |
8521 | ||
8522 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail; | |
8523 | --argc; | |
8524 | if (argc == 0) { | |
8525 | return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv); | |
8526 | } | |
8527 | if (argc == 1) { | |
8528 | return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv); | |
8529 | } | |
8530 | if (argc == 2) { | |
8531 | return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv); | |
8532 | } | |
8533 | ||
8534 | fail: | |
8535 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'"); | |
8536 | return NULL; | |
8537 | } | |
8538 | ||
8539 | ||
8540 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8541 | PyObject *resultobj = 0; | |
8542 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8543 | void *argp1 = 0 ; | |
8544 | int res1 = 0 ; | |
8545 | PyObject *swig_obj[1] ; | |
8546 | ||
8547 | if (!args) SWIG_fail; | |
8548 | swig_obj[0] = args; | |
8549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
8550 | if (!SWIG_IsOK(res1)) { | |
8551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8552 | } | |
8553 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8554 | { | |
8555 | delete arg1; | |
8556 | ||
8557 | if (PyErr_Occurred()) SWIG_fail; | |
8558 | } | |
8559 | resultobj = SWIG_Py_Void(); | |
8560 | return resultobj; | |
8561 | fail: | |
8562 | return NULL; | |
8563 | } | |
8564 | ||
8565 | ||
8566 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8567 | PyObject *resultobj = 0; | |
8568 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8569 | wxAlphaPixelData *arg2 = 0 ; | |
8570 | void *argp1 = 0 ; | |
8571 | int res1 = 0 ; | |
8572 | void *argp2 = 0 ; | |
8573 | int res2 = 0 ; | |
8574 | PyObject * obj0 = 0 ; | |
8575 | PyObject * obj1 = 0 ; | |
8576 | char * kwnames[] = { | |
8577 | (char *) "self",(char *) "data", NULL | |
8578 | }; | |
8579 | ||
8580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8582 | if (!SWIG_IsOK(res1)) { | |
8583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8584 | } | |
8585 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8586 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8587 | if (!SWIG_IsOK(res2)) { | |
8588 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8589 | } | |
8590 | if (!argp2) { | |
8591 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8592 | } | |
8593 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8594 | { | |
8595 | (arg1)->Reset((wxAlphaPixelData const &)*arg2); | |
8596 | if (PyErr_Occurred()) SWIG_fail; | |
8597 | } | |
8598 | resultobj = SWIG_Py_Void(); | |
8599 | return resultobj; | |
8600 | fail: | |
8601 | return NULL; | |
8602 | } | |
8603 | ||
8604 | ||
8605 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8606 | PyObject *resultobj = 0; | |
8607 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8608 | bool result; | |
8609 | void *argp1 = 0 ; | |
8610 | int res1 = 0 ; | |
8611 | PyObject *swig_obj[1] ; | |
8612 | ||
8613 | if (!args) SWIG_fail; | |
8614 | swig_obj[0] = args; | |
8615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8616 | if (!SWIG_IsOK(res1)) { | |
8617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'"); | |
8618 | } | |
8619 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8620 | { | |
8621 | result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk(); | |
8622 | if (PyErr_Occurred()) SWIG_fail; | |
8623 | } | |
8624 | { | |
8625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8626 | } | |
8627 | return resultobj; | |
8628 | fail: | |
8629 | return NULL; | |
8630 | } | |
8631 | ||
8632 | ||
8633 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8634 | PyObject *resultobj = 0; | |
8635 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8636 | void *argp1 = 0 ; | |
8637 | int res1 = 0 ; | |
8638 | PyObject *swig_obj[1] ; | |
8639 | ||
8640 | if (!args) SWIG_fail; | |
8641 | swig_obj[0] = args; | |
8642 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8643 | if (!SWIG_IsOK(res1)) { | |
8644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8645 | } | |
8646 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8647 | { | |
8648 | wxAlphaPixelData_Accessor_nextPixel(arg1); | |
8649 | if (PyErr_Occurred()) SWIG_fail; | |
8650 | } | |
8651 | resultobj = SWIG_Py_Void(); | |
8652 | return resultobj; | |
8653 | fail: | |
8654 | return NULL; | |
8655 | } | |
8656 | ||
8657 | ||
8658 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8659 | PyObject *resultobj = 0; | |
8660 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8661 | wxAlphaPixelData *arg2 = 0 ; | |
8662 | int arg3 ; | |
8663 | int arg4 ; | |
8664 | void *argp1 = 0 ; | |
8665 | int res1 = 0 ; | |
8666 | void *argp2 = 0 ; | |
8667 | int res2 = 0 ; | |
8668 | int val3 ; | |
8669 | int ecode3 = 0 ; | |
8670 | int val4 ; | |
8671 | int ecode4 = 0 ; | |
8672 | PyObject * obj0 = 0 ; | |
8673 | PyObject * obj1 = 0 ; | |
8674 | PyObject * obj2 = 0 ; | |
8675 | PyObject * obj3 = 0 ; | |
8676 | char * kwnames[] = { | |
8677 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8678 | }; | |
8679 | ||
8680 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8681 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8682 | if (!SWIG_IsOK(res1)) { | |
8683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8684 | } | |
8685 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8686 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8687 | if (!SWIG_IsOK(res2)) { | |
8688 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8689 | } | |
8690 | if (!argp2) { | |
8691 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8692 | } | |
8693 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8694 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8695 | if (!SWIG_IsOK(ecode3)) { | |
8696 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8697 | } | |
8698 | arg3 = static_cast< int >(val3); | |
8699 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8700 | if (!SWIG_IsOK(ecode4)) { | |
8701 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8702 | } | |
8703 | arg4 = static_cast< int >(val4); | |
8704 | { | |
8705 | (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8706 | if (PyErr_Occurred()) SWIG_fail; | |
8707 | } | |
8708 | resultobj = SWIG_Py_Void(); | |
8709 | return resultobj; | |
8710 | fail: | |
8711 | return NULL; | |
8712 | } | |
8713 | ||
8714 | ||
8715 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8716 | PyObject *resultobj = 0; | |
8717 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8718 | wxAlphaPixelData *arg2 = 0 ; | |
8719 | int arg3 ; | |
8720 | void *argp1 = 0 ; | |
8721 | int res1 = 0 ; | |
8722 | void *argp2 = 0 ; | |
8723 | int res2 = 0 ; | |
8724 | int val3 ; | |
8725 | int ecode3 = 0 ; | |
8726 | PyObject * obj0 = 0 ; | |
8727 | PyObject * obj1 = 0 ; | |
8728 | PyObject * obj2 = 0 ; | |
8729 | char * kwnames[] = { | |
8730 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8731 | }; | |
8732 | ||
8733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8735 | if (!SWIG_IsOK(res1)) { | |
8736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8737 | } | |
8738 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8739 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8740 | if (!SWIG_IsOK(res2)) { | |
8741 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8742 | } | |
8743 | if (!argp2) { | |
8744 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8745 | } | |
8746 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8747 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8748 | if (!SWIG_IsOK(ecode3)) { | |
8749 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8750 | } | |
8751 | arg3 = static_cast< int >(val3); | |
8752 | { | |
8753 | (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3); | |
8754 | if (PyErr_Occurred()) SWIG_fail; | |
8755 | } | |
8756 | resultobj = SWIG_Py_Void(); | |
8757 | return resultobj; | |
8758 | fail: | |
8759 | return NULL; | |
8760 | } | |
8761 | ||
8762 | ||
8763 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8764 | PyObject *resultobj = 0; | |
8765 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8766 | wxAlphaPixelData *arg2 = 0 ; | |
8767 | int arg3 ; | |
8768 | void *argp1 = 0 ; | |
8769 | int res1 = 0 ; | |
8770 | void *argp2 = 0 ; | |
8771 | int res2 = 0 ; | |
8772 | int val3 ; | |
8773 | int ecode3 = 0 ; | |
8774 | PyObject * obj0 = 0 ; | |
8775 | PyObject * obj1 = 0 ; | |
8776 | PyObject * obj2 = 0 ; | |
8777 | char * kwnames[] = { | |
8778 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8779 | }; | |
8780 | ||
8781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8783 | if (!SWIG_IsOK(res1)) { | |
8784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8785 | } | |
8786 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8787 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8788 | if (!SWIG_IsOK(res2)) { | |
8789 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8790 | } | |
8791 | if (!argp2) { | |
8792 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8793 | } | |
8794 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8795 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8796 | if (!SWIG_IsOK(ecode3)) { | |
8797 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8798 | } | |
8799 | arg3 = static_cast< int >(val3); | |
8800 | { | |
8801 | (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3); | |
8802 | if (PyErr_Occurred()) SWIG_fail; | |
8803 | } | |
8804 | resultobj = SWIG_Py_Void(); | |
8805 | return resultobj; | |
8806 | fail: | |
8807 | return NULL; | |
8808 | } | |
8809 | ||
8810 | ||
8811 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8812 | PyObject *resultobj = 0; | |
8813 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8814 | wxAlphaPixelData *arg2 = 0 ; | |
8815 | int arg3 ; | |
8816 | int arg4 ; | |
8817 | void *argp1 = 0 ; | |
8818 | int res1 = 0 ; | |
8819 | void *argp2 = 0 ; | |
8820 | int res2 = 0 ; | |
8821 | int val3 ; | |
8822 | int ecode3 = 0 ; | |
8823 | int val4 ; | |
8824 | int ecode4 = 0 ; | |
8825 | PyObject * obj0 = 0 ; | |
8826 | PyObject * obj1 = 0 ; | |
8827 | PyObject * obj2 = 0 ; | |
8828 | PyObject * obj3 = 0 ; | |
8829 | char * kwnames[] = { | |
8830 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8831 | }; | |
8832 | ||
8833 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8834 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8835 | if (!SWIG_IsOK(res1)) { | |
8836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8837 | } | |
8838 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8839 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8840 | if (!SWIG_IsOK(res2)) { | |
8841 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8842 | } | |
8843 | if (!argp2) { | |
8844 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8845 | } | |
8846 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8847 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8848 | if (!SWIG_IsOK(ecode3)) { | |
8849 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8850 | } | |
8851 | arg3 = static_cast< int >(val3); | |
8852 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8853 | if (!SWIG_IsOK(ecode4)) { | |
8854 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8855 | } | |
8856 | arg4 = static_cast< int >(val4); | |
8857 | { | |
8858 | (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8859 | if (PyErr_Occurred()) SWIG_fail; | |
8860 | } | |
8861 | resultobj = SWIG_Py_Void(); | |
8862 | return resultobj; | |
8863 | fail: | |
8864 | return NULL; | |
8865 | } | |
8866 | ||
8867 | ||
8868 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8869 | PyObject *resultobj = 0; | |
8870 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8871 | byte arg2 ; | |
8872 | byte arg3 ; | |
8873 | byte arg4 ; | |
8874 | byte arg5 ; | |
8875 | void *argp1 = 0 ; | |
8876 | int res1 = 0 ; | |
8877 | unsigned char val2 ; | |
8878 | int ecode2 = 0 ; | |
8879 | unsigned char val3 ; | |
8880 | int ecode3 = 0 ; | |
8881 | unsigned char val4 ; | |
8882 | int ecode4 = 0 ; | |
8883 | unsigned char val5 ; | |
8884 | int ecode5 = 0 ; | |
8885 | PyObject * obj0 = 0 ; | |
8886 | PyObject * obj1 = 0 ; | |
8887 | PyObject * obj2 = 0 ; | |
8888 | PyObject * obj3 = 0 ; | |
8889 | PyObject * obj4 = 0 ; | |
8890 | char * kwnames[] = { | |
8891 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL | |
8892 | }; | |
8893 | ||
8894 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8895 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8896 | if (!SWIG_IsOK(res1)) { | |
8897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8898 | } | |
8899 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8900 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8901 | if (!SWIG_IsOK(ecode2)) { | |
8902 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8903 | } | |
8904 | arg2 = static_cast< byte >(val2); | |
8905 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8906 | if (!SWIG_IsOK(ecode3)) { | |
8907 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8908 | } | |
8909 | arg3 = static_cast< byte >(val3); | |
8910 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8911 | if (!SWIG_IsOK(ecode4)) { | |
8912 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8913 | } | |
8914 | arg4 = static_cast< byte >(val4); | |
8915 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
8916 | if (!SWIG_IsOK(ecode5)) { | |
8917 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'"); | |
8918 | } | |
8919 | arg5 = static_cast< byte >(val5); | |
8920 | { | |
8921 | wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5); | |
8922 | if (PyErr_Occurred()) SWIG_fail; | |
0085ce49 | 8923 | } |
fc46b7f3 | 8924 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
8925 | return resultobj; |
8926 | fail: | |
8927 | return NULL; | |
8928 | } | |
8929 | ||
8930 | ||
fc46b7f3 | 8931 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8932 | PyObject *resultobj = 0; |
fc46b7f3 RD |
8933 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; |
8934 | PyObject *result = 0 ; | |
0085ce49 RD |
8935 | void *argp1 = 0 ; |
8936 | int res1 = 0 ; | |
fc46b7f3 | 8937 | PyObject *swig_obj[1] ; |
0085ce49 | 8938 | |
fc46b7f3 RD |
8939 | if (!args) SWIG_fail; |
8940 | swig_obj[0] = args; | |
8941 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
0085ce49 | 8942 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 8943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); |
0085ce49 | 8944 | } |
fc46b7f3 | 8945 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); |
0085ce49 | 8946 | { |
fc46b7f3 | 8947 | result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1); |
0085ce49 RD |
8948 | if (PyErr_Occurred()) SWIG_fail; |
8949 | } | |
fc46b7f3 | 8950 | resultobj = result; |
0085ce49 RD |
8951 | return resultobj; |
8952 | fail: | |
8953 | return NULL; | |
d14a1e28 RD |
8954 | } |
8955 | ||
8956 | ||
fc46b7f3 | 8957 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
8958 | PyObject *obj; |
8959 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 8960 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj)); |
0085ce49 | 8961 | return SWIG_Py_Void(); |
b2df227b RD |
8962 | } |
8963 | ||
fc46b7f3 | 8964 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8965 | return SWIG_Python_InitShadowInstance(args); |
d14a1e28 RD |
8966 | } |
8967 | ||
0085ce49 RD |
8968 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8969 | PyObject *resultobj = 0; | |
8970 | wxBitmap *arg1 = 0 ; | |
8971 | wxColour const &arg2_defvalue = wxNullColour ; | |
8972 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8973 | wxMask *result = 0 ; | |
8974 | void *argp1 = 0 ; | |
8975 | int res1 = 0 ; | |
8976 | wxColour temp2 ; | |
8977 | PyObject * obj0 = 0 ; | |
8978 | PyObject * obj1 = 0 ; | |
8979 | char * kwnames[] = { | |
8980 | (char *) "bitmap",(char *) "colour", NULL | |
8981 | }; | |
8982 | ||
8983 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
8984 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8985 | if (!SWIG_IsOK(res1)) { | |
8986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8987 | } | |
8988 | if (!argp1) { | |
8989 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8990 | } | |
8991 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8992 | if (obj1) { | |
d14a1e28 | 8993 | { |
0085ce49 RD |
8994 | arg2 = &temp2; |
8995 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 8996 | } |
0085ce49 RD |
8997 | } |
8998 | { | |
8999 | if (!wxPyCheckForApp()) SWIG_fail; | |
9000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9001 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
9002 | wxPyEndAllowThreads(__tstate); | |
9003 | if (PyErr_Occurred()) SWIG_fail; | |
9004 | } | |
9005 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
9006 | return resultobj; | |
9007 | fail: | |
9008 | return NULL; | |
d14a1e28 RD |
9009 | } |
9010 | ||
9011 | ||
0085ce49 RD |
9012 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9013 | PyObject *resultobj = 0; | |
9014 | wxMask *arg1 = (wxMask *) 0 ; | |
9015 | void *argp1 = 0 ; | |
9016 | int res1 = 0 ; | |
9017 | PyObject *swig_obj[1] ; | |
9018 | ||
9019 | if (!args) SWIG_fail; | |
9020 | swig_obj[0] = args; | |
9021 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
9022 | if (!SWIG_IsOK(res1)) { | |
9023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
9024 | } | |
9025 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
9026 | { | |
0085ce49 | 9027 | delete arg1; |
d14a1e28 | 9028 | |
0085ce49 RD |
9029 | if (PyErr_Occurred()) SWIG_fail; |
9030 | } | |
9031 | resultobj = SWIG_Py_Void(); | |
9032 | return resultobj; | |
9033 | fail: | |
9034 | return NULL; | |
9035 | } | |
9036 | ||
9037 | ||
9038 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9039 | PyObject *obj; | |
9040 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9041 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
9042 | return SWIG_Py_Void(); | |
9043 | } | |
9044 | ||
9045 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9046 | return SWIG_Python_InitShadowInstance(args); | |
9047 | } | |
9048 | ||
9049 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9050 | PyObject *resultobj = 0; | |
9051 | wxString *arg1 = 0 ; | |
9052 | wxBitmapType arg2 ; | |
9053 | int arg3 = (int) -1 ; | |
9054 | int arg4 = (int) -1 ; | |
9055 | wxIcon *result = 0 ; | |
9056 | bool temp1 = false ; | |
9057 | int val2 ; | |
9058 | int ecode2 = 0 ; | |
9059 | int val3 ; | |
9060 | int ecode3 = 0 ; | |
9061 | int val4 ; | |
9062 | int ecode4 = 0 ; | |
9063 | PyObject * obj0 = 0 ; | |
9064 | PyObject * obj1 = 0 ; | |
9065 | PyObject * obj2 = 0 ; | |
9066 | PyObject * obj3 = 0 ; | |
9067 | char * kwnames[] = { | |
9068 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
9069 | }; | |
9070 | ||
9071 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9072 | { | |
9073 | arg1 = wxString_in_helper(obj0); | |
9074 | if (arg1 == NULL) SWIG_fail; | |
9075 | temp1 = true; | |
9076 | } | |
9077 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9078 | if (!SWIG_IsOK(ecode2)) { | |
9079 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
9080 | } | |
9081 | arg2 = static_cast< wxBitmapType >(val2); | |
9082 | if (obj2) { | |
9083 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9084 | if (!SWIG_IsOK(ecode3)) { | |
9085 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
9086 | } | |
9087 | arg3 = static_cast< int >(val3); | |
9088 | } | |
9089 | if (obj3) { | |
9090 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9091 | if (!SWIG_IsOK(ecode4)) { | |
9092 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
9093 | } | |
9094 | arg4 = static_cast< int >(val4); | |
9095 | } | |
9096 | { | |
9097 | if (!wxPyCheckForApp()) SWIG_fail; | |
9098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9099 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
9100 | wxPyEndAllowThreads(__tstate); | |
9101 | if (PyErr_Occurred()) SWIG_fail; | |
9102 | } | |
9103 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
9104 | { | |
9105 | if (temp1) | |
9106 | delete arg1; | |
9107 | } | |
9108 | return resultobj; | |
9109 | fail: | |
9110 | { | |
9111 | if (temp1) | |
9112 | delete arg1; | |
9113 | } | |
9114 | return NULL; | |
d14a1e28 RD |
9115 | } |
9116 | ||
9117 | ||
0085ce49 RD |
9118 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9119 | PyObject *resultobj = 0; | |
9120 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9121 | void *argp1 = 0 ; | |
9122 | int res1 = 0 ; | |
9123 | PyObject *swig_obj[1] ; | |
9124 | ||
9125 | if (!args) SWIG_fail; | |
9126 | swig_obj[0] = args; | |
9127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
9128 | if (!SWIG_IsOK(res1)) { | |
9129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9130 | } | |
9131 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9132 | { | |
9133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9134 | delete arg1; | |
d14a1e28 | 9135 | |
0085ce49 RD |
9136 | wxPyEndAllowThreads(__tstate); |
9137 | if (PyErr_Occurred()) SWIG_fail; | |
9138 | } | |
9139 | resultobj = SWIG_Py_Void(); | |
9140 | return resultobj; | |
9141 | fail: | |
9142 | return NULL; | |
d14a1e28 RD |
9143 | } |
9144 | ||
9145 | ||
0085ce49 RD |
9146 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9147 | PyObject *resultobj = 0; | |
9148 | wxIcon *result = 0 ; | |
9149 | ||
9150 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
9151 | { | |
9152 | if (!wxPyCheckForApp()) SWIG_fail; | |
9153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9154 | result = (wxIcon *)new wxIcon(); | |
9155 | wxPyEndAllowThreads(__tstate); | |
9156 | if (PyErr_Occurred()) SWIG_fail; | |
9157 | } | |
9158 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9159 | return resultobj; | |
9160 | fail: | |
9161 | return NULL; | |
9162 | } | |
9163 | ||
9164 | ||
9165 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9166 | PyObject *resultobj = 0; | |
9167 | wxIconLocation *arg1 = 0 ; | |
9168 | wxIcon *result = 0 ; | |
9169 | void *argp1 = 0 ; | |
9170 | int res1 = 0 ; | |
9171 | PyObject * obj0 = 0 ; | |
9172 | char * kwnames[] = { | |
9173 | (char *) "loc", NULL | |
9174 | }; | |
9175 | ||
9176 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
9177 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
9178 | if (!SWIG_IsOK(res1)) { | |
9179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9180 | } | |
9181 | if (!argp1) { | |
9182 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9183 | } | |
9184 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9185 | { | |
9186 | if (!wxPyCheckForApp()) SWIG_fail; | |
9187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9188 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
9189 | wxPyEndAllowThreads(__tstate); | |
9190 | if (PyErr_Occurred()) SWIG_fail; | |
9191 | } | |
9192 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9193 | return resultobj; | |
9194 | fail: | |
9195 | return NULL; | |
9196 | } | |
9197 | ||
9198 | ||
9199 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9200 | PyObject *resultobj = 0; | |
9201 | wxBitmap *arg1 = 0 ; | |
9202 | wxIcon *result = 0 ; | |
9203 | void *argp1 = 0 ; | |
9204 | int res1 = 0 ; | |
9205 | PyObject * obj0 = 0 ; | |
9206 | char * kwnames[] = { | |
9207 | (char *) "bmp", NULL | |
9208 | }; | |
9209 | ||
9210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
9211 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9212 | if (!SWIG_IsOK(res1)) { | |
9213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9214 | } | |
9215 | if (!argp1) { | |
9216 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9217 | } | |
9218 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9219 | { | |
9220 | if (!wxPyCheckForApp()) SWIG_fail; | |
9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9222 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
9223 | wxPyEndAllowThreads(__tstate); | |
9224 | if (PyErr_Occurred()) SWIG_fail; | |
9225 | } | |
9226 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9227 | return resultobj; | |
9228 | fail: | |
9229 | return NULL; | |
d14a1e28 RD |
9230 | } |
9231 | ||
9232 | ||
0085ce49 RD |
9233 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9234 | PyObject *resultobj = 0; | |
9235 | PyObject *arg1 = (PyObject *) 0 ; | |
9236 | wxIcon *result = 0 ; | |
9237 | PyObject * obj0 = 0 ; | |
9238 | char * kwnames[] = { | |
9239 | (char *) "listOfStrings", NULL | |
9240 | }; | |
9241 | ||
9242 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
9243 | arg1 = obj0; | |
9244 | { | |
9245 | if (!wxPyCheckForApp()) SWIG_fail; | |
9246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9247 | result = (wxIcon *)new_wxIcon(arg1); | |
9248 | wxPyEndAllowThreads(__tstate); | |
9249 | if (PyErr_Occurred()) SWIG_fail; | |
9250 | } | |
9251 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9252 | return resultobj; | |
9253 | fail: | |
9254 | return NULL; | |
9255 | } | |
9256 | ||
9257 | ||
9258 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9259 | PyObject *resultobj = 0; | |
9260 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9261 | wxString *arg2 = 0 ; | |
9262 | wxBitmapType arg3 ; | |
9263 | bool result; | |
9264 | void *argp1 = 0 ; | |
9265 | int res1 = 0 ; | |
9266 | bool temp2 = false ; | |
9267 | int val3 ; | |
9268 | int ecode3 = 0 ; | |
9269 | PyObject * obj0 = 0 ; | |
9270 | PyObject * obj1 = 0 ; | |
9271 | PyObject * obj2 = 0 ; | |
9272 | char * kwnames[] = { | |
9273 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9274 | }; | |
9275 | ||
9276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9278 | if (!SWIG_IsOK(res1)) { | |
9279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9280 | } | |
9281 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9282 | { | |
9283 | arg2 = wxString_in_helper(obj1); | |
9284 | if (arg2 == NULL) SWIG_fail; | |
9285 | temp2 = true; | |
9286 | } | |
9287 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9288 | if (!SWIG_IsOK(ecode3)) { | |
9289 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
9290 | } | |
9291 | arg3 = static_cast< wxBitmapType >(val3); | |
9292 | { | |
9293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9294 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
9295 | wxPyEndAllowThreads(__tstate); | |
9296 | if (PyErr_Occurred()) SWIG_fail; | |
9297 | } | |
9298 | { | |
9299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9300 | } | |
9301 | { | |
9302 | if (temp2) | |
9303 | delete arg2; | |
9304 | } | |
9305 | return resultobj; | |
9306 | fail: | |
9307 | { | |
9308 | if (temp2) | |
9309 | delete arg2; | |
9310 | } | |
9311 | return NULL; | |
d14a1e28 RD |
9312 | } |
9313 | ||
9314 | ||
b39fe951 | 9315 | SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
9316 | PyObject *resultobj = 0; |
9317 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9318 | bool result; | |
9319 | void *argp1 = 0 ; | |
9320 | int res1 = 0 ; | |
9321 | PyObject *swig_obj[1] ; | |
9322 | ||
9323 | if (!args) SWIG_fail; | |
9324 | swig_obj[0] = args; | |
9325 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9326 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 9327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'"); |
0085ce49 RD |
9328 | } |
9329 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9330 | { | |
9331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 9332 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
9333 | wxPyEndAllowThreads(__tstate); |
9334 | if (PyErr_Occurred()) SWIG_fail; | |
9335 | } | |
9336 | { | |
9337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9338 | } | |
9339 | return resultobj; | |
9340 | fail: | |
9341 | return NULL; | |
d14a1e28 RD |
9342 | } |
9343 | ||
9344 | ||
0085ce49 RD |
9345 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9346 | PyObject *resultobj = 0; | |
9347 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9348 | int result; | |
9349 | void *argp1 = 0 ; | |
9350 | int res1 = 0 ; | |
9351 | PyObject *swig_obj[1] ; | |
9352 | ||
9353 | if (!args) SWIG_fail; | |
9354 | swig_obj[0] = args; | |
9355 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9356 | if (!SWIG_IsOK(res1)) { | |
9357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9358 | } | |
9359 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9360 | { | |
9361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9362 | result = (int)(arg1)->GetWidth(); | |
9363 | wxPyEndAllowThreads(__tstate); | |
9364 | if (PyErr_Occurred()) SWIG_fail; | |
9365 | } | |
9366 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9367 | return resultobj; | |
9368 | fail: | |
9369 | return NULL; | |
d3b6e4ff RD |
9370 | } |
9371 | ||
9372 | ||
0085ce49 RD |
9373 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9374 | PyObject *resultobj = 0; | |
9375 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9376 | int result; | |
9377 | void *argp1 = 0 ; | |
9378 | int res1 = 0 ; | |
9379 | PyObject *swig_obj[1] ; | |
9380 | ||
9381 | if (!args) SWIG_fail; | |
9382 | swig_obj[0] = args; | |
9383 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9384 | if (!SWIG_IsOK(res1)) { | |
9385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9386 | } | |
9387 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9388 | { | |
9389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9390 | result = (int)(arg1)->GetHeight(); | |
9391 | wxPyEndAllowThreads(__tstate); | |
9392 | if (PyErr_Occurred()) SWIG_fail; | |
9393 | } | |
9394 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9395 | return resultobj; | |
9396 | fail: | |
9397 | return NULL; | |
d14a1e28 RD |
9398 | } |
9399 | ||
9400 | ||
0085ce49 RD |
9401 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9402 | PyObject *resultobj = 0; | |
9403 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9404 | int result; | |
9405 | void *argp1 = 0 ; | |
9406 | int res1 = 0 ; | |
9407 | PyObject *swig_obj[1] ; | |
9408 | ||
9409 | if (!args) SWIG_fail; | |
9410 | swig_obj[0] = args; | |
9411 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9412 | if (!SWIG_IsOK(res1)) { | |
9413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9414 | } | |
9415 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9416 | { | |
9417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9418 | result = (int)(arg1)->GetDepth(); | |
9419 | wxPyEndAllowThreads(__tstate); | |
9420 | if (PyErr_Occurred()) SWIG_fail; | |
9421 | } | |
9422 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9423 | return resultobj; | |
9424 | fail: | |
9425 | return NULL; | |
9426 | } | |
9427 | ||
9428 | ||
9429 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9430 | PyObject *resultobj = 0; | |
9431 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9432 | int arg2 ; | |
9433 | void *argp1 = 0 ; | |
9434 | int res1 = 0 ; | |
9435 | int val2 ; | |
9436 | int ecode2 = 0 ; | |
9437 | PyObject * obj0 = 0 ; | |
9438 | PyObject * obj1 = 0 ; | |
9439 | char * kwnames[] = { | |
9440 | (char *) "self",(char *) "w", NULL | |
9441 | }; | |
9442 | ||
9443 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9444 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9445 | if (!SWIG_IsOK(res1)) { | |
9446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9447 | } | |
9448 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9449 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9450 | if (!SWIG_IsOK(ecode2)) { | |
9451 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
9452 | } | |
9453 | arg2 = static_cast< int >(val2); | |
9454 | { | |
9455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9456 | (arg1)->SetWidth(arg2); | |
9457 | wxPyEndAllowThreads(__tstate); | |
9458 | if (PyErr_Occurred()) SWIG_fail; | |
9459 | } | |
9460 | resultobj = SWIG_Py_Void(); | |
9461 | return resultobj; | |
9462 | fail: | |
9463 | return NULL; | |
9464 | } | |
9465 | ||
9466 | ||
9467 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9468 | PyObject *resultobj = 0; | |
9469 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9470 | int arg2 ; | |
9471 | void *argp1 = 0 ; | |
9472 | int res1 = 0 ; | |
9473 | int val2 ; | |
9474 | int ecode2 = 0 ; | |
9475 | PyObject * obj0 = 0 ; | |
9476 | PyObject * obj1 = 0 ; | |
9477 | char * kwnames[] = { | |
9478 | (char *) "self",(char *) "h", NULL | |
9479 | }; | |
9480 | ||
9481 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9482 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9483 | if (!SWIG_IsOK(res1)) { | |
9484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9485 | } | |
9486 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9487 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9488 | if (!SWIG_IsOK(ecode2)) { | |
9489 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
9490 | } | |
9491 | arg2 = static_cast< int >(val2); | |
9492 | { | |
9493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9494 | (arg1)->SetHeight(arg2); | |
9495 | wxPyEndAllowThreads(__tstate); | |
9496 | if (PyErr_Occurred()) SWIG_fail; | |
9497 | } | |
9498 | resultobj = SWIG_Py_Void(); | |
9499 | return resultobj; | |
9500 | fail: | |
9501 | return NULL; | |
9502 | } | |
9503 | ||
9504 | ||
9505 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9506 | PyObject *resultobj = 0; | |
9507 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9508 | int arg2 ; | |
9509 | void *argp1 = 0 ; | |
9510 | int res1 = 0 ; | |
9511 | int val2 ; | |
9512 | int ecode2 = 0 ; | |
9513 | PyObject * obj0 = 0 ; | |
9514 | PyObject * obj1 = 0 ; | |
9515 | char * kwnames[] = { | |
9516 | (char *) "self",(char *) "d", NULL | |
9517 | }; | |
9518 | ||
9519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9521 | if (!SWIG_IsOK(res1)) { | |
9522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9523 | } | |
9524 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9525 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9526 | if (!SWIG_IsOK(ecode2)) { | |
9527 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
9528 | } | |
9529 | arg2 = static_cast< int >(val2); | |
9530 | { | |
9531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9532 | (arg1)->SetDepth(arg2); | |
9533 | wxPyEndAllowThreads(__tstate); | |
9534 | if (PyErr_Occurred()) SWIG_fail; | |
9535 | } | |
9536 | resultobj = SWIG_Py_Void(); | |
9537 | return resultobj; | |
9538 | fail: | |
9539 | return NULL; | |
9540 | } | |
9541 | ||
9542 | ||
9543 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9544 | PyObject *resultobj = 0; | |
9545 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9546 | wxBitmap *arg2 = 0 ; | |
9547 | void *argp1 = 0 ; | |
9548 | int res1 = 0 ; | |
9549 | void *argp2 = 0 ; | |
9550 | int res2 = 0 ; | |
9551 | PyObject * obj0 = 0 ; | |
9552 | PyObject * obj1 = 0 ; | |
9553 | char * kwnames[] = { | |
9554 | (char *) "self",(char *) "bmp", NULL | |
9555 | }; | |
9556 | ||
9557 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9559 | if (!SWIG_IsOK(res1)) { | |
9560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9561 | } | |
9562 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9563 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9564 | if (!SWIG_IsOK(res2)) { | |
9565 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9566 | } | |
9567 | if (!argp2) { | |
9568 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9569 | } | |
9570 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9571 | { | |
9572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9573 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
9574 | wxPyEndAllowThreads(__tstate); | |
9575 | if (PyErr_Occurred()) SWIG_fail; | |
9576 | } | |
9577 | resultobj = SWIG_Py_Void(); | |
9578 | return resultobj; | |
9579 | fail: | |
9580 | return NULL; | |
d14a1e28 RD |
9581 | } |
9582 | ||
9583 | ||
0085ce49 RD |
9584 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9585 | PyObject *obj; | |
9586 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9587 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
9588 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9589 | } |
9590 | ||
0085ce49 RD |
9591 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9592 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9593 | } |
9594 | ||
0085ce49 RD |
9595 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9596 | PyObject *resultobj = 0; | |
9597 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
9598 | int arg2 = (int) 0 ; | |
9599 | wxIconLocation *result = 0 ; | |
9600 | bool temp1 = false ; | |
9601 | int val2 ; | |
9602 | int ecode2 = 0 ; | |
9603 | PyObject * obj0 = 0 ; | |
9604 | PyObject * obj1 = 0 ; | |
9605 | char * kwnames[] = { | |
9606 | (char *) "filename",(char *) "num", NULL | |
9607 | }; | |
9608 | ||
9609 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
9610 | if (obj0) { | |
b2df227b | 9611 | { |
0085ce49 RD |
9612 | arg1 = wxString_in_helper(obj0); |
9613 | if (arg1 == NULL) SWIG_fail; | |
9614 | temp1 = true; | |
b2df227b | 9615 | } |
0085ce49 RD |
9616 | } |
9617 | if (obj1) { | |
9618 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9619 | if (!SWIG_IsOK(ecode2)) { | |
9620 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
9621 | } | |
9622 | arg2 = static_cast< int >(val2); | |
9623 | } | |
9624 | { | |
9625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9626 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
9627 | wxPyEndAllowThreads(__tstate); | |
9628 | if (PyErr_Occurred()) SWIG_fail; | |
9629 | } | |
9630 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
9631 | { | |
9632 | if (temp1) | |
9633 | delete arg1; | |
9634 | } | |
9635 | return resultobj; | |
9636 | fail: | |
9637 | { | |
9638 | if (temp1) | |
9639 | delete arg1; | |
9640 | } | |
9641 | return NULL; | |
b2df227b RD |
9642 | } |
9643 | ||
9644 | ||
0085ce49 RD |
9645 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9646 | PyObject *resultobj = 0; | |
9647 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9648 | void *argp1 = 0 ; | |
9649 | int res1 = 0 ; | |
9650 | PyObject *swig_obj[1] ; | |
9651 | ||
9652 | if (!args) SWIG_fail; | |
9653 | swig_obj[0] = args; | |
9654 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
9655 | if (!SWIG_IsOK(res1)) { | |
9656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9657 | } | |
9658 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9659 | { | |
9660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9661 | delete arg1; | |
4276dc52 | 9662 | |
0085ce49 RD |
9663 | wxPyEndAllowThreads(__tstate); |
9664 | if (PyErr_Occurred()) SWIG_fail; | |
9665 | } | |
9666 | resultobj = SWIG_Py_Void(); | |
9667 | return resultobj; | |
9668 | fail: | |
9669 | return NULL; | |
4276dc52 RD |
9670 | } |
9671 | ||
9672 | ||
0085ce49 RD |
9673 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9674 | PyObject *resultobj = 0; | |
9675 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9676 | bool result; | |
9677 | void *argp1 = 0 ; | |
9678 | int res1 = 0 ; | |
9679 | PyObject *swig_obj[1] ; | |
9680 | ||
9681 | if (!args) SWIG_fail; | |
9682 | swig_obj[0] = args; | |
9683 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9684 | if (!SWIG_IsOK(res1)) { | |
9685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9686 | } | |
9687 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9688 | { | |
9689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9690 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
9691 | wxPyEndAllowThreads(__tstate); | |
9692 | if (PyErr_Occurred()) SWIG_fail; | |
9693 | } | |
9694 | { | |
9695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9696 | } | |
9697 | return resultobj; | |
9698 | fail: | |
9699 | return NULL; | |
9700 | } | |
9701 | ||
9702 | ||
9703 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9704 | PyObject *resultobj = 0; | |
9705 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9706 | wxString *arg2 = 0 ; | |
9707 | void *argp1 = 0 ; | |
9708 | int res1 = 0 ; | |
9709 | bool temp2 = false ; | |
9710 | PyObject * obj0 = 0 ; | |
9711 | PyObject * obj1 = 0 ; | |
9712 | char * kwnames[] = { | |
9713 | (char *) "self",(char *) "filename", NULL | |
9714 | }; | |
9715 | ||
9716 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
9717 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9718 | if (!SWIG_IsOK(res1)) { | |
9719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9720 | } | |
9721 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9722 | { | |
9723 | arg2 = wxString_in_helper(obj1); | |
9724 | if (arg2 == NULL) SWIG_fail; | |
9725 | temp2 = true; | |
9726 | } | |
9727 | { | |
9728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9729 | (arg1)->SetFileName((wxString const &)*arg2); | |
9730 | wxPyEndAllowThreads(__tstate); | |
9731 | if (PyErr_Occurred()) SWIG_fail; | |
9732 | } | |
9733 | resultobj = SWIG_Py_Void(); | |
9734 | { | |
9735 | if (temp2) | |
9736 | delete arg2; | |
9737 | } | |
9738 | return resultobj; | |
9739 | fail: | |
9740 | { | |
9741 | if (temp2) | |
9742 | delete arg2; | |
9743 | } | |
9744 | return NULL; | |
4276dc52 RD |
9745 | } |
9746 | ||
9747 | ||
0085ce49 RD |
9748 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9749 | PyObject *resultobj = 0; | |
9750 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9751 | wxString *result = 0 ; | |
9752 | void *argp1 = 0 ; | |
9753 | int res1 = 0 ; | |
9754 | PyObject *swig_obj[1] ; | |
9755 | ||
9756 | if (!args) SWIG_fail; | |
9757 | swig_obj[0] = args; | |
9758 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9759 | if (!SWIG_IsOK(res1)) { | |
9760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9761 | } | |
9762 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9763 | { | |
9764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9765 | { |
0085ce49 RD |
9766 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
9767 | result = (wxString *) &_result_ref; | |
093d3ff1 | 9768 | } |
0085ce49 RD |
9769 | wxPyEndAllowThreads(__tstate); |
9770 | if (PyErr_Occurred()) SWIG_fail; | |
9771 | } | |
9772 | { | |
9773 | #if wxUSE_UNICODE | |
9774 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9775 | #else | |
9776 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9777 | #endif | |
9778 | } | |
9779 | return resultobj; | |
9780 | fail: | |
9781 | return NULL; | |
9782 | } | |
9783 | ||
9784 | ||
9785 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9786 | PyObject *resultobj = 0; | |
9787 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9788 | int arg2 ; | |
9789 | void *argp1 = 0 ; | |
9790 | int res1 = 0 ; | |
9791 | int val2 ; | |
9792 | int ecode2 = 0 ; | |
9793 | PyObject * obj0 = 0 ; | |
9794 | PyObject * obj1 = 0 ; | |
9795 | char * kwnames[] = { | |
9796 | (char *) "self",(char *) "num", NULL | |
9797 | }; | |
9798 | ||
9799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
9800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9801 | if (!SWIG_IsOK(res1)) { | |
9802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9803 | } | |
9804 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9805 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9806 | if (!SWIG_IsOK(ecode2)) { | |
9807 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
9808 | } | |
9809 | arg2 = static_cast< int >(val2); | |
9810 | { | |
9811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9812 | wxIconLocation_SetIndex(arg1,arg2); | |
9813 | wxPyEndAllowThreads(__tstate); | |
9814 | if (PyErr_Occurred()) SWIG_fail; | |
9815 | } | |
9816 | resultobj = SWIG_Py_Void(); | |
9817 | return resultobj; | |
9818 | fail: | |
9819 | return NULL; | |
d14a1e28 RD |
9820 | } |
9821 | ||
9822 | ||
0085ce49 RD |
9823 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9824 | PyObject *resultobj = 0; | |
9825 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9826 | int result; | |
9827 | void *argp1 = 0 ; | |
9828 | int res1 = 0 ; | |
9829 | PyObject *swig_obj[1] ; | |
9830 | ||
9831 | if (!args) SWIG_fail; | |
9832 | swig_obj[0] = args; | |
9833 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9834 | if (!SWIG_IsOK(res1)) { | |
9835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9836 | } | |
9837 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9838 | { | |
9839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9840 | result = (int)wxIconLocation_GetIndex(arg1); | |
9841 | wxPyEndAllowThreads(__tstate); | |
9842 | if (PyErr_Occurred()) SWIG_fail; | |
9843 | } | |
9844 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9845 | return resultobj; | |
9846 | fail: | |
9847 | return NULL; | |
d14a1e28 RD |
9848 | } |
9849 | ||
9850 | ||
0085ce49 RD |
9851 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9852 | PyObject *obj; | |
9853 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9854 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
9855 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9856 | } |
9857 | ||
0085ce49 RD |
9858 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9859 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9860 | } |
9861 | ||
0085ce49 RD |
9862 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9863 | PyObject *resultobj = 0; | |
9864 | wxIconBundle *result = 0 ; | |
9865 | ||
9866 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
9867 | { | |
9868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9869 | result = (wxIconBundle *)new wxIconBundle(); | |
9870 | wxPyEndAllowThreads(__tstate); | |
9871 | if (PyErr_Occurred()) SWIG_fail; | |
9872 | } | |
9873 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
9874 | return resultobj; | |
9875 | fail: | |
9876 | return NULL; | |
9877 | } | |
9878 | ||
9879 | ||
9880 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9881 | PyObject *resultobj = 0; | |
9882 | wxString *arg1 = 0 ; | |
9883 | long arg2 ; | |
9884 | wxIconBundle *result = 0 ; | |
9885 | bool temp1 = false ; | |
9886 | long val2 ; | |
9887 | int ecode2 = 0 ; | |
9888 | PyObject * obj0 = 0 ; | |
9889 | PyObject * obj1 = 0 ; | |
9890 | char * kwnames[] = { | |
9891 | (char *) "file",(char *) "type", NULL | |
9892 | }; | |
9893 | ||
9894 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
9895 | { | |
9896 | arg1 = wxString_in_helper(obj0); | |
9897 | if (arg1 == NULL) SWIG_fail; | |
9898 | temp1 = true; | |
9899 | } | |
9900 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9901 | if (!SWIG_IsOK(ecode2)) { | |
9902 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
9903 | } | |
9904 | arg2 = static_cast< long >(val2); | |
9905 | { | |
9906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9907 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
9908 | wxPyEndAllowThreads(__tstate); | |
9909 | if (PyErr_Occurred()) SWIG_fail; | |
9910 | } | |
9911 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9912 | { | |
9913 | if (temp1) | |
9914 | delete arg1; | |
9915 | } | |
9916 | return resultobj; | |
9917 | fail: | |
9918 | { | |
9919 | if (temp1) | |
9920 | delete arg1; | |
9921 | } | |
9922 | return NULL; | |
d14a1e28 RD |
9923 | } |
9924 | ||
9925 | ||
0085ce49 RD |
9926 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9927 | PyObject *resultobj = 0; | |
9928 | wxIcon *arg1 = 0 ; | |
9929 | wxIconBundle *result = 0 ; | |
9930 | void *argp1 = 0 ; | |
9931 | int res1 = 0 ; | |
9932 | PyObject * obj0 = 0 ; | |
9933 | char * kwnames[] = { | |
9934 | (char *) "icon", NULL | |
9935 | }; | |
9936 | ||
9937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
9938 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
9939 | if (!SWIG_IsOK(res1)) { | |
9940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9941 | } | |
9942 | if (!argp1) { | |
9943 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9944 | } | |
9945 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9946 | { | |
9947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9948 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
9949 | wxPyEndAllowThreads(__tstate); | |
9950 | if (PyErr_Occurred()) SWIG_fail; | |
9951 | } | |
9952 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9953 | return resultobj; | |
9954 | fail: | |
9955 | return NULL; | |
d14a1e28 RD |
9956 | } |
9957 | ||
9958 | ||
0085ce49 RD |
9959 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9960 | PyObject *resultobj = 0; | |
9961 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9962 | void *argp1 = 0 ; | |
9963 | int res1 = 0 ; | |
9964 | PyObject *swig_obj[1] ; | |
9965 | ||
9966 | if (!args) SWIG_fail; | |
9967 | swig_obj[0] = args; | |
9968 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
9969 | if (!SWIG_IsOK(res1)) { | |
9970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9971 | } | |
9972 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9973 | { | |
9974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9975 | delete arg1; | |
d14a1e28 | 9976 | |
0085ce49 RD |
9977 | wxPyEndAllowThreads(__tstate); |
9978 | if (PyErr_Occurred()) SWIG_fail; | |
9979 | } | |
9980 | resultobj = SWIG_Py_Void(); | |
9981 | return resultobj; | |
9982 | fail: | |
9983 | return NULL; | |
9984 | } | |
9985 | ||
9986 | ||
8c3a7183 RD |
9987 | SWIGINTERN PyObject *_wrap_IconBundle_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9988 | PyObject *resultobj = 0; | |
9989 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9990 | bool result; | |
9991 | void *argp1 = 0 ; | |
9992 | int res1 = 0 ; | |
9993 | PyObject *swig_obj[1] ; | |
9994 | ||
9995 | if (!args) SWIG_fail; | |
9996 | swig_obj[0] = args; | |
9997 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
9998 | if (!SWIG_IsOK(res1)) { | |
9999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_IsOk" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10000 | } | |
10001 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10002 | { | |
10003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10004 | result = (bool)((wxIconBundle const *)arg1)->IsOk(); | |
10005 | wxPyEndAllowThreads(__tstate); | |
10006 | if (PyErr_Occurred()) SWIG_fail; | |
10007 | } | |
10008 | { | |
10009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10010 | } | |
10011 | return resultobj; | |
10012 | fail: | |
10013 | return NULL; | |
10014 | } | |
10015 | ||
10016 | ||
0085ce49 RD |
10017 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10018 | PyObject *resultobj = 0; | |
10019 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10020 | wxIcon *arg2 = 0 ; | |
10021 | void *argp1 = 0 ; | |
10022 | int res1 = 0 ; | |
10023 | void *argp2 = 0 ; | |
10024 | int res2 = 0 ; | |
10025 | PyObject * obj0 = 0 ; | |
10026 | PyObject * obj1 = 0 ; | |
10027 | char * kwnames[] = { | |
10028 | (char *) "self",(char *) "icon", NULL | |
10029 | }; | |
10030 | ||
10031 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10033 | if (!SWIG_IsOK(res1)) { | |
10034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10035 | } | |
10036 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10037 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
10038 | if (!SWIG_IsOK(res2)) { | |
10039 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10040 | } | |
10041 | if (!argp2) { | |
10042 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10043 | } | |
10044 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
10045 | { | |
10046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10047 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
10048 | wxPyEndAllowThreads(__tstate); | |
10049 | if (PyErr_Occurred()) SWIG_fail; | |
10050 | } | |
10051 | resultobj = SWIG_Py_Void(); | |
10052 | return resultobj; | |
10053 | fail: | |
10054 | return NULL; | |
10055 | } | |
10056 | ||
10057 | ||
10058 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10059 | PyObject *resultobj = 0; | |
10060 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10061 | wxString *arg2 = 0 ; | |
10062 | long arg3 ; | |
10063 | void *argp1 = 0 ; | |
10064 | int res1 = 0 ; | |
10065 | bool temp2 = false ; | |
10066 | long val3 ; | |
10067 | int ecode3 = 0 ; | |
10068 | PyObject * obj0 = 0 ; | |
10069 | PyObject * obj1 = 0 ; | |
10070 | PyObject * obj2 = 0 ; | |
10071 | char * kwnames[] = { | |
10072 | (char *) "self",(char *) "file",(char *) "type", NULL | |
10073 | }; | |
10074 | ||
10075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10077 | if (!SWIG_IsOK(res1)) { | |
10078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10079 | } | |
10080 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10081 | { | |
10082 | arg2 = wxString_in_helper(obj1); | |
10083 | if (arg2 == NULL) SWIG_fail; | |
10084 | temp2 = true; | |
10085 | } | |
10086 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10087 | if (!SWIG_IsOK(ecode3)) { | |
10088 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
10089 | } | |
10090 | arg3 = static_cast< long >(val3); | |
10091 | { | |
10092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10093 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
10094 | wxPyEndAllowThreads(__tstate); | |
10095 | if (PyErr_Occurred()) SWIG_fail; | |
10096 | } | |
10097 | resultobj = SWIG_Py_Void(); | |
10098 | { | |
10099 | if (temp2) | |
10100 | delete arg2; | |
10101 | } | |
10102 | return resultobj; | |
10103 | fail: | |
10104 | { | |
10105 | if (temp2) | |
10106 | delete arg2; | |
10107 | } | |
10108 | return NULL; | |
10109 | } | |
10110 | ||
10111 | ||
10112 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10113 | PyObject *resultobj = 0; | |
10114 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10115 | wxSize *arg2 = 0 ; | |
10116 | wxIcon *result = 0 ; | |
10117 | void *argp1 = 0 ; | |
10118 | int res1 = 0 ; | |
10119 | wxSize temp2 ; | |
10120 | PyObject * obj0 = 0 ; | |
10121 | PyObject * obj1 = 0 ; | |
10122 | char * kwnames[] = { | |
10123 | (char *) "self",(char *) "size", NULL | |
10124 | }; | |
10125 | ||
10126 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10128 | if (!SWIG_IsOK(res1)) { | |
10129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10130 | } | |
10131 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10132 | { | |
10133 | arg2 = &temp2; | |
10134 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10135 | } | |
10136 | { | |
10137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 10138 | { |
0085ce49 RD |
10139 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
10140 | result = (wxIcon *) &_result_ref; | |
d14a1e28 | 10141 | } |
0085ce49 RD |
10142 | wxPyEndAllowThreads(__tstate); |
10143 | if (PyErr_Occurred()) SWIG_fail; | |
10144 | } | |
10145 | { | |
10146 | wxIcon* resultptr = new wxIcon(*result); | |
10147 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
10148 | } | |
10149 | return resultobj; | |
10150 | fail: | |
10151 | return NULL; | |
10152 | } | |
10153 | ||
10154 | ||
8c3a7183 RD |
10155 | SWIGINTERN PyObject *_wrap_IconBundle_GetIconOfExactSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10156 | PyObject *resultobj = 0; | |
10157 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10158 | wxSize *arg2 = 0 ; | |
10159 | wxIcon result; | |
10160 | void *argp1 = 0 ; | |
10161 | int res1 = 0 ; | |
10162 | wxSize temp2 ; | |
10163 | PyObject * obj0 = 0 ; | |
10164 | PyObject * obj1 = 0 ; | |
10165 | char * kwnames[] = { | |
10166 | (char *) "self",(char *) "size", NULL | |
10167 | }; | |
10168 | ||
10169 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIconOfExactSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10170 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10171 | if (!SWIG_IsOK(res1)) { | |
10172 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconOfExactSize" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10173 | } | |
10174 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10175 | { | |
10176 | arg2 = &temp2; | |
10177 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10178 | } | |
10179 | { | |
10180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10181 | result = ((wxIconBundle const *)arg1)->GetIconOfExactSize((wxSize const &)*arg2); | |
10182 | wxPyEndAllowThreads(__tstate); | |
10183 | if (PyErr_Occurred()) SWIG_fail; | |
10184 | } | |
10185 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
10186 | return resultobj; | |
10187 | fail: | |
10188 | return NULL; | |
10189 | } | |
10190 | ||
10191 | ||
10192 | SWIGINTERN PyObject *_wrap_IconBundle_GetIconCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10193 | PyObject *resultobj = 0; | |
10194 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10195 | size_t result; | |
10196 | void *argp1 = 0 ; | |
10197 | int res1 = 0 ; | |
10198 | PyObject *swig_obj[1] ; | |
10199 | ||
10200 | if (!args) SWIG_fail; | |
10201 | swig_obj[0] = args; | |
10202 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10203 | if (!SWIG_IsOK(res1)) { | |
10204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconCount" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10205 | } | |
10206 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10207 | { | |
10208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10209 | result = (size_t)((wxIconBundle const *)arg1)->GetIconCount(); | |
10210 | wxPyEndAllowThreads(__tstate); | |
10211 | if (PyErr_Occurred()) SWIG_fail; | |
10212 | } | |
10213 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
10214 | return resultobj; | |
10215 | fail: | |
10216 | return NULL; | |
10217 | } | |
10218 | ||
10219 | ||
10220 | SWIGINTERN PyObject *_wrap_IconBundle_GetIconByIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10221 | PyObject *resultobj = 0; | |
10222 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10223 | size_t arg2 ; | |
10224 | wxIcon result; | |
10225 | void *argp1 = 0 ; | |
10226 | int res1 = 0 ; | |
10227 | size_t val2 ; | |
10228 | int ecode2 = 0 ; | |
10229 | PyObject * obj0 = 0 ; | |
10230 | PyObject * obj1 = 0 ; | |
10231 | char * kwnames[] = { | |
10232 | (char *) "self",(char *) "n", NULL | |
10233 | }; | |
10234 | ||
10235 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIconByIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
10236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10237 | if (!SWIG_IsOK(res1)) { | |
10238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconByIndex" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10239 | } | |
10240 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10241 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); | |
10242 | if (!SWIG_IsOK(ecode2)) { | |
10243 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconBundle_GetIconByIndex" "', expected argument " "2"" of type '" "size_t""'"); | |
10244 | } | |
10245 | arg2 = static_cast< size_t >(val2); | |
10246 | { | |
10247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10248 | result = ((wxIconBundle const *)arg1)->GetIconByIndex(arg2); | |
10249 | wxPyEndAllowThreads(__tstate); | |
10250 | if (PyErr_Occurred()) SWIG_fail; | |
10251 | } | |
10252 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
10253 | return resultobj; | |
10254 | fail: | |
10255 | return NULL; | |
10256 | } | |
10257 | ||
10258 | ||
10259 | SWIGINTERN PyObject *_wrap_IconBundle_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10260 | PyObject *resultobj = 0; | |
10261 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10262 | bool result; | |
10263 | void *argp1 = 0 ; | |
10264 | int res1 = 0 ; | |
10265 | PyObject *swig_obj[1] ; | |
10266 | ||
10267 | if (!args) SWIG_fail; | |
10268 | swig_obj[0] = args; | |
10269 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10270 | if (!SWIG_IsOK(res1)) { | |
10271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_IsEmpty" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10272 | } | |
10273 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10274 | { | |
10275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10276 | result = (bool)((wxIconBundle const *)arg1)->IsEmpty(); | |
10277 | wxPyEndAllowThreads(__tstate); | |
10278 | if (PyErr_Occurred()) SWIG_fail; | |
10279 | } | |
10280 | { | |
10281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10282 | } | |
10283 | return resultobj; | |
10284 | fail: | |
10285 | return NULL; | |
10286 | } | |
10287 | ||
10288 | ||
0085ce49 RD |
10289 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10290 | PyObject *obj; | |
10291 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10292 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
10293 | return SWIG_Py_Void(); | |
10294 | } | |
10295 | ||
10296 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10297 | return SWIG_Python_InitShadowInstance(args); | |
10298 | } | |
10299 | ||
10300 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10301 | PyObject *resultobj = 0; | |
10302 | wxString *arg1 = 0 ; | |
10303 | long arg2 ; | |
10304 | int arg3 = (int) 0 ; | |
10305 | int arg4 = (int) 0 ; | |
10306 | wxCursor *result = 0 ; | |
10307 | bool temp1 = false ; | |
10308 | long val2 ; | |
10309 | int ecode2 = 0 ; | |
10310 | int val3 ; | |
10311 | int ecode3 = 0 ; | |
10312 | int val4 ; | |
10313 | int ecode4 = 0 ; | |
10314 | PyObject * obj0 = 0 ; | |
10315 | PyObject * obj1 = 0 ; | |
10316 | PyObject * obj2 = 0 ; | |
10317 | PyObject * obj3 = 0 ; | |
10318 | char * kwnames[] = { | |
10319 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
10320 | }; | |
10321 | ||
10322 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10323 | { | |
10324 | arg1 = wxString_in_helper(obj0); | |
10325 | if (arg1 == NULL) SWIG_fail; | |
10326 | temp1 = true; | |
10327 | } | |
10328 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10329 | if (!SWIG_IsOK(ecode2)) { | |
10330 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
10331 | } | |
10332 | arg2 = static_cast< long >(val2); | |
10333 | if (obj2) { | |
10334 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10335 | if (!SWIG_IsOK(ecode3)) { | |
10336 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
10337 | } | |
10338 | arg3 = static_cast< int >(val3); | |
10339 | } | |
10340 | if (obj3) { | |
10341 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10342 | if (!SWIG_IsOK(ecode4)) { | |
10343 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
10344 | } | |
10345 | arg4 = static_cast< int >(val4); | |
10346 | } | |
10347 | { | |
10348 | if (!wxPyCheckForApp()) SWIG_fail; | |
10349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10350 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
10351 | wxPyEndAllowThreads(__tstate); | |
10352 | if (PyErr_Occurred()) SWIG_fail; | |
10353 | } | |
10354 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
10355 | { | |
10356 | if (temp1) | |
10357 | delete arg1; | |
10358 | } | |
10359 | return resultobj; | |
10360 | fail: | |
10361 | { | |
10362 | if (temp1) | |
10363 | delete arg1; | |
10364 | } | |
10365 | return NULL; | |
d14a1e28 RD |
10366 | } |
10367 | ||
10368 | ||
0085ce49 RD |
10369 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10370 | PyObject *resultobj = 0; | |
10371 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10372 | void *argp1 = 0 ; | |
10373 | int res1 = 0 ; | |
10374 | PyObject *swig_obj[1] ; | |
10375 | ||
10376 | if (!args) SWIG_fail; | |
10377 | swig_obj[0] = args; | |
10378 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
10379 | if (!SWIG_IsOK(res1)) { | |
10380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10381 | } | |
10382 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10383 | { | |
10384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10385 | delete arg1; | |
093d3ff1 | 10386 | |
0085ce49 RD |
10387 | wxPyEndAllowThreads(__tstate); |
10388 | if (PyErr_Occurred()) SWIG_fail; | |
10389 | } | |
10390 | resultobj = SWIG_Py_Void(); | |
10391 | return resultobj; | |
10392 | fail: | |
10393 | return NULL; | |
10394 | } | |
10395 | ||
10396 | ||
10397 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10398 | PyObject *resultobj = 0; | |
10399 | int arg1 ; | |
10400 | wxCursor *result = 0 ; | |
10401 | int val1 ; | |
10402 | int ecode1 = 0 ; | |
10403 | PyObject * obj0 = 0 ; | |
10404 | char * kwnames[] = { | |
10405 | (char *) "id", NULL | |
10406 | }; | |
10407 | ||
10408 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
10409 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10410 | if (!SWIG_IsOK(ecode1)) { | |
10411 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
10412 | } | |
10413 | arg1 = static_cast< int >(val1); | |
10414 | { | |
10415 | if (!wxPyCheckForApp()) SWIG_fail; | |
10416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10417 | result = (wxCursor *)new wxCursor(arg1); | |
10418 | wxPyEndAllowThreads(__tstate); | |
10419 | if (PyErr_Occurred()) SWIG_fail; | |
10420 | } | |
10421 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10422 | return resultobj; | |
10423 | fail: | |
10424 | return NULL; | |
10425 | } | |
10426 | ||
10427 | ||
10428 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10429 | PyObject *resultobj = 0; | |
10430 | wxImage *arg1 = 0 ; | |
10431 | wxCursor *result = 0 ; | |
10432 | void *argp1 = 0 ; | |
10433 | int res1 = 0 ; | |
10434 | PyObject * obj0 = 0 ; | |
10435 | char * kwnames[] = { | |
10436 | (char *) "image", NULL | |
10437 | }; | |
10438 | ||
10439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
10440 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
10441 | if (!SWIG_IsOK(res1)) { | |
10442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10443 | } | |
10444 | if (!argp1) { | |
10445 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10446 | } | |
10447 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
10448 | { | |
10449 | if (!wxPyCheckForApp()) SWIG_fail; | |
10450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10451 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
10452 | wxPyEndAllowThreads(__tstate); | |
10453 | if (PyErr_Occurred()) SWIG_fail; | |
10454 | } | |
10455 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10456 | return resultobj; | |
10457 | fail: | |
10458 | return NULL; | |
093d3ff1 RD |
10459 | } |
10460 | ||
10461 | ||
b39fe951 | 10462 | SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
10463 | PyObject *resultobj = 0; |
10464 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10465 | bool result; | |
10466 | void *argp1 = 0 ; | |
10467 | int res1 = 0 ; | |
10468 | PyObject *swig_obj[1] ; | |
10469 | ||
10470 | if (!args) SWIG_fail; | |
10471 | swig_obj[0] = args; | |
10472 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10473 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 10474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'"); |
0085ce49 RD |
10475 | } |
10476 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10477 | { | |
10478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 10479 | result = (bool)(arg1)->IsOk(); |
0085ce49 RD |
10480 | wxPyEndAllowThreads(__tstate); |
10481 | if (PyErr_Occurred()) SWIG_fail; | |
10482 | } | |
10483 | { | |
10484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10485 | } | |
10486 | return resultobj; | |
10487 | fail: | |
10488 | return NULL; | |
10489 | } | |
10490 | ||
10491 | ||
10492 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10493 | PyObject *obj; | |
10494 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10495 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
10496 | return SWIG_Py_Void(); | |
10497 | } | |
10498 | ||
10499 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10500 | return SWIG_Python_InitShadowInstance(args); | |
10501 | } | |
10502 | ||
10503 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10504 | PyObject *resultobj = 0; | |
10505 | int arg1 = (int) 0 ; | |
10506 | int arg2 = (int) 0 ; | |
10507 | int arg3 = (int) 0 ; | |
10508 | int arg4 = (int) 0 ; | |
10509 | wxRegion *result = 0 ; | |
10510 | int val1 ; | |
10511 | int ecode1 = 0 ; | |
10512 | int val2 ; | |
10513 | int ecode2 = 0 ; | |
10514 | int val3 ; | |
10515 | int ecode3 = 0 ; | |
10516 | int val4 ; | |
10517 | int ecode4 = 0 ; | |
10518 | PyObject * obj0 = 0 ; | |
10519 | PyObject * obj1 = 0 ; | |
10520 | PyObject * obj2 = 0 ; | |
10521 | PyObject * obj3 = 0 ; | |
10522 | char * kwnames[] = { | |
10523 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10524 | }; | |
10525 | ||
10526 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10527 | if (obj0) { | |
10528 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10529 | if (!SWIG_IsOK(ecode1)) { | |
10530 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
10531 | } | |
10532 | arg1 = static_cast< int >(val1); | |
10533 | } | |
10534 | if (obj1) { | |
10535 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10536 | if (!SWIG_IsOK(ecode2)) { | |
10537 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
10538 | } | |
10539 | arg2 = static_cast< int >(val2); | |
10540 | } | |
10541 | if (obj2) { | |
10542 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10543 | if (!SWIG_IsOK(ecode3)) { | |
10544 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
10545 | } | |
10546 | arg3 = static_cast< int >(val3); | |
10547 | } | |
10548 | if (obj3) { | |
10549 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10550 | if (!SWIG_IsOK(ecode4)) { | |
10551 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
10552 | } | |
10553 | arg4 = static_cast< int >(val4); | |
10554 | } | |
10555 | { | |
10556 | if (!wxPyCheckForApp()) SWIG_fail; | |
10557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10558 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
10559 | wxPyEndAllowThreads(__tstate); | |
10560 | if (PyErr_Occurred()) SWIG_fail; | |
10561 | } | |
10562 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
10563 | return resultobj; | |
10564 | fail: | |
10565 | return NULL; | |
10566 | } | |
10567 | ||
10568 | ||
10569 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10570 | PyObject *resultobj = 0; | |
10571 | wxBitmap *arg1 = 0 ; | |
10572 | wxRegion *result = 0 ; | |
10573 | void *argp1 = 0 ; | |
10574 | int res1 = 0 ; | |
10575 | PyObject * obj0 = 0 ; | |
10576 | char * kwnames[] = { | |
10577 | (char *) "bmp", NULL | |
10578 | }; | |
10579 | ||
10580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
10581 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10582 | if (!SWIG_IsOK(res1)) { | |
10583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10584 | } | |
10585 | if (!argp1) { | |
10586 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10587 | } | |
10588 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10589 | { | |
10590 | if (!wxPyCheckForApp()) SWIG_fail; | |
10591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10592 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
10593 | wxPyEndAllowThreads(__tstate); | |
10594 | if (PyErr_Occurred()) SWIG_fail; | |
10595 | } | |
10596 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10597 | return resultobj; | |
10598 | fail: | |
10599 | return NULL; | |
10600 | } | |
10601 | ||
10602 | ||
10603 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10604 | PyObject *resultobj = 0; | |
10605 | wxBitmap *arg1 = 0 ; | |
10606 | wxColour *arg2 = 0 ; | |
10607 | int arg3 = (int) 0 ; | |
10608 | wxRegion *result = 0 ; | |
10609 | void *argp1 = 0 ; | |
10610 | int res1 = 0 ; | |
10611 | wxColour temp2 ; | |
10612 | int val3 ; | |
10613 | int ecode3 = 0 ; | |
10614 | PyObject * obj0 = 0 ; | |
10615 | PyObject * obj1 = 0 ; | |
10616 | PyObject * obj2 = 0 ; | |
10617 | char * kwnames[] = { | |
10618 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
10619 | }; | |
10620 | ||
10621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10622 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10623 | if (!SWIG_IsOK(res1)) { | |
10624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10625 | } | |
10626 | if (!argp1) { | |
10627 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10628 | } | |
10629 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10630 | { | |
10631 | arg2 = &temp2; | |
10632 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10633 | } | |
10634 | if (obj2) { | |
10635 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10636 | if (!SWIG_IsOK(ecode3)) { | |
10637 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
10638 | } | |
10639 | arg3 = static_cast< int >(val3); | |
10640 | } | |
10641 | { | |
10642 | if (!wxPyCheckForApp()) SWIG_fail; | |
10643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10644 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
10645 | wxPyEndAllowThreads(__tstate); | |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
10647 | } | |
10648 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10649 | return resultobj; | |
10650 | fail: | |
10651 | return NULL; | |
10652 | } | |
10653 | ||
10654 | ||
10655 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10656 | PyObject *resultobj = 0; | |
10657 | int arg1 ; | |
10658 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10659 | int arg3 = (int) wxWINDING_RULE ; | |
10660 | wxRegion *result = 0 ; | |
10661 | int val3 ; | |
10662 | int ecode3 = 0 ; | |
10663 | PyObject * obj0 = 0 ; | |
10664 | PyObject * obj1 = 0 ; | |
10665 | char * kwnames[] = { | |
10666 | (char *) "points",(char *) "fillStyle", NULL | |
10667 | }; | |
10668 | ||
10669 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
10670 | { | |
10671 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
10672 | if (arg2 == NULL) SWIG_fail; | |
10673 | } | |
10674 | if (obj1) { | |
10675 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
10676 | if (!SWIG_IsOK(ecode3)) { | |
10677 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
10678 | } | |
10679 | arg3 = static_cast< int >(val3); | |
10680 | } | |
10681 | { | |
10682 | if (!wxPyCheckForApp()) SWIG_fail; | |
10683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10684 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
10685 | wxPyEndAllowThreads(__tstate); | |
10686 | if (PyErr_Occurred()) SWIG_fail; | |
10687 | } | |
10688 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10689 | { | |
10690 | if (arg2) delete [] arg2; | |
10691 | } | |
10692 | return resultobj; | |
10693 | fail: | |
10694 | { | |
10695 | if (arg2) delete [] arg2; | |
10696 | } | |
10697 | return NULL; | |
d14a1e28 RD |
10698 | } |
10699 | ||
10700 | ||
0085ce49 RD |
10701 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10702 | PyObject *resultobj = 0; | |
10703 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10704 | void *argp1 = 0 ; | |
10705 | int res1 = 0 ; | |
10706 | PyObject *swig_obj[1] ; | |
10707 | ||
10708 | if (!args) SWIG_fail; | |
10709 | swig_obj[0] = args; | |
10710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
10711 | if (!SWIG_IsOK(res1)) { | |
10712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10713 | } | |
10714 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10715 | { | |
10716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10717 | delete arg1; | |
d14a1e28 | 10718 | |
0085ce49 RD |
10719 | wxPyEndAllowThreads(__tstate); |
10720 | if (PyErr_Occurred()) SWIG_fail; | |
10721 | } | |
10722 | resultobj = SWIG_Py_Void(); | |
10723 | return resultobj; | |
10724 | fail: | |
10725 | return NULL; | |
d14a1e28 RD |
10726 | } |
10727 | ||
10728 | ||
0085ce49 RD |
10729 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10730 | PyObject *resultobj = 0; | |
10731 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10732 | void *argp1 = 0 ; | |
10733 | int res1 = 0 ; | |
10734 | PyObject *swig_obj[1] ; | |
10735 | ||
10736 | if (!args) SWIG_fail; | |
10737 | swig_obj[0] = args; | |
10738 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10739 | if (!SWIG_IsOK(res1)) { | |
10740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10741 | } | |
10742 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10743 | { | |
10744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10745 | (arg1)->Clear(); | |
10746 | wxPyEndAllowThreads(__tstate); | |
10747 | if (PyErr_Occurred()) SWIG_fail; | |
10748 | } | |
10749 | resultobj = SWIG_Py_Void(); | |
10750 | return resultobj; | |
10751 | fail: | |
10752 | return NULL; | |
10753 | } | |
10754 | ||
10755 | ||
10756 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10757 | PyObject *resultobj = 0; | |
10758 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10759 | int arg2 ; | |
10760 | int arg3 ; | |
10761 | bool result; | |
10762 | void *argp1 = 0 ; | |
10763 | int res1 = 0 ; | |
10764 | int val2 ; | |
10765 | int ecode2 = 0 ; | |
10766 | int val3 ; | |
10767 | int ecode3 = 0 ; | |
10768 | PyObject * obj0 = 0 ; | |
10769 | PyObject * obj1 = 0 ; | |
10770 | PyObject * obj2 = 0 ; | |
10771 | char * kwnames[] = { | |
10772 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10773 | }; | |
10774 | ||
10775 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10776 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10777 | if (!SWIG_IsOK(res1)) { | |
10778 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10779 | } | |
10780 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10781 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10782 | if (!SWIG_IsOK(ecode2)) { | |
10783 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
10784 | } | |
10785 | arg2 = static_cast< int >(val2); | |
10786 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10787 | if (!SWIG_IsOK(ecode3)) { | |
10788 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
10789 | } | |
10790 | arg3 = static_cast< int >(val3); | |
10791 | { | |
10792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10793 | result = (bool)(arg1)->Offset(arg2,arg3); | |
10794 | wxPyEndAllowThreads(__tstate); | |
10795 | if (PyErr_Occurred()) SWIG_fail; | |
10796 | } | |
10797 | { | |
10798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10799 | } | |
10800 | return resultobj; | |
10801 | fail: | |
10802 | return NULL; | |
10803 | } | |
10804 | ||
10805 | ||
10806 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10807 | PyObject *resultobj = 0; | |
10808 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10809 | int arg2 ; | |
10810 | int arg3 ; | |
10811 | wxRegionContain result; | |
10812 | void *argp1 = 0 ; | |
10813 | int res1 = 0 ; | |
10814 | int val2 ; | |
10815 | int ecode2 = 0 ; | |
10816 | int val3 ; | |
10817 | int ecode3 = 0 ; | |
10818 | PyObject * obj0 = 0 ; | |
10819 | PyObject * obj1 = 0 ; | |
10820 | PyObject * obj2 = 0 ; | |
10821 | char * kwnames[] = { | |
10822 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10823 | }; | |
10824 | ||
10825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10827 | if (!SWIG_IsOK(res1)) { | |
10828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10829 | } | |
10830 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10831 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10832 | if (!SWIG_IsOK(ecode2)) { | |
10833 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
10834 | } | |
10835 | arg2 = static_cast< int >(val2); | |
10836 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10837 | if (!SWIG_IsOK(ecode3)) { | |
10838 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
10839 | } | |
10840 | arg3 = static_cast< int >(val3); | |
10841 | { | |
10842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10843 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
10844 | wxPyEndAllowThreads(__tstate); | |
10845 | if (PyErr_Occurred()) SWIG_fail; | |
10846 | } | |
10847 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10848 | return resultobj; | |
10849 | fail: | |
10850 | return NULL; | |
10851 | } | |
10852 | ||
10853 | ||
10854 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10855 | PyObject *resultobj = 0; | |
10856 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10857 | wxPoint *arg2 = 0 ; | |
10858 | wxRegionContain result; | |
10859 | void *argp1 = 0 ; | |
10860 | int res1 = 0 ; | |
10861 | wxPoint temp2 ; | |
10862 | PyObject * obj0 = 0 ; | |
10863 | PyObject * obj1 = 0 ; | |
10864 | char * kwnames[] = { | |
10865 | (char *) "self",(char *) "pt", NULL | |
10866 | }; | |
10867 | ||
10868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
10869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10870 | if (!SWIG_IsOK(res1)) { | |
10871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10872 | } | |
10873 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10874 | { | |
10875 | arg2 = &temp2; | |
10876 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10877 | } | |
10878 | { | |
10879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10880 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
10881 | wxPyEndAllowThreads(__tstate); | |
10882 | if (PyErr_Occurred()) SWIG_fail; | |
10883 | } | |
10884 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10885 | return resultobj; | |
10886 | fail: | |
10887 | return NULL; | |
10888 | } | |
10889 | ||
10890 | ||
10891 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10892 | PyObject *resultobj = 0; | |
10893 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10894 | wxRect *arg2 = 0 ; | |
10895 | wxRegionContain result; | |
10896 | void *argp1 = 0 ; | |
10897 | int res1 = 0 ; | |
10898 | wxRect temp2 ; | |
10899 | PyObject * obj0 = 0 ; | |
10900 | PyObject * obj1 = 0 ; | |
10901 | char * kwnames[] = { | |
10902 | (char *) "self",(char *) "rect", NULL | |
10903 | }; | |
10904 | ||
10905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10906 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10907 | if (!SWIG_IsOK(res1)) { | |
10908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10909 | } | |
10910 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10911 | { | |
10912 | arg2 = &temp2; | |
10913 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10914 | } | |
10915 | { | |
10916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10917 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
10918 | wxPyEndAllowThreads(__tstate); | |
10919 | if (PyErr_Occurred()) SWIG_fail; | |
10920 | } | |
10921 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10922 | return resultobj; | |
10923 | fail: | |
10924 | return NULL; | |
10925 | } | |
10926 | ||
10927 | ||
10928 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10929 | PyObject *resultobj = 0; | |
10930 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10931 | int arg2 ; | |
10932 | int arg3 ; | |
10933 | int arg4 ; | |
10934 | int arg5 ; | |
10935 | wxRegionContain result; | |
10936 | void *argp1 = 0 ; | |
10937 | int res1 = 0 ; | |
10938 | int val2 ; | |
10939 | int ecode2 = 0 ; | |
10940 | int val3 ; | |
10941 | int ecode3 = 0 ; | |
10942 | int val4 ; | |
10943 | int ecode4 = 0 ; | |
10944 | int val5 ; | |
10945 | int ecode5 = 0 ; | |
10946 | PyObject * obj0 = 0 ; | |
10947 | PyObject * obj1 = 0 ; | |
10948 | PyObject * obj2 = 0 ; | |
10949 | PyObject * obj3 = 0 ; | |
10950 | PyObject * obj4 = 0 ; | |
10951 | char * kwnames[] = { | |
10952 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
10953 | }; | |
10954 | ||
10955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10957 | if (!SWIG_IsOK(res1)) { | |
10958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10959 | } | |
10960 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10961 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10962 | if (!SWIG_IsOK(ecode2)) { | |
10963 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
10964 | } | |
10965 | arg2 = static_cast< int >(val2); | |
10966 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10967 | if (!SWIG_IsOK(ecode3)) { | |
10968 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
10969 | } | |
10970 | arg3 = static_cast< int >(val3); | |
10971 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10972 | if (!SWIG_IsOK(ecode4)) { | |
10973 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
10974 | } | |
10975 | arg4 = static_cast< int >(val4); | |
10976 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10977 | if (!SWIG_IsOK(ecode5)) { | |
10978 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
10979 | } | |
10980 | arg5 = static_cast< int >(val5); | |
10981 | { | |
10982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10983 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
10984 | wxPyEndAllowThreads(__tstate); | |
10985 | if (PyErr_Occurred()) SWIG_fail; | |
10986 | } | |
10987 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10988 | return resultobj; | |
10989 | fail: | |
10990 | return NULL; | |
d14a1e28 RD |
10991 | } |
10992 | ||
10993 | ||
0085ce49 RD |
10994 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10995 | PyObject *resultobj = 0; | |
10996 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10997 | wxRect result; | |
10998 | void *argp1 = 0 ; | |
10999 | int res1 = 0 ; | |
11000 | PyObject *swig_obj[1] ; | |
11001 | ||
11002 | if (!args) SWIG_fail; | |
11003 | swig_obj[0] = args; | |
11004 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11005 | if (!SWIG_IsOK(res1)) { | |
11006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11007 | } | |
11008 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11009 | { | |
11010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11011 | result = (arg1)->GetBox(); | |
11012 | wxPyEndAllowThreads(__tstate); | |
11013 | if (PyErr_Occurred()) SWIG_fail; | |
11014 | } | |
11015 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11016 | return resultobj; | |
11017 | fail: | |
11018 | return NULL; | |
11019 | } | |
11020 | ||
11021 | ||
11022 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11023 | PyObject *resultobj = 0; | |
11024 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11025 | int arg2 ; | |
11026 | int arg3 ; | |
11027 | int arg4 ; | |
11028 | int arg5 ; | |
11029 | bool result; | |
11030 | void *argp1 = 0 ; | |
11031 | int res1 = 0 ; | |
11032 | int val2 ; | |
11033 | int ecode2 = 0 ; | |
11034 | int val3 ; | |
11035 | int ecode3 = 0 ; | |
11036 | int val4 ; | |
11037 | int ecode4 = 0 ; | |
11038 | int val5 ; | |
11039 | int ecode5 = 0 ; | |
11040 | PyObject * obj0 = 0 ; | |
11041 | PyObject * obj1 = 0 ; | |
11042 | PyObject * obj2 = 0 ; | |
11043 | PyObject * obj3 = 0 ; | |
11044 | PyObject * obj4 = 0 ; | |
11045 | char * kwnames[] = { | |
11046 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11047 | }; | |
11048 | ||
11049 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11050 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11051 | if (!SWIG_IsOK(res1)) { | |
11052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11053 | } | |
11054 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11055 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11056 | if (!SWIG_IsOK(ecode2)) { | |
11057 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
11058 | } | |
11059 | arg2 = static_cast< int >(val2); | |
11060 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11061 | if (!SWIG_IsOK(ecode3)) { | |
11062 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
11063 | } | |
11064 | arg3 = static_cast< int >(val3); | |
11065 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11066 | if (!SWIG_IsOK(ecode4)) { | |
11067 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
11068 | } | |
11069 | arg4 = static_cast< int >(val4); | |
11070 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11071 | if (!SWIG_IsOK(ecode5)) { | |
11072 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
11073 | } | |
11074 | arg5 = static_cast< int >(val5); | |
11075 | { | |
11076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11077 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
11078 | wxPyEndAllowThreads(__tstate); | |
11079 | if (PyErr_Occurred()) SWIG_fail; | |
11080 | } | |
11081 | { | |
11082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11083 | } | |
11084 | return resultobj; | |
11085 | fail: | |
11086 | return NULL; | |
11087 | } | |
11088 | ||
11089 | ||
11090 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11091 | PyObject *resultobj = 0; | |
11092 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11093 | wxRect *arg2 = 0 ; | |
11094 | bool result; | |
11095 | void *argp1 = 0 ; | |
11096 | int res1 = 0 ; | |
11097 | wxRect temp2 ; | |
11098 | PyObject * obj0 = 0 ; | |
11099 | PyObject * obj1 = 0 ; | |
11100 | char * kwnames[] = { | |
11101 | (char *) "self",(char *) "rect", NULL | |
11102 | }; | |
11103 | ||
11104 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11105 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11106 | if (!SWIG_IsOK(res1)) { | |
11107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11108 | } | |
11109 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11110 | { | |
11111 | arg2 = &temp2; | |
11112 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11113 | } | |
11114 | { | |
11115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11116 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
11117 | wxPyEndAllowThreads(__tstate); | |
11118 | if (PyErr_Occurred()) SWIG_fail; | |
11119 | } | |
11120 | { | |
11121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11122 | } | |
11123 | return resultobj; | |
11124 | fail: | |
11125 | return NULL; | |
11126 | } | |
11127 | ||
11128 | ||
11129 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11130 | PyObject *resultobj = 0; | |
11131 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11132 | wxRegion *arg2 = 0 ; | |
11133 | bool result; | |
11134 | void *argp1 = 0 ; | |
11135 | int res1 = 0 ; | |
11136 | void *argp2 = 0 ; | |
11137 | int res2 = 0 ; | |
11138 | PyObject * obj0 = 0 ; | |
11139 | PyObject * obj1 = 0 ; | |
11140 | char * kwnames[] = { | |
11141 | (char *) "self",(char *) "region", NULL | |
11142 | }; | |
11143 | ||
11144 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11146 | if (!SWIG_IsOK(res1)) { | |
11147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11148 | } | |
11149 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11150 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11151 | if (!SWIG_IsOK(res2)) { | |
11152 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11153 | } | |
11154 | if (!argp2) { | |
11155 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11156 | } | |
11157 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11158 | { | |
11159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11160 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
11161 | wxPyEndAllowThreads(__tstate); | |
11162 | if (PyErr_Occurred()) SWIG_fail; | |
11163 | } | |
11164 | { | |
11165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11166 | } | |
11167 | return resultobj; | |
11168 | fail: | |
11169 | return NULL; | |
d14a1e28 RD |
11170 | } |
11171 | ||
11172 | ||
0085ce49 RD |
11173 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11174 | PyObject *resultobj = 0; | |
11175 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11176 | bool result; | |
11177 | void *argp1 = 0 ; | |
11178 | int res1 = 0 ; | |
11179 | PyObject *swig_obj[1] ; | |
11180 | ||
11181 | if (!args) SWIG_fail; | |
11182 | swig_obj[0] = args; | |
11183 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11184 | if (!SWIG_IsOK(res1)) { | |
11185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11186 | } | |
11187 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11188 | { | |
11189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11190 | result = (bool)(arg1)->IsEmpty(); | |
11191 | wxPyEndAllowThreads(__tstate); | |
11192 | if (PyErr_Occurred()) SWIG_fail; | |
11193 | } | |
11194 | { | |
11195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11196 | } | |
11197 | return resultobj; | |
11198 | fail: | |
11199 | return NULL; | |
11200 | } | |
11201 | ||
11202 | ||
f5263701 RD |
11203 | SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11204 | PyObject *resultobj = 0; | |
11205 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11206 | wxRegion *arg2 = 0 ; | |
11207 | bool result; | |
11208 | void *argp1 = 0 ; | |
11209 | int res1 = 0 ; | |
11210 | void *argp2 = 0 ; | |
11211 | int res2 = 0 ; | |
11212 | PyObject * obj0 = 0 ; | |
11213 | PyObject * obj1 = 0 ; | |
11214 | char * kwnames[] = { | |
11215 | (char *) "self",(char *) "region", NULL | |
11216 | }; | |
11217 | ||
11218 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; | |
11219 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11220 | if (!SWIG_IsOK(res1)) { | |
11221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'"); | |
11222 | } | |
11223 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11224 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11225 | if (!SWIG_IsOK(res2)) { | |
11226 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11227 | } | |
11228 | if (!argp2) { | |
11229 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11230 | } | |
11231 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11232 | { | |
11233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11234 | result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2); | |
11235 | wxPyEndAllowThreads(__tstate); | |
11236 | if (PyErr_Occurred()) SWIG_fail; | |
11237 | } | |
11238 | { | |
11239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11240 | } | |
11241 | return resultobj; | |
11242 | fail: | |
11243 | return NULL; | |
11244 | } | |
11245 | ||
11246 | ||
0085ce49 RD |
11247 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11248 | PyObject *resultobj = 0; | |
11249 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11250 | int arg2 ; | |
11251 | int arg3 ; | |
11252 | int arg4 ; | |
11253 | int arg5 ; | |
11254 | bool result; | |
11255 | void *argp1 = 0 ; | |
11256 | int res1 = 0 ; | |
11257 | int val2 ; | |
11258 | int ecode2 = 0 ; | |
11259 | int val3 ; | |
11260 | int ecode3 = 0 ; | |
11261 | int val4 ; | |
11262 | int ecode4 = 0 ; | |
11263 | int val5 ; | |
11264 | int ecode5 = 0 ; | |
11265 | PyObject * obj0 = 0 ; | |
11266 | PyObject * obj1 = 0 ; | |
11267 | PyObject * obj2 = 0 ; | |
11268 | PyObject * obj3 = 0 ; | |
11269 | PyObject * obj4 = 0 ; | |
11270 | char * kwnames[] = { | |
11271 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11272 | }; | |
11273 | ||
11274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11276 | if (!SWIG_IsOK(res1)) { | |
11277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11278 | } | |
11279 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11280 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11281 | if (!SWIG_IsOK(ecode2)) { | |
11282 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
11283 | } | |
11284 | arg2 = static_cast< int >(val2); | |
11285 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11286 | if (!SWIG_IsOK(ecode3)) { | |
11287 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
11288 | } | |
11289 | arg3 = static_cast< int >(val3); | |
11290 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11291 | if (!SWIG_IsOK(ecode4)) { | |
11292 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
11293 | } | |
11294 | arg4 = static_cast< int >(val4); | |
11295 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11296 | if (!SWIG_IsOK(ecode5)) { | |
11297 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
11298 | } | |
11299 | arg5 = static_cast< int >(val5); | |
11300 | { | |
11301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11302 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
11303 | wxPyEndAllowThreads(__tstate); | |
11304 | if (PyErr_Occurred()) SWIG_fail; | |
11305 | } | |
11306 | { | |
11307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11308 | } | |
11309 | return resultobj; | |
11310 | fail: | |
11311 | return NULL; | |
11312 | } | |
11313 | ||
11314 | ||
11315 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11316 | PyObject *resultobj = 0; | |
11317 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11318 | wxRect *arg2 = 0 ; | |
11319 | bool result; | |
11320 | void *argp1 = 0 ; | |
11321 | int res1 = 0 ; | |
11322 | wxRect temp2 ; | |
11323 | PyObject * obj0 = 0 ; | |
11324 | PyObject * obj1 = 0 ; | |
11325 | char * kwnames[] = { | |
11326 | (char *) "self",(char *) "rect", NULL | |
11327 | }; | |
11328 | ||
11329 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11330 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11331 | if (!SWIG_IsOK(res1)) { | |
11332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11333 | } | |
11334 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11335 | { | |
11336 | arg2 = &temp2; | |
11337 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11338 | } | |
11339 | { | |
11340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11341 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
11342 | wxPyEndAllowThreads(__tstate); | |
11343 | if (PyErr_Occurred()) SWIG_fail; | |
11344 | } | |
11345 | { | |
11346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11347 | } | |
11348 | return resultobj; | |
11349 | fail: | |
11350 | return NULL; | |
11351 | } | |
11352 | ||
11353 | ||
11354 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11355 | PyObject *resultobj = 0; | |
11356 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11357 | wxRegion *arg2 = 0 ; | |
11358 | bool result; | |
11359 | void *argp1 = 0 ; | |
11360 | int res1 = 0 ; | |
11361 | void *argp2 = 0 ; | |
11362 | int res2 = 0 ; | |
11363 | PyObject * obj0 = 0 ; | |
11364 | PyObject * obj1 = 0 ; | |
11365 | char * kwnames[] = { | |
11366 | (char *) "self",(char *) "region", NULL | |
11367 | }; | |
11368 | ||
11369 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11370 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11371 | if (!SWIG_IsOK(res1)) { | |
11372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11373 | } | |
11374 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11375 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11376 | if (!SWIG_IsOK(res2)) { | |
11377 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11378 | } | |
11379 | if (!argp2) { | |
11380 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11381 | } | |
11382 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11383 | { | |
11384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11385 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
11386 | wxPyEndAllowThreads(__tstate); | |
11387 | if (PyErr_Occurred()) SWIG_fail; | |
11388 | } | |
11389 | { | |
11390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11391 | } | |
11392 | return resultobj; | |
11393 | fail: | |
11394 | return NULL; | |
11395 | } | |
11396 | ||
11397 | ||
11398 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11399 | PyObject *resultobj = 0; | |
11400 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11401 | int arg2 ; | |
11402 | int arg3 ; | |
11403 | int arg4 ; | |
11404 | int arg5 ; | |
11405 | bool result; | |
11406 | void *argp1 = 0 ; | |
11407 | int res1 = 0 ; | |
11408 | int val2 ; | |
11409 | int ecode2 = 0 ; | |
11410 | int val3 ; | |
11411 | int ecode3 = 0 ; | |
11412 | int val4 ; | |
11413 | int ecode4 = 0 ; | |
11414 | int val5 ; | |
11415 | int ecode5 = 0 ; | |
11416 | PyObject * obj0 = 0 ; | |
11417 | PyObject * obj1 = 0 ; | |
11418 | PyObject * obj2 = 0 ; | |
11419 | PyObject * obj3 = 0 ; | |
11420 | PyObject * obj4 = 0 ; | |
11421 | char * kwnames[] = { | |
11422 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11423 | }; | |
11424 | ||
11425 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11427 | if (!SWIG_IsOK(res1)) { | |
11428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11429 | } | |
11430 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11431 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11432 | if (!SWIG_IsOK(ecode2)) { | |
11433 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
11434 | } | |
11435 | arg2 = static_cast< int >(val2); | |
11436 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11437 | if (!SWIG_IsOK(ecode3)) { | |
11438 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
11439 | } | |
11440 | arg3 = static_cast< int >(val3); | |
11441 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11442 | if (!SWIG_IsOK(ecode4)) { | |
11443 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
11444 | } | |
11445 | arg4 = static_cast< int >(val4); | |
11446 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11447 | if (!SWIG_IsOK(ecode5)) { | |
11448 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
11449 | } | |
11450 | arg5 = static_cast< int >(val5); | |
11451 | { | |
11452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11453 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
11454 | wxPyEndAllowThreads(__tstate); | |
11455 | if (PyErr_Occurred()) SWIG_fail; | |
11456 | } | |
11457 | { | |
11458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11459 | } | |
11460 | return resultobj; | |
11461 | fail: | |
11462 | return NULL; | |
11463 | } | |
11464 | ||
11465 | ||
11466 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11467 | PyObject *resultobj = 0; | |
11468 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11469 | wxRect *arg2 = 0 ; | |
11470 | bool result; | |
11471 | void *argp1 = 0 ; | |
11472 | int res1 = 0 ; | |
11473 | wxRect temp2 ; | |
11474 | PyObject * obj0 = 0 ; | |
11475 | PyObject * obj1 = 0 ; | |
11476 | char * kwnames[] = { | |
11477 | (char *) "self",(char *) "rect", NULL | |
11478 | }; | |
11479 | ||
11480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11482 | if (!SWIG_IsOK(res1)) { | |
11483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11484 | } | |
11485 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11486 | { | |
11487 | arg2 = &temp2; | |
11488 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11489 | } | |
11490 | { | |
11491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11492 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
11493 | wxPyEndAllowThreads(__tstate); | |
11494 | if (PyErr_Occurred()) SWIG_fail; | |
11495 | } | |
11496 | { | |
11497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11498 | } | |
11499 | return resultobj; | |
11500 | fail: | |
11501 | return NULL; | |
11502 | } | |
11503 | ||
11504 | ||
11505 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11506 | PyObject *resultobj = 0; | |
11507 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11508 | wxRegion *arg2 = 0 ; | |
11509 | bool result; | |
11510 | void *argp1 = 0 ; | |
11511 | int res1 = 0 ; | |
11512 | void *argp2 = 0 ; | |
11513 | int res2 = 0 ; | |
11514 | PyObject * obj0 = 0 ; | |
11515 | PyObject * obj1 = 0 ; | |
11516 | char * kwnames[] = { | |
11517 | (char *) "self",(char *) "region", NULL | |
11518 | }; | |
11519 | ||
11520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11522 | if (!SWIG_IsOK(res1)) { | |
11523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11524 | } | |
11525 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11526 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11527 | if (!SWIG_IsOK(res2)) { | |
11528 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11529 | } | |
11530 | if (!argp2) { | |
11531 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11532 | } | |
11533 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11534 | { | |
11535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11536 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
11537 | wxPyEndAllowThreads(__tstate); | |
11538 | if (PyErr_Occurred()) SWIG_fail; | |
11539 | } | |
11540 | { | |
11541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11542 | } | |
11543 | return resultobj; | |
11544 | fail: | |
11545 | return NULL; | |
11546 | } | |
11547 | ||
11548 | ||
11549 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11550 | PyObject *resultobj = 0; | |
11551 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11552 | int arg2 ; | |
11553 | int arg3 ; | |
11554 | int arg4 ; | |
11555 | int arg5 ; | |
11556 | bool result; | |
11557 | void *argp1 = 0 ; | |
11558 | int res1 = 0 ; | |
11559 | int val2 ; | |
11560 | int ecode2 = 0 ; | |
11561 | int val3 ; | |
11562 | int ecode3 = 0 ; | |
11563 | int val4 ; | |
11564 | int ecode4 = 0 ; | |
11565 | int val5 ; | |
11566 | int ecode5 = 0 ; | |
11567 | PyObject * obj0 = 0 ; | |
11568 | PyObject * obj1 = 0 ; | |
11569 | PyObject * obj2 = 0 ; | |
11570 | PyObject * obj3 = 0 ; | |
11571 | PyObject * obj4 = 0 ; | |
11572 | char * kwnames[] = { | |
11573 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11574 | }; | |
11575 | ||
11576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11577 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11578 | if (!SWIG_IsOK(res1)) { | |
11579 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11580 | } | |
11581 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11582 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11583 | if (!SWIG_IsOK(ecode2)) { | |
11584 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
11585 | } | |
11586 | arg2 = static_cast< int >(val2); | |
11587 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11588 | if (!SWIG_IsOK(ecode3)) { | |
11589 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
11590 | } | |
11591 | arg3 = static_cast< int >(val3); | |
11592 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11593 | if (!SWIG_IsOK(ecode4)) { | |
11594 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
11595 | } | |
11596 | arg4 = static_cast< int >(val4); | |
11597 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11598 | if (!SWIG_IsOK(ecode5)) { | |
11599 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
11600 | } | |
11601 | arg5 = static_cast< int >(val5); | |
11602 | { | |
11603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11604 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
11605 | wxPyEndAllowThreads(__tstate); | |
11606 | if (PyErr_Occurred()) SWIG_fail; | |
11607 | } | |
11608 | { | |
11609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11610 | } | |
11611 | return resultobj; | |
11612 | fail: | |
11613 | return NULL; | |
11614 | } | |
11615 | ||
11616 | ||
11617 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11618 | PyObject *resultobj = 0; | |
11619 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11620 | wxRect *arg2 = 0 ; | |
11621 | bool result; | |
11622 | void *argp1 = 0 ; | |
11623 | int res1 = 0 ; | |
11624 | wxRect temp2 ; | |
11625 | PyObject * obj0 = 0 ; | |
11626 | PyObject * obj1 = 0 ; | |
11627 | char * kwnames[] = { | |
11628 | (char *) "self",(char *) "rect", NULL | |
11629 | }; | |
11630 | ||
11631 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11632 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11633 | if (!SWIG_IsOK(res1)) { | |
11634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11635 | } | |
11636 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11637 | { | |
11638 | arg2 = &temp2; | |
11639 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11640 | } | |
11641 | { | |
11642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11643 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
11644 | wxPyEndAllowThreads(__tstate); | |
11645 | if (PyErr_Occurred()) SWIG_fail; | |
11646 | } | |
11647 | { | |
11648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11649 | } | |
11650 | return resultobj; | |
11651 | fail: | |
11652 | return NULL; | |
11653 | } | |
11654 | ||
11655 | ||
11656 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11657 | PyObject *resultobj = 0; | |
11658 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11659 | wxRegion *arg2 = 0 ; | |
11660 | bool result; | |
11661 | void *argp1 = 0 ; | |
11662 | int res1 = 0 ; | |
11663 | void *argp2 = 0 ; | |
11664 | int res2 = 0 ; | |
11665 | PyObject * obj0 = 0 ; | |
11666 | PyObject * obj1 = 0 ; | |
11667 | char * kwnames[] = { | |
11668 | (char *) "self",(char *) "region", NULL | |
11669 | }; | |
11670 | ||
11671 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11672 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11673 | if (!SWIG_IsOK(res1)) { | |
11674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11675 | } | |
11676 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11677 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11678 | if (!SWIG_IsOK(res2)) { | |
11679 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11680 | } | |
11681 | if (!argp2) { | |
11682 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11683 | } | |
11684 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11685 | { | |
11686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11687 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
11688 | wxPyEndAllowThreads(__tstate); | |
11689 | if (PyErr_Occurred()) SWIG_fail; | |
11690 | } | |
11691 | { | |
11692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11693 | } | |
11694 | return resultobj; | |
11695 | fail: | |
11696 | return NULL; | |
d14a1e28 RD |
11697 | } |
11698 | ||
11699 | ||
0085ce49 RD |
11700 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11701 | PyObject *resultobj = 0; | |
11702 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11703 | SwigValueWrapper<wxBitmap > result; | |
11704 | void *argp1 = 0 ; | |
11705 | int res1 = 0 ; | |
11706 | PyObject *swig_obj[1] ; | |
11707 | ||
11708 | if (!args) SWIG_fail; | |
11709 | swig_obj[0] = args; | |
11710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11711 | if (!SWIG_IsOK(res1)) { | |
11712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11713 | } | |
11714 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11715 | { | |
11716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11717 | result = (arg1)->ConvertToBitmap(); | |
11718 | wxPyEndAllowThreads(__tstate); | |
11719 | if (PyErr_Occurred()) SWIG_fail; | |
11720 | } | |
11721 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
11722 | return resultobj; | |
11723 | fail: | |
11724 | return NULL; | |
11725 | } | |
11726 | ||
11727 | ||
11728 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11729 | PyObject *resultobj = 0; | |
11730 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11731 | wxBitmap *arg2 = 0 ; | |
11732 | bool result; | |
11733 | void *argp1 = 0 ; | |
11734 | int res1 = 0 ; | |
11735 | void *argp2 = 0 ; | |
11736 | int res2 = 0 ; | |
11737 | PyObject * obj0 = 0 ; | |
11738 | PyObject * obj1 = 0 ; | |
11739 | char * kwnames[] = { | |
11740 | (char *) "self",(char *) "bmp", NULL | |
11741 | }; | |
11742 | ||
11743 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
11744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11745 | if (!SWIG_IsOK(res1)) { | |
11746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11747 | } | |
11748 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11749 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11750 | if (!SWIG_IsOK(res2)) { | |
11751 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11752 | } | |
11753 | if (!argp2) { | |
11754 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11755 | } | |
11756 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11757 | { | |
11758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11759 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
11760 | wxPyEndAllowThreads(__tstate); | |
11761 | if (PyErr_Occurred()) SWIG_fail; | |
11762 | } | |
11763 | { | |
11764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11765 | } | |
11766 | return resultobj; | |
11767 | fail: | |
11768 | return NULL; | |
11769 | } | |
11770 | ||
11771 | ||
11772 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11773 | PyObject *resultobj = 0; | |
11774 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11775 | wxBitmap *arg2 = 0 ; | |
11776 | wxColour *arg3 = 0 ; | |
11777 | int arg4 = (int) 0 ; | |
11778 | bool result; | |
11779 | void *argp1 = 0 ; | |
11780 | int res1 = 0 ; | |
11781 | void *argp2 = 0 ; | |
11782 | int res2 = 0 ; | |
11783 | wxColour temp3 ; | |
11784 | int val4 ; | |
11785 | int ecode4 = 0 ; | |
11786 | PyObject * obj0 = 0 ; | |
11787 | PyObject * obj1 = 0 ; | |
11788 | PyObject * obj2 = 0 ; | |
11789 | PyObject * obj3 = 0 ; | |
11790 | char * kwnames[] = { | |
11791 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
11792 | }; | |
11793 | ||
11794 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11795 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11796 | if (!SWIG_IsOK(res1)) { | |
11797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11798 | } | |
11799 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11800 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11801 | if (!SWIG_IsOK(res2)) { | |
11802 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11803 | } | |
11804 | if (!argp2) { | |
11805 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11806 | } | |
11807 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11808 | { | |
11809 | arg3 = &temp3; | |
11810 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11811 | } | |
11812 | if (obj3) { | |
11813 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11814 | if (!SWIG_IsOK(ecode4)) { | |
11815 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
11816 | } | |
11817 | arg4 = static_cast< int >(val4); | |
11818 | } | |
11819 | { | |
11820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11821 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
11822 | wxPyEndAllowThreads(__tstate); | |
11823 | if (PyErr_Occurred()) SWIG_fail; | |
11824 | } | |
11825 | { | |
11826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11827 | } | |
11828 | return resultobj; | |
11829 | fail: | |
11830 | return NULL; | |
d14a1e28 RD |
11831 | } |
11832 | ||
11833 | ||
0085ce49 RD |
11834 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11835 | PyObject *obj; | |
11836 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11837 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
11838 | return SWIG_Py_Void(); | |
d14a1e28 RD |
11839 | } |
11840 | ||
0085ce49 RD |
11841 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11842 | return SWIG_Python_InitShadowInstance(args); | |
11843 | } | |
d14a1e28 | 11844 | |
0085ce49 RD |
11845 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11846 | PyObject *resultobj = 0; | |
11847 | wxRegion *arg1 = 0 ; | |
11848 | wxRegionIterator *result = 0 ; | |
11849 | void *argp1 = 0 ; | |
11850 | int res1 = 0 ; | |
11851 | PyObject * obj0 = 0 ; | |
11852 | char * kwnames[] = { | |
11853 | (char *) "region", NULL | |
11854 | }; | |
11855 | ||
11856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
11857 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
11858 | if (!SWIG_IsOK(res1)) { | |
11859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11860 | } | |
11861 | if (!argp1) { | |
11862 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11863 | } | |
11864 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11865 | { | |
11866 | if (!wxPyCheckForApp()) SWIG_fail; | |
11867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11868 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
11869 | wxPyEndAllowThreads(__tstate); | |
11870 | if (PyErr_Occurred()) SWIG_fail; | |
11871 | } | |
11872 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
11873 | return resultobj; | |
11874 | fail: | |
11875 | return NULL; | |
d14a1e28 RD |
11876 | } |
11877 | ||
11878 | ||
0085ce49 RD |
11879 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11880 | PyObject *resultobj = 0; | |
11881 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11882 | void *argp1 = 0 ; | |
11883 | int res1 = 0 ; | |
11884 | PyObject *swig_obj[1] ; | |
11885 | ||
11886 | if (!args) SWIG_fail; | |
11887 | swig_obj[0] = args; | |
11888 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
11889 | if (!SWIG_IsOK(res1)) { | |
11890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11891 | } | |
11892 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11893 | { | |
11894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11895 | delete arg1; | |
d14a1e28 | 11896 | |
0085ce49 RD |
11897 | wxPyEndAllowThreads(__tstate); |
11898 | if (PyErr_Occurred()) SWIG_fail; | |
11899 | } | |
11900 | resultobj = SWIG_Py_Void(); | |
11901 | return resultobj; | |
11902 | fail: | |
11903 | return NULL; | |
d14a1e28 RD |
11904 | } |
11905 | ||
11906 | ||
0085ce49 RD |
11907 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11908 | PyObject *resultobj = 0; | |
11909 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11910 | int result; | |
11911 | void *argp1 = 0 ; | |
11912 | int res1 = 0 ; | |
11913 | PyObject *swig_obj[1] ; | |
11914 | ||
11915 | if (!args) SWIG_fail; | |
11916 | swig_obj[0] = args; | |
11917 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11918 | if (!SWIG_IsOK(res1)) { | |
11919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11920 | } | |
11921 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11922 | { | |
11923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11924 | result = (int)(arg1)->GetX(); | |
11925 | wxPyEndAllowThreads(__tstate); | |
11926 | if (PyErr_Occurred()) SWIG_fail; | |
11927 | } | |
11928 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11929 | return resultobj; | |
11930 | fail: | |
11931 | return NULL; | |
d14a1e28 RD |
11932 | } |
11933 | ||
11934 | ||
0085ce49 RD |
11935 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11936 | PyObject *resultobj = 0; | |
11937 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11938 | int result; | |
11939 | void *argp1 = 0 ; | |
11940 | int res1 = 0 ; | |
11941 | PyObject *swig_obj[1] ; | |
11942 | ||
11943 | if (!args) SWIG_fail; | |
11944 | swig_obj[0] = args; | |
11945 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11946 | if (!SWIG_IsOK(res1)) { | |
11947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11948 | } | |
11949 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11950 | { | |
11951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11952 | result = (int)(arg1)->GetY(); | |
11953 | wxPyEndAllowThreads(__tstate); | |
11954 | if (PyErr_Occurred()) SWIG_fail; | |
11955 | } | |
11956 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11957 | return resultobj; | |
11958 | fail: | |
11959 | return NULL; | |
d14a1e28 RD |
11960 | } |
11961 | ||
11962 | ||
0085ce49 RD |
11963 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11964 | PyObject *resultobj = 0; | |
11965 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11966 | int result; | |
11967 | void *argp1 = 0 ; | |
11968 | int res1 = 0 ; | |
11969 | PyObject *swig_obj[1] ; | |
11970 | ||
11971 | if (!args) SWIG_fail; | |
11972 | swig_obj[0] = args; | |
11973 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11974 | if (!SWIG_IsOK(res1)) { | |
11975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11976 | } | |
11977 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11978 | { | |
11979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11980 | result = (int)(arg1)->GetW(); | |
11981 | wxPyEndAllowThreads(__tstate); | |
11982 | if (PyErr_Occurred()) SWIG_fail; | |
11983 | } | |
11984 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11985 | return resultobj; | |
11986 | fail: | |
11987 | return NULL; | |
d14a1e28 RD |
11988 | } |
11989 | ||
11990 | ||
0085ce49 RD |
11991 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11992 | PyObject *resultobj = 0; | |
11993 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11994 | int result; | |
11995 | void *argp1 = 0 ; | |
11996 | int res1 = 0 ; | |
11997 | PyObject *swig_obj[1] ; | |
11998 | ||
11999 | if (!args) SWIG_fail; | |
12000 | swig_obj[0] = args; | |
12001 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12002 | if (!SWIG_IsOK(res1)) { | |
12003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12004 | } | |
12005 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12006 | { | |
12007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12008 | result = (int)(arg1)->GetWidth(); | |
12009 | wxPyEndAllowThreads(__tstate); | |
12010 | if (PyErr_Occurred()) SWIG_fail; | |
12011 | } | |
12012 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12013 | return resultobj; | |
12014 | fail: | |
12015 | return NULL; | |
093d3ff1 RD |
12016 | } |
12017 | ||
12018 | ||
0085ce49 RD |
12019 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12020 | PyObject *resultobj = 0; | |
12021 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12022 | int result; | |
12023 | void *argp1 = 0 ; | |
12024 | int res1 = 0 ; | |
12025 | PyObject *swig_obj[1] ; | |
12026 | ||
12027 | if (!args) SWIG_fail; | |
12028 | swig_obj[0] = args; | |
12029 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12030 | if (!SWIG_IsOK(res1)) { | |
12031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12032 | } | |
12033 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12034 | { | |
12035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12036 | result = (int)(arg1)->GetH(); | |
12037 | wxPyEndAllowThreads(__tstate); | |
12038 | if (PyErr_Occurred()) SWIG_fail; | |
12039 | } | |
12040 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12041 | return resultobj; | |
12042 | fail: | |
12043 | return NULL; | |
d14a1e28 RD |
12044 | } |
12045 | ||
12046 | ||
0085ce49 RD |
12047 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12048 | PyObject *resultobj = 0; | |
12049 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12050 | int result; | |
12051 | void *argp1 = 0 ; | |
12052 | int res1 = 0 ; | |
12053 | PyObject *swig_obj[1] ; | |
12054 | ||
12055 | if (!args) SWIG_fail; | |
12056 | swig_obj[0] = args; | |
12057 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12058 | if (!SWIG_IsOK(res1)) { | |
12059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12060 | } | |
12061 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12062 | { | |
12063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12064 | result = (int)(arg1)->GetHeight(); | |
12065 | wxPyEndAllowThreads(__tstate); | |
12066 | if (PyErr_Occurred()) SWIG_fail; | |
12067 | } | |
12068 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12069 | return resultobj; | |
12070 | fail: | |
12071 | return NULL; | |
093d3ff1 RD |
12072 | } |
12073 | ||
12074 | ||
0085ce49 RD |
12075 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12076 | PyObject *resultobj = 0; | |
12077 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12078 | wxRect result; | |
12079 | void *argp1 = 0 ; | |
12080 | int res1 = 0 ; | |
12081 | PyObject *swig_obj[1] ; | |
12082 | ||
12083 | if (!args) SWIG_fail; | |
12084 | swig_obj[0] = args; | |
12085 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12086 | if (!SWIG_IsOK(res1)) { | |
12087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12088 | } | |
12089 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12090 | { | |
12091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12092 | result = (arg1)->GetRect(); | |
12093 | wxPyEndAllowThreads(__tstate); | |
12094 | if (PyErr_Occurred()) SWIG_fail; | |
12095 | } | |
12096 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
12097 | return resultobj; | |
12098 | fail: | |
12099 | return NULL; | |
d14a1e28 RD |
12100 | } |
12101 | ||
12102 | ||
0085ce49 RD |
12103 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12104 | PyObject *resultobj = 0; | |
12105 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12106 | bool result; | |
12107 | void *argp1 = 0 ; | |
12108 | int res1 = 0 ; | |
12109 | PyObject *swig_obj[1] ; | |
12110 | ||
12111 | if (!args) SWIG_fail; | |
12112 | swig_obj[0] = args; | |
12113 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12114 | if (!SWIG_IsOK(res1)) { | |
12115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12116 | } | |
12117 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12118 | { | |
12119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12120 | result = (bool)(arg1)->HaveRects(); | |
12121 | wxPyEndAllowThreads(__tstate); | |
12122 | if (PyErr_Occurred()) SWIG_fail; | |
12123 | } | |
12124 | { | |
12125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12126 | } | |
12127 | return resultobj; | |
12128 | fail: | |
12129 | return NULL; | |
093d3ff1 RD |
12130 | } |
12131 | ||
12132 | ||
0085ce49 RD |
12133 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12134 | PyObject *resultobj = 0; | |
12135 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12136 | void *argp1 = 0 ; | |
12137 | int res1 = 0 ; | |
12138 | PyObject *swig_obj[1] ; | |
12139 | ||
12140 | if (!args) SWIG_fail; | |
12141 | swig_obj[0] = args; | |
12142 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12143 | if (!SWIG_IsOK(res1)) { | |
12144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12145 | } | |
12146 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12147 | { | |
12148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12149 | (arg1)->Reset(); | |
12150 | wxPyEndAllowThreads(__tstate); | |
12151 | if (PyErr_Occurred()) SWIG_fail; | |
12152 | } | |
12153 | resultobj = SWIG_Py_Void(); | |
12154 | return resultobj; | |
12155 | fail: | |
12156 | return NULL; | |
d14a1e28 RD |
12157 | } |
12158 | ||
12159 | ||
0085ce49 RD |
12160 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12161 | PyObject *resultobj = 0; | |
12162 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12163 | void *argp1 = 0 ; | |
12164 | int res1 = 0 ; | |
12165 | PyObject *swig_obj[1] ; | |
12166 | ||
12167 | if (!args) SWIG_fail; | |
12168 | swig_obj[0] = args; | |
12169 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12170 | if (!SWIG_IsOK(res1)) { | |
12171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12172 | } | |
12173 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12174 | { | |
12175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12176 | wxRegionIterator_Next(arg1); | |
12177 | wxPyEndAllowThreads(__tstate); | |
12178 | if (PyErr_Occurred()) SWIG_fail; | |
12179 | } | |
12180 | resultobj = SWIG_Py_Void(); | |
12181 | return resultobj; | |
12182 | fail: | |
12183 | return NULL; | |
d14a1e28 RD |
12184 | } |
12185 | ||
12186 | ||
0085ce49 RD |
12187 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12188 | PyObject *resultobj = 0; | |
12189 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12190 | bool result; | |
12191 | void *argp1 = 0 ; | |
12192 | int res1 = 0 ; | |
12193 | PyObject *swig_obj[1] ; | |
12194 | ||
12195 | if (!args) SWIG_fail; | |
12196 | swig_obj[0] = args; | |
12197 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12198 | if (!SWIG_IsOK(res1)) { | |
12199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12200 | } | |
12201 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12202 | { | |
12203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12204 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
12205 | wxPyEndAllowThreads(__tstate); | |
12206 | if (PyErr_Occurred()) SWIG_fail; | |
12207 | } | |
12208 | { | |
12209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12210 | } | |
12211 | return resultobj; | |
12212 | fail: | |
12213 | return NULL; | |
d14a1e28 RD |
12214 | } |
12215 | ||
12216 | ||
0085ce49 RD |
12217 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12218 | PyObject *obj; | |
12219 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12220 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
12221 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12222 | } |
12223 | ||
0085ce49 RD |
12224 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12225 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12226 | } |
12227 | ||
0085ce49 RD |
12228 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12229 | PyObject *resultobj = 0; | |
12230 | wxNativeFontInfo *result = 0 ; | |
12231 | ||
12232 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
12233 | { | |
12234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12235 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
12236 | wxPyEndAllowThreads(__tstate); | |
12237 | if (PyErr_Occurred()) SWIG_fail; | |
12238 | } | |
12239 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
12240 | return resultobj; | |
12241 | fail: | |
12242 | return NULL; | |
d14a1e28 RD |
12243 | } |
12244 | ||
12245 | ||
0085ce49 RD |
12246 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12247 | PyObject *resultobj = 0; | |
12248 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12249 | void *argp1 = 0 ; | |
12250 | int res1 = 0 ; | |
12251 | PyObject *swig_obj[1] ; | |
12252 | ||
12253 | if (!args) SWIG_fail; | |
12254 | swig_obj[0] = args; | |
12255 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
12256 | if (!SWIG_IsOK(res1)) { | |
12257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12258 | } | |
12259 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12260 | { | |
12261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12262 | delete arg1; | |
d14a1e28 | 12263 | |
0085ce49 RD |
12264 | wxPyEndAllowThreads(__tstate); |
12265 | if (PyErr_Occurred()) SWIG_fail; | |
12266 | } | |
12267 | resultobj = SWIG_Py_Void(); | |
12268 | return resultobj; | |
12269 | fail: | |
12270 | return NULL; | |
d14a1e28 RD |
12271 | } |
12272 | ||
12273 | ||
0085ce49 RD |
12274 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12275 | PyObject *resultobj = 0; | |
12276 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12277 | void *argp1 = 0 ; | |
12278 | int res1 = 0 ; | |
12279 | PyObject *swig_obj[1] ; | |
12280 | ||
12281 | if (!args) SWIG_fail; | |
12282 | swig_obj[0] = args; | |
12283 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12284 | if (!SWIG_IsOK(res1)) { | |
12285 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12286 | } | |
12287 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12288 | { | |
12289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12290 | (arg1)->Init(); | |
12291 | wxPyEndAllowThreads(__tstate); | |
12292 | if (PyErr_Occurred()) SWIG_fail; | |
12293 | } | |
12294 | resultobj = SWIG_Py_Void(); | |
12295 | return resultobj; | |
12296 | fail: | |
12297 | return NULL; | |
12298 | } | |
12299 | ||
12300 | ||
12301 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12302 | PyObject *resultobj = 0; | |
12303 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12304 | wxFont *arg2 = 0 ; | |
12305 | void *argp1 = 0 ; | |
12306 | int res1 = 0 ; | |
12307 | void *argp2 = 0 ; | |
12308 | int res2 = 0 ; | |
12309 | PyObject * obj0 = 0 ; | |
12310 | PyObject * obj1 = 0 ; | |
12311 | char * kwnames[] = { | |
12312 | (char *) "self",(char *) "font", NULL | |
12313 | }; | |
12314 | ||
12315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
12316 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12317 | if (!SWIG_IsOK(res1)) { | |
12318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12319 | } | |
12320 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12321 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
12322 | if (!SWIG_IsOK(res2)) { | |
12323 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12324 | } | |
12325 | if (!argp2) { | |
12326 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12327 | } | |
12328 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12329 | { | |
12330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12331 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
12332 | wxPyEndAllowThreads(__tstate); | |
12333 | if (PyErr_Occurred()) SWIG_fail; | |
12334 | } | |
12335 | resultobj = SWIG_Py_Void(); | |
12336 | return resultobj; | |
12337 | fail: | |
12338 | return NULL; | |
e6ffcedd RD |
12339 | } |
12340 | ||
12341 | ||
0085ce49 RD |
12342 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12343 | PyObject *resultobj = 0; | |
12344 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12345 | int result; | |
12346 | void *argp1 = 0 ; | |
12347 | int res1 = 0 ; | |
12348 | PyObject *swig_obj[1] ; | |
12349 | ||
12350 | if (!args) SWIG_fail; | |
12351 | swig_obj[0] = args; | |
12352 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12353 | if (!SWIG_IsOK(res1)) { | |
12354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12355 | } | |
12356 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12357 | { | |
12358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12359 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
12360 | wxPyEndAllowThreads(__tstate); | |
12361 | if (PyErr_Occurred()) SWIG_fail; | |
12362 | } | |
12363 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12364 | return resultobj; | |
12365 | fail: | |
12366 | return NULL; | |
d14a1e28 RD |
12367 | } |
12368 | ||
12369 | ||
0085ce49 RD |
12370 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12371 | PyObject *resultobj = 0; | |
12372 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12373 | wxFontStyle result; | |
12374 | void *argp1 = 0 ; | |
12375 | int res1 = 0 ; | |
12376 | PyObject *swig_obj[1] ; | |
12377 | ||
12378 | if (!args) SWIG_fail; | |
12379 | swig_obj[0] = args; | |
12380 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12381 | if (!SWIG_IsOK(res1)) { | |
12382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12383 | } | |
12384 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12385 | { | |
12386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12387 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
12388 | wxPyEndAllowThreads(__tstate); | |
12389 | if (PyErr_Occurred()) SWIG_fail; | |
12390 | } | |
12391 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12392 | return resultobj; | |
12393 | fail: | |
12394 | return NULL; | |
d14a1e28 RD |
12395 | } |
12396 | ||
12397 | ||
0085ce49 RD |
12398 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12399 | PyObject *resultobj = 0; | |
12400 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12401 | wxFontWeight result; | |
12402 | void *argp1 = 0 ; | |
12403 | int res1 = 0 ; | |
12404 | PyObject *swig_obj[1] ; | |
12405 | ||
12406 | if (!args) SWIG_fail; | |
12407 | swig_obj[0] = args; | |
12408 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12409 | if (!SWIG_IsOK(res1)) { | |
12410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12411 | } | |
12412 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12413 | { | |
12414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12415 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
12416 | wxPyEndAllowThreads(__tstate); | |
12417 | if (PyErr_Occurred()) SWIG_fail; | |
12418 | } | |
12419 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12420 | return resultobj; | |
12421 | fail: | |
12422 | return NULL; | |
d14a1e28 RD |
12423 | } |
12424 | ||
12425 | ||
0085ce49 RD |
12426 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12427 | PyObject *resultobj = 0; | |
12428 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12429 | bool result; | |
12430 | void *argp1 = 0 ; | |
12431 | int res1 = 0 ; | |
12432 | PyObject *swig_obj[1] ; | |
12433 | ||
12434 | if (!args) SWIG_fail; | |
12435 | swig_obj[0] = args; | |
12436 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12437 | if (!SWIG_IsOK(res1)) { | |
12438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12439 | } | |
12440 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12441 | { | |
12442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12443 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
12444 | wxPyEndAllowThreads(__tstate); | |
12445 | if (PyErr_Occurred()) SWIG_fail; | |
12446 | } | |
12447 | { | |
12448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12449 | } | |
12450 | return resultobj; | |
12451 | fail: | |
12452 | return NULL; | |
d14a1e28 RD |
12453 | } |
12454 | ||
12455 | ||
0085ce49 RD |
12456 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12457 | PyObject *resultobj = 0; | |
12458 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12459 | wxString result; | |
12460 | void *argp1 = 0 ; | |
12461 | int res1 = 0 ; | |
12462 | PyObject *swig_obj[1] ; | |
12463 | ||
12464 | if (!args) SWIG_fail; | |
12465 | swig_obj[0] = args; | |
12466 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12467 | if (!SWIG_IsOK(res1)) { | |
12468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12469 | } | |
12470 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12471 | { | |
12472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12473 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
12474 | wxPyEndAllowThreads(__tstate); | |
12475 | if (PyErr_Occurred()) SWIG_fail; | |
12476 | } | |
12477 | { | |
12478 | #if wxUSE_UNICODE | |
12479 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12480 | #else | |
12481 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12482 | #endif | |
12483 | } | |
12484 | return resultobj; | |
12485 | fail: | |
12486 | return NULL; | |
d14a1e28 RD |
12487 | } |
12488 | ||
12489 | ||
0085ce49 RD |
12490 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12491 | PyObject *resultobj = 0; | |
12492 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12493 | wxFontFamily result; | |
12494 | void *argp1 = 0 ; | |
12495 | int res1 = 0 ; | |
12496 | PyObject *swig_obj[1] ; | |
12497 | ||
12498 | if (!args) SWIG_fail; | |
12499 | swig_obj[0] = args; | |
12500 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12501 | if (!SWIG_IsOK(res1)) { | |
12502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12503 | } | |
12504 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12505 | { | |
12506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12507 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
12508 | wxPyEndAllowThreads(__tstate); | |
12509 | if (PyErr_Occurred()) SWIG_fail; | |
12510 | } | |
12511 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12512 | return resultobj; | |
12513 | fail: | |
12514 | return NULL; | |
d14a1e28 RD |
12515 | } |
12516 | ||
12517 | ||
0085ce49 RD |
12518 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12519 | PyObject *resultobj = 0; | |
12520 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12521 | wxFontEncoding result; | |
12522 | void *argp1 = 0 ; | |
12523 | int res1 = 0 ; | |
12524 | PyObject *swig_obj[1] ; | |
12525 | ||
12526 | if (!args) SWIG_fail; | |
12527 | swig_obj[0] = args; | |
12528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12529 | if (!SWIG_IsOK(res1)) { | |
12530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12531 | } | |
12532 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12533 | { | |
12534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12535 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
12536 | wxPyEndAllowThreads(__tstate); | |
12537 | if (PyErr_Occurred()) SWIG_fail; | |
12538 | } | |
12539 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12540 | return resultobj; | |
12541 | fail: | |
12542 | return NULL; | |
12543 | } | |
12544 | ||
12545 | ||
12546 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12547 | PyObject *resultobj = 0; | |
12548 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12549 | int arg2 ; | |
12550 | void *argp1 = 0 ; | |
12551 | int res1 = 0 ; | |
12552 | int val2 ; | |
12553 | int ecode2 = 0 ; | |
12554 | PyObject * obj0 = 0 ; | |
12555 | PyObject * obj1 = 0 ; | |
12556 | char * kwnames[] = { | |
12557 | (char *) "self",(char *) "pointsize", NULL | |
12558 | }; | |
12559 | ||
12560 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12562 | if (!SWIG_IsOK(res1)) { | |
12563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12564 | } | |
12565 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12566 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12567 | if (!SWIG_IsOK(ecode2)) { | |
12568 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
12569 | } | |
12570 | arg2 = static_cast< int >(val2); | |
12571 | { | |
12572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12573 | (arg1)->SetPointSize(arg2); | |
12574 | wxPyEndAllowThreads(__tstate); | |
12575 | if (PyErr_Occurred()) SWIG_fail; | |
12576 | } | |
12577 | resultobj = SWIG_Py_Void(); | |
12578 | return resultobj; | |
12579 | fail: | |
12580 | return NULL; | |
12581 | } | |
12582 | ||
12583 | ||
12584 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12585 | PyObject *resultobj = 0; | |
12586 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12587 | wxFontStyle arg2 ; | |
12588 | void *argp1 = 0 ; | |
12589 | int res1 = 0 ; | |
12590 | int val2 ; | |
12591 | int ecode2 = 0 ; | |
12592 | PyObject * obj0 = 0 ; | |
12593 | PyObject * obj1 = 0 ; | |
12594 | char * kwnames[] = { | |
12595 | (char *) "self",(char *) "style", NULL | |
12596 | }; | |
12597 | ||
12598 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
12599 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12600 | if (!SWIG_IsOK(res1)) { | |
12601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12602 | } | |
12603 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12604 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12605 | if (!SWIG_IsOK(ecode2)) { | |
12606 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
12607 | } | |
12608 | arg2 = static_cast< wxFontStyle >(val2); | |
12609 | { | |
12610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12611 | (arg1)->SetStyle(arg2); | |
12612 | wxPyEndAllowThreads(__tstate); | |
12613 | if (PyErr_Occurred()) SWIG_fail; | |
12614 | } | |
12615 | resultobj = SWIG_Py_Void(); | |
12616 | return resultobj; | |
12617 | fail: | |
12618 | return NULL; | |
12619 | } | |
12620 | ||
12621 | ||
12622 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12623 | PyObject *resultobj = 0; | |
12624 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12625 | wxFontWeight arg2 ; | |
12626 | void *argp1 = 0 ; | |
12627 | int res1 = 0 ; | |
12628 | int val2 ; | |
12629 | int ecode2 = 0 ; | |
12630 | PyObject * obj0 = 0 ; | |
12631 | PyObject * obj1 = 0 ; | |
12632 | char * kwnames[] = { | |
12633 | (char *) "self",(char *) "weight", NULL | |
12634 | }; | |
12635 | ||
12636 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
12637 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12638 | if (!SWIG_IsOK(res1)) { | |
12639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12640 | } | |
12641 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12642 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12643 | if (!SWIG_IsOK(ecode2)) { | |
12644 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
12645 | } | |
12646 | arg2 = static_cast< wxFontWeight >(val2); | |
12647 | { | |
12648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12649 | (arg1)->SetWeight(arg2); | |
12650 | wxPyEndAllowThreads(__tstate); | |
12651 | if (PyErr_Occurred()) SWIG_fail; | |
12652 | } | |
12653 | resultobj = SWIG_Py_Void(); | |
12654 | return resultobj; | |
12655 | fail: | |
12656 | return NULL; | |
12657 | } | |
12658 | ||
12659 | ||
12660 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12661 | PyObject *resultobj = 0; | |
12662 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12663 | bool arg2 ; | |
12664 | void *argp1 = 0 ; | |
12665 | int res1 = 0 ; | |
12666 | bool val2 ; | |
12667 | int ecode2 = 0 ; | |
12668 | PyObject * obj0 = 0 ; | |
12669 | PyObject * obj1 = 0 ; | |
12670 | char * kwnames[] = { | |
12671 | (char *) "self",(char *) "underlined", NULL | |
12672 | }; | |
12673 | ||
12674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
12675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12676 | if (!SWIG_IsOK(res1)) { | |
12677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12678 | } | |
12679 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12680 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12681 | if (!SWIG_IsOK(ecode2)) { | |
12682 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
12683 | } | |
12684 | arg2 = static_cast< bool >(val2); | |
12685 | { | |
12686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12687 | (arg1)->SetUnderlined(arg2); | |
12688 | wxPyEndAllowThreads(__tstate); | |
12689 | if (PyErr_Occurred()) SWIG_fail; | |
12690 | } | |
12691 | resultobj = SWIG_Py_Void(); | |
12692 | return resultobj; | |
12693 | fail: | |
12694 | return NULL; | |
12695 | } | |
12696 | ||
12697 | ||
12698 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12699 | PyObject *resultobj = 0; | |
12700 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12701 | wxString arg2 ; | |
704eda0c | 12702 | bool result; |
0085ce49 RD |
12703 | void *argp1 = 0 ; |
12704 | int res1 = 0 ; | |
12705 | PyObject * obj0 = 0 ; | |
12706 | PyObject * obj1 = 0 ; | |
12707 | char * kwnames[] = { | |
12708 | (char *) "self",(char *) "facename", NULL | |
12709 | }; | |
12710 | ||
12711 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
12712 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12713 | if (!SWIG_IsOK(res1)) { | |
12714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12715 | } | |
12716 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12717 | { | |
12718 | wxString* sptr = wxString_in_helper(obj1); | |
12719 | if (sptr == NULL) SWIG_fail; | |
12720 | arg2 = *sptr; | |
12721 | delete sptr; | |
12722 | } | |
12723 | { | |
12724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12725 | result = (bool)(arg1)->SetFaceName(arg2); |
0085ce49 RD |
12726 | wxPyEndAllowThreads(__tstate); |
12727 | if (PyErr_Occurred()) SWIG_fail; | |
12728 | } | |
704eda0c RD |
12729 | { |
12730 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12731 | } | |
0085ce49 RD |
12732 | return resultobj; |
12733 | fail: | |
12734 | return NULL; | |
12735 | } | |
12736 | ||
12737 | ||
12738 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12739 | PyObject *resultobj = 0; | |
12740 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12741 | wxFontFamily arg2 ; | |
12742 | void *argp1 = 0 ; | |
12743 | int res1 = 0 ; | |
12744 | int val2 ; | |
12745 | int ecode2 = 0 ; | |
12746 | PyObject * obj0 = 0 ; | |
12747 | PyObject * obj1 = 0 ; | |
12748 | char * kwnames[] = { | |
12749 | (char *) "self",(char *) "family", NULL | |
12750 | }; | |
12751 | ||
12752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
12753 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12754 | if (!SWIG_IsOK(res1)) { | |
12755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12756 | } | |
12757 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12758 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12759 | if (!SWIG_IsOK(ecode2)) { | |
12760 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
12761 | } | |
12762 | arg2 = static_cast< wxFontFamily >(val2); | |
12763 | { | |
12764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12765 | (arg1)->SetFamily(arg2); | |
12766 | wxPyEndAllowThreads(__tstate); | |
12767 | if (PyErr_Occurred()) SWIG_fail; | |
12768 | } | |
12769 | resultobj = SWIG_Py_Void(); | |
12770 | return resultobj; | |
12771 | fail: | |
12772 | return NULL; | |
12773 | } | |
12774 | ||
12775 | ||
12776 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12777 | PyObject *resultobj = 0; | |
12778 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12779 | wxFontEncoding arg2 ; | |
12780 | void *argp1 = 0 ; | |
12781 | int res1 = 0 ; | |
12782 | int val2 ; | |
12783 | int ecode2 = 0 ; | |
12784 | PyObject * obj0 = 0 ; | |
12785 | PyObject * obj1 = 0 ; | |
12786 | char * kwnames[] = { | |
12787 | (char *) "self",(char *) "encoding", NULL | |
12788 | }; | |
12789 | ||
12790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
12791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12792 | if (!SWIG_IsOK(res1)) { | |
12793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12794 | } | |
12795 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12796 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12797 | if (!SWIG_IsOK(ecode2)) { | |
12798 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12799 | } | |
12800 | arg2 = static_cast< wxFontEncoding >(val2); | |
12801 | { | |
12802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12803 | (arg1)->SetEncoding(arg2); | |
12804 | wxPyEndAllowThreads(__tstate); | |
12805 | if (PyErr_Occurred()) SWIG_fail; | |
12806 | } | |
12807 | resultobj = SWIG_Py_Void(); | |
12808 | return resultobj; | |
12809 | fail: | |
12810 | return NULL; | |
12811 | } | |
12812 | ||
12813 | ||
12814 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12815 | PyObject *resultobj = 0; | |
12816 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12817 | wxString *arg2 = 0 ; | |
12818 | bool result; | |
12819 | void *argp1 = 0 ; | |
12820 | int res1 = 0 ; | |
12821 | bool temp2 = false ; | |
12822 | PyObject * obj0 = 0 ; | |
12823 | PyObject * obj1 = 0 ; | |
12824 | char * kwnames[] = { | |
12825 | (char *) "self",(char *) "s", NULL | |
12826 | }; | |
12827 | ||
12828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12830 | if (!SWIG_IsOK(res1)) { | |
12831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12832 | } | |
12833 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12834 | { | |
12835 | arg2 = wxString_in_helper(obj1); | |
12836 | if (arg2 == NULL) SWIG_fail; | |
12837 | temp2 = true; | |
12838 | } | |
12839 | { | |
12840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12841 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
12842 | wxPyEndAllowThreads(__tstate); | |
12843 | if (PyErr_Occurred()) SWIG_fail; | |
12844 | } | |
12845 | { | |
12846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12847 | } | |
12848 | { | |
12849 | if (temp2) | |
12850 | delete arg2; | |
12851 | } | |
12852 | return resultobj; | |
12853 | fail: | |
12854 | { | |
12855 | if (temp2) | |
12856 | delete arg2; | |
12857 | } | |
12858 | return NULL; | |
d14a1e28 RD |
12859 | } |
12860 | ||
12861 | ||
0085ce49 RD |
12862 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12863 | PyObject *resultobj = 0; | |
12864 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12865 | wxString result; | |
12866 | void *argp1 = 0 ; | |
12867 | int res1 = 0 ; | |
12868 | PyObject *swig_obj[1] ; | |
12869 | ||
12870 | if (!args) SWIG_fail; | |
12871 | swig_obj[0] = args; | |
12872 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12873 | if (!SWIG_IsOK(res1)) { | |
12874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12875 | } | |
12876 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12877 | { | |
12878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12879 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
12880 | wxPyEndAllowThreads(__tstate); | |
12881 | if (PyErr_Occurred()) SWIG_fail; | |
12882 | } | |
12883 | { | |
12884 | #if wxUSE_UNICODE | |
12885 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12886 | #else | |
12887 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12888 | #endif | |
12889 | } | |
12890 | return resultobj; | |
12891 | fail: | |
12892 | return NULL; | |
d14a1e28 RD |
12893 | } |
12894 | ||
12895 | ||
0085ce49 RD |
12896 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12897 | PyObject *resultobj = 0; | |
12898 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12899 | wxString result; | |
12900 | void *argp1 = 0 ; | |
12901 | int res1 = 0 ; | |
12902 | PyObject *swig_obj[1] ; | |
12903 | ||
12904 | if (!args) SWIG_fail; | |
12905 | swig_obj[0] = args; | |
12906 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12907 | if (!SWIG_IsOK(res1)) { | |
12908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12909 | } | |
12910 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12911 | { | |
12912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12913 | result = wxNativeFontInfo___str__(arg1); | |
12914 | wxPyEndAllowThreads(__tstate); | |
12915 | if (PyErr_Occurred()) SWIG_fail; | |
12916 | } | |
12917 | { | |
12918 | #if wxUSE_UNICODE | |
12919 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12920 | #else | |
12921 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12922 | #endif | |
12923 | } | |
12924 | return resultobj; | |
12925 | fail: | |
12926 | return NULL; | |
12927 | } | |
12928 | ||
12929 | ||
12930 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12931 | PyObject *resultobj = 0; | |
12932 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12933 | wxString *arg2 = 0 ; | |
12934 | bool result; | |
12935 | void *argp1 = 0 ; | |
12936 | int res1 = 0 ; | |
12937 | bool temp2 = false ; | |
12938 | PyObject * obj0 = 0 ; | |
12939 | PyObject * obj1 = 0 ; | |
12940 | char * kwnames[] = { | |
12941 | (char *) "self",(char *) "s", NULL | |
12942 | }; | |
12943 | ||
12944 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12945 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12946 | if (!SWIG_IsOK(res1)) { | |
12947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12948 | } | |
12949 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12950 | { | |
12951 | arg2 = wxString_in_helper(obj1); | |
12952 | if (arg2 == NULL) SWIG_fail; | |
12953 | temp2 = true; | |
12954 | } | |
12955 | { | |
12956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12957 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
12958 | wxPyEndAllowThreads(__tstate); | |
12959 | if (PyErr_Occurred()) SWIG_fail; | |
12960 | } | |
12961 | { | |
12962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12963 | } | |
12964 | { | |
12965 | if (temp2) | |
12966 | delete arg2; | |
12967 | } | |
12968 | return resultobj; | |
12969 | fail: | |
12970 | { | |
12971 | if (temp2) | |
12972 | delete arg2; | |
12973 | } | |
12974 | return NULL; | |
d14a1e28 RD |
12975 | } |
12976 | ||
12977 | ||
0085ce49 RD |
12978 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12979 | PyObject *resultobj = 0; | |
12980 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12981 | wxString result; | |
12982 | void *argp1 = 0 ; | |
12983 | int res1 = 0 ; | |
12984 | PyObject *swig_obj[1] ; | |
12985 | ||
12986 | if (!args) SWIG_fail; | |
12987 | swig_obj[0] = args; | |
12988 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12989 | if (!SWIG_IsOK(res1)) { | |
12990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12991 | } | |
12992 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12993 | { | |
12994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12995 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
12996 | wxPyEndAllowThreads(__tstate); | |
12997 | if (PyErr_Occurred()) SWIG_fail; | |
12998 | } | |
12999 | { | |
13000 | #if wxUSE_UNICODE | |
13001 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13002 | #else | |
13003 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13004 | #endif | |
13005 | } | |
13006 | return resultobj; | |
13007 | fail: | |
13008 | return NULL; | |
d14a1e28 RD |
13009 | } |
13010 | ||
13011 | ||
0085ce49 RD |
13012 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13013 | PyObject *obj; | |
13014 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13015 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
13016 | return SWIG_Py_Void(); | |
d14a1e28 RD |
13017 | } |
13018 | ||
0085ce49 RD |
13019 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13020 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
13021 | } |
13022 | ||
0085ce49 RD |
13023 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13024 | PyObject *resultobj = 0; | |
13025 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13026 | wxString *arg2 = (wxString *) 0 ; | |
13027 | void *argp1 = 0 ; | |
13028 | int res1 = 0 ; | |
13029 | bool temp2 = false ; | |
13030 | PyObject *swig_obj[2] ; | |
13031 | ||
13032 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
13033 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13034 | if (!SWIG_IsOK(res1)) { | |
13035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13036 | } | |
13037 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13038 | { | |
13039 | arg2 = wxString_in_helper(swig_obj[1]); | |
13040 | if (arg2 == NULL) SWIG_fail; | |
13041 | temp2 = true; | |
13042 | } | |
13043 | if (arg1) (arg1)->facename = *arg2; | |
13044 | ||
13045 | resultobj = SWIG_Py_Void(); | |
13046 | { | |
13047 | if (temp2) | |
13048 | delete arg2; | |
13049 | } | |
13050 | return resultobj; | |
13051 | fail: | |
13052 | { | |
13053 | if (temp2) | |
13054 | delete arg2; | |
13055 | } | |
13056 | return NULL; | |
d14a1e28 RD |
13057 | } |
13058 | ||
13059 | ||
0085ce49 RD |
13060 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13061 | PyObject *resultobj = 0; | |
13062 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13063 | wxString *result = 0 ; | |
13064 | void *argp1 = 0 ; | |
13065 | int res1 = 0 ; | |
13066 | PyObject *swig_obj[1] ; | |
13067 | ||
13068 | if (!args) SWIG_fail; | |
13069 | swig_obj[0] = args; | |
13070 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13071 | if (!SWIG_IsOK(res1)) { | |
13072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13073 | } | |
13074 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13075 | result = (wxString *)& ((arg1)->facename); | |
13076 | { | |
13077 | #if wxUSE_UNICODE | |
13078 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13079 | #else | |
13080 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13081 | #endif | |
13082 | } | |
13083 | return resultobj; | |
13084 | fail: | |
13085 | return NULL; | |
d14a1e28 RD |
13086 | } |
13087 | ||
13088 | ||
0085ce49 RD |
13089 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13090 | PyObject *resultobj = 0; | |
13091 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13092 | wxFontEncoding arg2 ; | |
13093 | void *argp1 = 0 ; | |
13094 | int res1 = 0 ; | |
13095 | int val2 ; | |
13096 | int ecode2 = 0 ; | |
13097 | PyObject *swig_obj[2] ; | |
13098 | ||
13099 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
13100 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13101 | if (!SWIG_IsOK(res1)) { | |
13102 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13103 | } | |
13104 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13105 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
13106 | if (!SWIG_IsOK(ecode2)) { | |
13107 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13108 | } | |
13109 | arg2 = static_cast< wxFontEncoding >(val2); | |
13110 | if (arg1) (arg1)->encoding = arg2; | |
13111 | ||
13112 | resultobj = SWIG_Py_Void(); | |
13113 | return resultobj; | |
13114 | fail: | |
13115 | return NULL; | |
d14a1e28 RD |
13116 | } |
13117 | ||
13118 | ||
0085ce49 RD |
13119 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13120 | PyObject *resultobj = 0; | |
13121 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13122 | wxFontEncoding result; | |
13123 | void *argp1 = 0 ; | |
13124 | int res1 = 0 ; | |
13125 | PyObject *swig_obj[1] ; | |
13126 | ||
13127 | if (!args) SWIG_fail; | |
13128 | swig_obj[0] = args; | |
13129 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13130 | if (!SWIG_IsOK(res1)) { | |
13131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13132 | } | |
13133 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13134 | result = (wxFontEncoding) ((arg1)->encoding); | |
13135 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13136 | return resultobj; | |
13137 | fail: | |
13138 | return NULL; | |
d14a1e28 RD |
13139 | } |
13140 | ||
13141 | ||
0085ce49 RD |
13142 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13143 | PyObject *resultobj = 0; | |
13144 | wxNativeEncodingInfo *result = 0 ; | |
13145 | ||
13146 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
13147 | { | |
13148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13149 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
13150 | wxPyEndAllowThreads(__tstate); | |
13151 | if (PyErr_Occurred()) SWIG_fail; | |
13152 | } | |
13153 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
13154 | return resultobj; | |
13155 | fail: | |
13156 | return NULL; | |
d14a1e28 RD |
13157 | } |
13158 | ||
13159 | ||
0085ce49 RD |
13160 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13161 | PyObject *resultobj = 0; | |
13162 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13163 | void *argp1 = 0 ; | |
13164 | int res1 = 0 ; | |
13165 | PyObject *swig_obj[1] ; | |
13166 | ||
13167 | if (!args) SWIG_fail; | |
13168 | swig_obj[0] = args; | |
13169 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
13170 | if (!SWIG_IsOK(res1)) { | |
13171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13172 | } | |
13173 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13174 | { | |
13175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13176 | delete arg1; | |
d14a1e28 | 13177 | |
0085ce49 RD |
13178 | wxPyEndAllowThreads(__tstate); |
13179 | if (PyErr_Occurred()) SWIG_fail; | |
13180 | } | |
13181 | resultobj = SWIG_Py_Void(); | |
13182 | return resultobj; | |
13183 | fail: | |
13184 | return NULL; | |
13185 | } | |
13186 | ||
13187 | ||
13188 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13189 | PyObject *resultobj = 0; | |
13190 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13191 | wxString *arg2 = 0 ; | |
13192 | bool result; | |
13193 | void *argp1 = 0 ; | |
13194 | int res1 = 0 ; | |
13195 | bool temp2 = false ; | |
13196 | PyObject * obj0 = 0 ; | |
13197 | PyObject * obj1 = 0 ; | |
13198 | char * kwnames[] = { | |
13199 | (char *) "self",(char *) "s", NULL | |
13200 | }; | |
13201 | ||
13202 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13204 | if (!SWIG_IsOK(res1)) { | |
13205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13206 | } | |
13207 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13208 | { | |
13209 | arg2 = wxString_in_helper(obj1); | |
13210 | if (arg2 == NULL) SWIG_fail; | |
13211 | temp2 = true; | |
13212 | } | |
13213 | { | |
13214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13215 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13216 | wxPyEndAllowThreads(__tstate); | |
13217 | if (PyErr_Occurred()) SWIG_fail; | |
13218 | } | |
13219 | { | |
13220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13221 | } | |
13222 | { | |
13223 | if (temp2) | |
13224 | delete arg2; | |
13225 | } | |
13226 | return resultobj; | |
13227 | fail: | |
13228 | { | |
13229 | if (temp2) | |
13230 | delete arg2; | |
13231 | } | |
13232 | return NULL; | |
d14a1e28 RD |
13233 | } |
13234 | ||
13235 | ||
0085ce49 RD |
13236 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13237 | PyObject *resultobj = 0; | |
13238 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13239 | wxString result; | |
13240 | void *argp1 = 0 ; | |
13241 | int res1 = 0 ; | |
13242 | PyObject *swig_obj[1] ; | |
13243 | ||
13244 | if (!args) SWIG_fail; | |
13245 | swig_obj[0] = args; | |
13246 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13247 | if (!SWIG_IsOK(res1)) { | |
13248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
13249 | } | |
13250 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13251 | { | |
13252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13253 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
13254 | wxPyEndAllowThreads(__tstate); | |
13255 | if (PyErr_Occurred()) SWIG_fail; | |
13256 | } | |
13257 | { | |
13258 | #if wxUSE_UNICODE | |
13259 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13260 | #else | |
13261 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13262 | #endif | |
13263 | } | |
13264 | return resultobj; | |
13265 | fail: | |
13266 | return NULL; | |
d14a1e28 RD |
13267 | } |
13268 | ||
13269 | ||
0085ce49 RD |
13270 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13271 | PyObject *obj; | |
13272 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13273 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
13274 | return SWIG_Py_Void(); | |
d14a1e28 RD |
13275 | } |
13276 | ||
0085ce49 RD |
13277 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13278 | return SWIG_Python_InitShadowInstance(args); | |
13279 | } | |
d14a1e28 | 13280 | |
0085ce49 RD |
13281 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13282 | PyObject *resultobj = 0; | |
13283 | wxFontEncoding arg1 ; | |
13284 | wxNativeEncodingInfo *result = 0 ; | |
13285 | int val1 ; | |
13286 | int ecode1 = 0 ; | |
13287 | PyObject * obj0 = 0 ; | |
13288 | char * kwnames[] = { | |
13289 | (char *) "encoding", NULL | |
13290 | }; | |
13291 | ||
13292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13293 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13294 | if (!SWIG_IsOK(ecode1)) { | |
13295 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13296 | } | |
13297 | arg1 = static_cast< wxFontEncoding >(val1); | |
13298 | { | |
13299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13300 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
13301 | wxPyEndAllowThreads(__tstate); | |
13302 | if (PyErr_Occurred()) SWIG_fail; | |
13303 | } | |
13304 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13305 | return resultobj; | |
13306 | fail: | |
13307 | return NULL; | |
13308 | } | |
13309 | ||
13310 | ||
13311 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13312 | PyObject *resultobj = 0; | |
13313 | wxNativeEncodingInfo *arg1 = 0 ; | |
13314 | bool result; | |
13315 | void *argp1 = 0 ; | |
13316 | int res1 = 0 ; | |
13317 | PyObject * obj0 = 0 ; | |
13318 | char * kwnames[] = { | |
13319 | (char *) "info", NULL | |
13320 | }; | |
13321 | ||
13322 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13323 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
13324 | if (!SWIG_IsOK(res1)) { | |
13325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13326 | } | |
13327 | if (!argp1) { | |
13328 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13329 | } | |
13330 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13331 | { | |
13332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13333 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
13334 | wxPyEndAllowThreads(__tstate); | |
13335 | if (PyErr_Occurred()) SWIG_fail; | |
13336 | } | |
13337 | { | |
13338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13339 | } | |
13340 | return resultobj; | |
13341 | fail: | |
13342 | return NULL; | |
d14a1e28 RD |
13343 | } |
13344 | ||
13345 | ||
0085ce49 RD |
13346 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13347 | PyObject *resultobj = 0; | |
13348 | wxFontMapper *result = 0 ; | |
13349 | ||
13350 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
13351 | { | |
13352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13353 | result = (wxFontMapper *)new wxFontMapper(); | |
13354 | wxPyEndAllowThreads(__tstate); | |
13355 | if (PyErr_Occurred()) SWIG_fail; | |
13356 | } | |
13357 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
13358 | return resultobj; | |
13359 | fail: | |
13360 | return NULL; | |
d14a1e28 RD |
13361 | } |
13362 | ||
13363 | ||
0085ce49 RD |
13364 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13365 | PyObject *resultobj = 0; | |
13366 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13367 | void *argp1 = 0 ; | |
13368 | int res1 = 0 ; | |
13369 | PyObject *swig_obj[1] ; | |
13370 | ||
13371 | if (!args) SWIG_fail; | |
13372 | swig_obj[0] = args; | |
13373 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
13374 | if (!SWIG_IsOK(res1)) { | |
13375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13376 | } | |
13377 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13378 | { | |
13379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13380 | delete arg1; | |
d14a1e28 | 13381 | |
0085ce49 RD |
13382 | wxPyEndAllowThreads(__tstate); |
13383 | if (PyErr_Occurred()) SWIG_fail; | |
13384 | } | |
13385 | resultobj = SWIG_Py_Void(); | |
13386 | return resultobj; | |
13387 | fail: | |
13388 | return NULL; | |
d14a1e28 RD |
13389 | } |
13390 | ||
13391 | ||
0085ce49 RD |
13392 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13393 | PyObject *resultobj = 0; | |
13394 | wxFontMapper *result = 0 ; | |
13395 | ||
13396 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
13397 | { | |
13398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13399 | result = (wxFontMapper *)wxFontMapper::Get(); | |
13400 | wxPyEndAllowThreads(__tstate); | |
13401 | if (PyErr_Occurred()) SWIG_fail; | |
13402 | } | |
13403 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13404 | return resultobj; | |
13405 | fail: | |
13406 | return NULL; | |
13407 | } | |
13408 | ||
13409 | ||
13410 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13411 | PyObject *resultobj = 0; | |
13412 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13413 | wxFontMapper *result = 0 ; | |
13414 | void *argp1 = 0 ; | |
13415 | int res1 = 0 ; | |
13416 | PyObject * obj0 = 0 ; | |
13417 | char * kwnames[] = { | |
13418 | (char *) "mapper", NULL | |
13419 | }; | |
13420 | ||
13421 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
13422 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13423 | if (!SWIG_IsOK(res1)) { | |
13424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13425 | } | |
13426 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13427 | { | |
13428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13429 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
13430 | wxPyEndAllowThreads(__tstate); | |
13431 | if (PyErr_Occurred()) SWIG_fail; | |
13432 | } | |
13433 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13434 | return resultobj; | |
13435 | fail: | |
13436 | return NULL; | |
13437 | } | |
13438 | ||
13439 | ||
13440 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13441 | PyObject *resultobj = 0; | |
13442 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13443 | wxString *arg2 = 0 ; | |
13444 | bool arg3 = (bool) true ; | |
13445 | wxFontEncoding result; | |
13446 | void *argp1 = 0 ; | |
13447 | int res1 = 0 ; | |
13448 | bool temp2 = false ; | |
13449 | bool val3 ; | |
13450 | int ecode3 = 0 ; | |
13451 | PyObject * obj0 = 0 ; | |
13452 | PyObject * obj1 = 0 ; | |
13453 | PyObject * obj2 = 0 ; | |
13454 | char * kwnames[] = { | |
13455 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
13456 | }; | |
13457 | ||
13458 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13459 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13460 | if (!SWIG_IsOK(res1)) { | |
13461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13462 | } | |
13463 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13464 | { | |
13465 | arg2 = wxString_in_helper(obj1); | |
13466 | if (arg2 == NULL) SWIG_fail; | |
13467 | temp2 = true; | |
13468 | } | |
13469 | if (obj2) { | |
13470 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13471 | if (!SWIG_IsOK(ecode3)) { | |
13472 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
13473 | } | |
13474 | arg3 = static_cast< bool >(val3); | |
13475 | } | |
13476 | { | |
13477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13478 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
13479 | wxPyEndAllowThreads(__tstate); | |
13480 | if (PyErr_Occurred()) SWIG_fail; | |
13481 | } | |
13482 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13483 | { | |
13484 | if (temp2) | |
13485 | delete arg2; | |
13486 | } | |
13487 | return resultobj; | |
13488 | fail: | |
13489 | { | |
13490 | if (temp2) | |
13491 | delete arg2; | |
13492 | } | |
13493 | return NULL; | |
e6ffcedd RD |
13494 | } |
13495 | ||
13496 | ||
0085ce49 RD |
13497 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13498 | PyObject *resultobj = 0; | |
13499 | size_t result; | |
13500 | ||
13501 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
13502 | { | |
13503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13504 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
13505 | wxPyEndAllowThreads(__tstate); | |
13506 | if (PyErr_Occurred()) SWIG_fail; | |
13507 | } | |
13508 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13509 | return resultobj; | |
13510 | fail: | |
13511 | return NULL; | |
13512 | } | |
13513 | ||
13514 | ||
13515 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13516 | PyObject *resultobj = 0; | |
13517 | size_t arg1 ; | |
13518 | wxFontEncoding result; | |
13519 | size_t val1 ; | |
13520 | int ecode1 = 0 ; | |
13521 | PyObject * obj0 = 0 ; | |
13522 | char * kwnames[] = { | |
13523 | (char *) "n", NULL | |
13524 | }; | |
13525 | ||
13526 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
13527 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
13528 | if (!SWIG_IsOK(ecode1)) { | |
13529 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
13530 | } | |
13531 | arg1 = static_cast< size_t >(val1); | |
13532 | { | |
13533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13534 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
13535 | wxPyEndAllowThreads(__tstate); | |
13536 | if (PyErr_Occurred()) SWIG_fail; | |
13537 | } | |
13538 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13539 | return resultobj; | |
13540 | fail: | |
13541 | return NULL; | |
13542 | } | |
13543 | ||
13544 | ||
13545 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13546 | PyObject *resultobj = 0; | |
13547 | wxFontEncoding arg1 ; | |
13548 | wxString result; | |
13549 | int val1 ; | |
13550 | int ecode1 = 0 ; | |
13551 | PyObject * obj0 = 0 ; | |
13552 | char * kwnames[] = { | |
13553 | (char *) "encoding", NULL | |
13554 | }; | |
13555 | ||
13556 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
13557 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13558 | if (!SWIG_IsOK(ecode1)) { | |
13559 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13560 | } | |
13561 | arg1 = static_cast< wxFontEncoding >(val1); | |
13562 | { | |
13563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13564 | result = wxFontMapper::GetEncodingName(arg1); | |
13565 | wxPyEndAllowThreads(__tstate); | |
13566 | if (PyErr_Occurred()) SWIG_fail; | |
13567 | } | |
13568 | { | |
13569 | #if wxUSE_UNICODE | |
13570 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13571 | #else | |
13572 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13573 | #endif | |
13574 | } | |
13575 | return resultobj; | |
13576 | fail: | |
13577 | return NULL; | |
d14a1e28 RD |
13578 | } |
13579 | ||
13580 | ||
0085ce49 RD |
13581 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13582 | PyObject *resultobj = 0; | |
13583 | wxFontEncoding arg1 ; | |
13584 | wxString result; | |
13585 | int val1 ; | |
13586 | int ecode1 = 0 ; | |
13587 | PyObject * obj0 = 0 ; | |
13588 | char * kwnames[] = { | |
13589 | (char *) "encoding", NULL | |
13590 | }; | |
13591 | ||
13592 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
13593 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13594 | if (!SWIG_IsOK(ecode1)) { | |
13595 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13596 | } | |
13597 | arg1 = static_cast< wxFontEncoding >(val1); | |
13598 | { | |
13599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13600 | result = wxFontMapper::GetEncodingDescription(arg1); | |
13601 | wxPyEndAllowThreads(__tstate); | |
13602 | if (PyErr_Occurred()) SWIG_fail; | |
13603 | } | |
13604 | { | |
13605 | #if wxUSE_UNICODE | |
13606 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13607 | #else | |
13608 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13609 | #endif | |
13610 | } | |
13611 | return resultobj; | |
13612 | fail: | |
13613 | return NULL; | |
d14a1e28 RD |
13614 | } |
13615 | ||
13616 | ||
0085ce49 RD |
13617 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13618 | PyObject *resultobj = 0; | |
13619 | wxString *arg1 = 0 ; | |
13620 | wxFontEncoding result; | |
13621 | bool temp1 = false ; | |
13622 | PyObject * obj0 = 0 ; | |
13623 | char * kwnames[] = { | |
13624 | (char *) "name", NULL | |
13625 | }; | |
13626 | ||
13627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
13628 | { | |
13629 | arg1 = wxString_in_helper(obj0); | |
13630 | if (arg1 == NULL) SWIG_fail; | |
13631 | temp1 = true; | |
13632 | } | |
13633 | { | |
13634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13635 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
13636 | wxPyEndAllowThreads(__tstate); | |
13637 | if (PyErr_Occurred()) SWIG_fail; | |
13638 | } | |
13639 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13640 | { | |
13641 | if (temp1) | |
13642 | delete arg1; | |
13643 | } | |
13644 | return resultobj; | |
13645 | fail: | |
13646 | { | |
13647 | if (temp1) | |
13648 | delete arg1; | |
13649 | } | |
13650 | return NULL; | |
d14a1e28 RD |
13651 | } |
13652 | ||
13653 | ||
0085ce49 RD |
13654 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13655 | PyObject *resultobj = 0; | |
13656 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13657 | wxString *arg2 = 0 ; | |
13658 | void *argp1 = 0 ; | |
13659 | int res1 = 0 ; | |
13660 | bool temp2 = false ; | |
13661 | PyObject * obj0 = 0 ; | |
13662 | PyObject * obj1 = 0 ; | |
13663 | char * kwnames[] = { | |
13664 | (char *) "self",(char *) "prefix", NULL | |
13665 | }; | |
13666 | ||
13667 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
13668 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13669 | if (!SWIG_IsOK(res1)) { | |
13670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13671 | } | |
13672 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13673 | { | |
13674 | arg2 = wxString_in_helper(obj1); | |
13675 | if (arg2 == NULL) SWIG_fail; | |
13676 | temp2 = true; | |
13677 | } | |
13678 | { | |
13679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13680 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
13681 | wxPyEndAllowThreads(__tstate); | |
13682 | if (PyErr_Occurred()) SWIG_fail; | |
13683 | } | |
13684 | resultobj = SWIG_Py_Void(); | |
13685 | { | |
13686 | if (temp2) | |
13687 | delete arg2; | |
13688 | } | |
13689 | return resultobj; | |
13690 | fail: | |
13691 | { | |
13692 | if (temp2) | |
13693 | delete arg2; | |
13694 | } | |
13695 | return NULL; | |
d14a1e28 RD |
13696 | } |
13697 | ||
13698 | ||
0085ce49 RD |
13699 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13700 | PyObject *resultobj = 0; | |
13701 | wxString result; | |
13702 | ||
13703 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
13704 | { | |
13705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13706 | result = wxFontMapper::GetDefaultConfigPath(); | |
13707 | wxPyEndAllowThreads(__tstate); | |
13708 | if (PyErr_Occurred()) SWIG_fail; | |
13709 | } | |
13710 | { | |
13711 | #if wxUSE_UNICODE | |
13712 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13713 | #else | |
13714 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13715 | #endif | |
13716 | } | |
13717 | return resultobj; | |
13718 | fail: | |
13719 | return NULL; | |
13720 | } | |
13721 | ||
13722 | ||
13723 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13724 | PyObject *resultobj = 0; | |
13725 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13726 | wxFontEncoding arg2 ; | |
13727 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13728 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13729 | bool arg4 = (bool) true ; | |
13730 | PyObject *result = 0 ; | |
13731 | void *argp1 = 0 ; | |
13732 | int res1 = 0 ; | |
13733 | int val2 ; | |
13734 | int ecode2 = 0 ; | |
13735 | bool temp3 = false ; | |
13736 | bool val4 ; | |
13737 | int ecode4 = 0 ; | |
13738 | PyObject * obj0 = 0 ; | |
13739 | PyObject * obj1 = 0 ; | |
13740 | PyObject * obj2 = 0 ; | |
13741 | PyObject * obj3 = 0 ; | |
13742 | char * kwnames[] = { | |
13743 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
13744 | }; | |
13745 | ||
13746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13747 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13748 | if (!SWIG_IsOK(res1)) { | |
13749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13750 | } | |
13751 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13752 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13753 | if (!SWIG_IsOK(ecode2)) { | |
13754 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13755 | } | |
13756 | arg2 = static_cast< wxFontEncoding >(val2); | |
13757 | if (obj2) { | |
093d3ff1 | 13758 | { |
0085ce49 RD |
13759 | arg3 = wxString_in_helper(obj2); |
13760 | if (arg3 == NULL) SWIG_fail; | |
13761 | temp3 = true; | |
093d3ff1 | 13762 | } |
0085ce49 RD |
13763 | } |
13764 | if (obj3) { | |
13765 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
13766 | if (!SWIG_IsOK(ecode4)) { | |
13767 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
13768 | } | |
13769 | arg4 = static_cast< bool >(val4); | |
13770 | } | |
13771 | { | |
13772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13773 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
13774 | wxPyEndAllowThreads(__tstate); | |
13775 | if (PyErr_Occurred()) SWIG_fail; | |
13776 | } | |
13777 | resultobj = result; | |
13778 | { | |
13779 | if (temp3) | |
13780 | delete arg3; | |
13781 | } | |
13782 | return resultobj; | |
13783 | fail: | |
13784 | { | |
13785 | if (temp3) | |
13786 | delete arg3; | |
13787 | } | |
13788 | return NULL; | |
13789 | } | |
13790 | ||
13791 | ||
13792 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13793 | PyObject *resultobj = 0; | |
13794 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13795 | wxFontEncoding arg2 ; | |
13796 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13797 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13798 | bool result; | |
13799 | void *argp1 = 0 ; | |
13800 | int res1 = 0 ; | |
13801 | int val2 ; | |
13802 | int ecode2 = 0 ; | |
13803 | bool temp3 = false ; | |
13804 | PyObject * obj0 = 0 ; | |
13805 | PyObject * obj1 = 0 ; | |
13806 | PyObject * obj2 = 0 ; | |
13807 | char * kwnames[] = { | |
13808 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
13809 | }; | |
13810 | ||
13811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13813 | if (!SWIG_IsOK(res1)) { | |
13814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13815 | } | |
13816 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13817 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13818 | if (!SWIG_IsOK(ecode2)) { | |
13819 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13820 | } | |
13821 | arg2 = static_cast< wxFontEncoding >(val2); | |
13822 | if (obj2) { | |
d14a1e28 | 13823 | { |
0085ce49 RD |
13824 | arg3 = wxString_in_helper(obj2); |
13825 | if (arg3 == NULL) SWIG_fail; | |
13826 | temp3 = true; | |
d14a1e28 | 13827 | } |
0085ce49 RD |
13828 | } |
13829 | { | |
13830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13831 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
13832 | wxPyEndAllowThreads(__tstate); | |
13833 | if (PyErr_Occurred()) SWIG_fail; | |
13834 | } | |
13835 | { | |
13836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13837 | } | |
13838 | { | |
13839 | if (temp3) | |
13840 | delete arg3; | |
13841 | } | |
13842 | return resultobj; | |
13843 | fail: | |
13844 | { | |
13845 | if (temp3) | |
13846 | delete arg3; | |
13847 | } | |
13848 | return NULL; | |
13849 | } | |
13850 | ||
13851 | ||
13852 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13853 | PyObject *resultobj = 0; | |
13854 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13855 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13856 | void *argp1 = 0 ; | |
13857 | int res1 = 0 ; | |
13858 | void *argp2 = 0 ; | |
13859 | int res2 = 0 ; | |
13860 | PyObject * obj0 = 0 ; | |
13861 | PyObject * obj1 = 0 ; | |
13862 | char * kwnames[] = { | |
13863 | (char *) "self",(char *) "parent", NULL | |
13864 | }; | |
13865 | ||
13866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
13867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13868 | if (!SWIG_IsOK(res1)) { | |
13869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13870 | } | |
13871 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13872 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13873 | if (!SWIG_IsOK(res2)) { | |
13874 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13875 | } | |
13876 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13877 | { | |
13878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13879 | (arg1)->SetDialogParent(arg2); | |
13880 | wxPyEndAllowThreads(__tstate); | |
13881 | if (PyErr_Occurred()) SWIG_fail; | |
13882 | } | |
13883 | resultobj = SWIG_Py_Void(); | |
13884 | return resultobj; | |
13885 | fail: | |
13886 | return NULL; | |
13887 | } | |
13888 | ||
13889 | ||
13890 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13891 | PyObject *resultobj = 0; | |
13892 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13893 | wxString *arg2 = 0 ; | |
13894 | void *argp1 = 0 ; | |
13895 | int res1 = 0 ; | |
13896 | bool temp2 = false ; | |
13897 | PyObject * obj0 = 0 ; | |
13898 | PyObject * obj1 = 0 ; | |
13899 | char * kwnames[] = { | |
13900 | (char *) "self",(char *) "title", NULL | |
13901 | }; | |
13902 | ||
13903 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13904 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13905 | if (!SWIG_IsOK(res1)) { | |
13906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13907 | } | |
13908 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13909 | { | |
13910 | arg2 = wxString_in_helper(obj1); | |
13911 | if (arg2 == NULL) SWIG_fail; | |
13912 | temp2 = true; | |
13913 | } | |
13914 | { | |
13915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13916 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
13917 | wxPyEndAllowThreads(__tstate); | |
13918 | if (PyErr_Occurred()) SWIG_fail; | |
13919 | } | |
13920 | resultobj = SWIG_Py_Void(); | |
13921 | { | |
13922 | if (temp2) | |
13923 | delete arg2; | |
13924 | } | |
13925 | return resultobj; | |
13926 | fail: | |
13927 | { | |
13928 | if (temp2) | |
13929 | delete arg2; | |
13930 | } | |
13931 | return NULL; | |
13932 | } | |
13933 | ||
13934 | ||
13935 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13936 | PyObject *obj; | |
13937 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13938 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
13939 | return SWIG_Py_Void(); | |
13940 | } | |
13941 | ||
13942 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13943 | return SWIG_Python_InitShadowInstance(args); | |
13944 | } | |
13945 | ||
13946 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13947 | PyObject *resultobj = 0; | |
13948 | int arg1 ; | |
13949 | int arg2 ; | |
13950 | int arg3 ; | |
13951 | int arg4 ; | |
13952 | bool arg5 = (bool) false ; | |
13953 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
13954 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13955 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13956 | wxFont *result = 0 ; | |
13957 | int val1 ; | |
13958 | int ecode1 = 0 ; | |
13959 | int val2 ; | |
13960 | int ecode2 = 0 ; | |
13961 | int val3 ; | |
13962 | int ecode3 = 0 ; | |
13963 | int val4 ; | |
13964 | int ecode4 = 0 ; | |
13965 | bool val5 ; | |
13966 | int ecode5 = 0 ; | |
13967 | bool temp6 = false ; | |
13968 | int val7 ; | |
13969 | int ecode7 = 0 ; | |
13970 | PyObject * obj0 = 0 ; | |
13971 | PyObject * obj1 = 0 ; | |
13972 | PyObject * obj2 = 0 ; | |
13973 | PyObject * obj3 = 0 ; | |
13974 | PyObject * obj4 = 0 ; | |
13975 | PyObject * obj5 = 0 ; | |
13976 | PyObject * obj6 = 0 ; | |
13977 | char * kwnames[] = { | |
13978 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
13979 | }; | |
13980 | ||
13981 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13982 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13983 | if (!SWIG_IsOK(ecode1)) { | |
13984 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
13985 | } | |
13986 | arg1 = static_cast< int >(val1); | |
13987 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13988 | if (!SWIG_IsOK(ecode2)) { | |
13989 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
13990 | } | |
13991 | arg2 = static_cast< int >(val2); | |
13992 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13993 | if (!SWIG_IsOK(ecode3)) { | |
13994 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
13995 | } | |
13996 | arg3 = static_cast< int >(val3); | |
13997 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
13998 | if (!SWIG_IsOK(ecode4)) { | |
13999 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
14000 | } | |
14001 | arg4 = static_cast< int >(val4); | |
14002 | if (obj4) { | |
14003 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14004 | if (!SWIG_IsOK(ecode5)) { | |
14005 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
14006 | } | |
14007 | arg5 = static_cast< bool >(val5); | |
14008 | } | |
14009 | if (obj5) { | |
093d3ff1 | 14010 | { |
0085ce49 RD |
14011 | arg6 = wxString_in_helper(obj5); |
14012 | if (arg6 == NULL) SWIG_fail; | |
14013 | temp6 = true; | |
093d3ff1 | 14014 | } |
0085ce49 RD |
14015 | } |
14016 | if (obj6) { | |
14017 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14018 | if (!SWIG_IsOK(ecode7)) { | |
14019 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14020 | } | |
14021 | arg7 = static_cast< wxFontEncoding >(val7); | |
14022 | } | |
14023 | { | |
14024 | if (!wxPyCheckForApp()) SWIG_fail; | |
14025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14026 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14027 | wxPyEndAllowThreads(__tstate); | |
14028 | if (PyErr_Occurred()) SWIG_fail; | |
14029 | } | |
14030 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
14031 | { | |
14032 | if (temp6) | |
14033 | delete arg6; | |
14034 | } | |
14035 | return resultobj; | |
14036 | fail: | |
14037 | { | |
14038 | if (temp6) | |
14039 | delete arg6; | |
14040 | } | |
14041 | return NULL; | |
d14a1e28 RD |
14042 | } |
14043 | ||
14044 | ||
0085ce49 RD |
14045 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14046 | PyObject *resultobj = 0; | |
14047 | wxFont *arg1 = (wxFont *) 0 ; | |
14048 | void *argp1 = 0 ; | |
14049 | int res1 = 0 ; | |
14050 | PyObject *swig_obj[1] ; | |
14051 | ||
14052 | if (!args) SWIG_fail; | |
14053 | swig_obj[0] = args; | |
14054 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
14055 | if (!SWIG_IsOK(res1)) { | |
14056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14057 | } | |
14058 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14059 | { | |
14060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14061 | delete arg1; | |
d14a1e28 | 14062 | |
0085ce49 RD |
14063 | wxPyEndAllowThreads(__tstate); |
14064 | if (PyErr_Occurred()) SWIG_fail; | |
14065 | } | |
14066 | resultobj = SWIG_Py_Void(); | |
14067 | return resultobj; | |
14068 | fail: | |
14069 | return NULL; | |
14070 | } | |
14071 | ||
14072 | ||
14073 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14074 | PyObject *resultobj = 0; | |
14075 | wxNativeFontInfo *arg1 = 0 ; | |
14076 | wxFont *result = 0 ; | |
14077 | void *argp1 = 0 ; | |
14078 | int res1 = 0 ; | |
14079 | PyObject * obj0 = 0 ; | |
14080 | char * kwnames[] = { | |
14081 | (char *) "info", NULL | |
14082 | }; | |
14083 | ||
14084 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
14085 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
14086 | if (!SWIG_IsOK(res1)) { | |
14087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
14088 | } | |
14089 | if (!argp1) { | |
14090 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
14091 | } | |
14092 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
14093 | { | |
14094 | if (!wxPyCheckForApp()) SWIG_fail; | |
14095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14096 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
14097 | wxPyEndAllowThreads(__tstate); | |
14098 | if (PyErr_Occurred()) SWIG_fail; | |
14099 | } | |
14100 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14101 | return resultobj; | |
14102 | fail: | |
14103 | return NULL; | |
d14a1e28 RD |
14104 | } |
14105 | ||
14106 | ||
0085ce49 RD |
14107 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14108 | PyObject *resultobj = 0; | |
14109 | wxString *arg1 = 0 ; | |
14110 | wxFont *result = 0 ; | |
14111 | bool temp1 = false ; | |
14112 | PyObject * obj0 = 0 ; | |
14113 | char * kwnames[] = { | |
14114 | (char *) "info", NULL | |
14115 | }; | |
14116 | ||
14117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
14118 | { | |
14119 | arg1 = wxString_in_helper(obj0); | |
14120 | if (arg1 == NULL) SWIG_fail; | |
14121 | temp1 = true; | |
14122 | } | |
14123 | { | |
14124 | if (!wxPyCheckForApp()) SWIG_fail; | |
14125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14126 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
14127 | wxPyEndAllowThreads(__tstate); | |
14128 | if (PyErr_Occurred()) SWIG_fail; | |
14129 | } | |
14130 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14131 | { | |
14132 | if (temp1) | |
14133 | delete arg1; | |
14134 | } | |
14135 | return resultobj; | |
14136 | fail: | |
14137 | { | |
14138 | if (temp1) | |
14139 | delete arg1; | |
14140 | } | |
14141 | return NULL; | |
14142 | } | |
14143 | ||
14144 | ||
14145 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14146 | PyObject *resultobj = 0; | |
14147 | int arg1 ; | |
14148 | wxFontFamily arg2 ; | |
14149 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14150 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14151 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14152 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14153 | wxFont *result = 0 ; | |
14154 | int val1 ; | |
14155 | int ecode1 = 0 ; | |
14156 | int val2 ; | |
14157 | int ecode2 = 0 ; | |
14158 | int val3 ; | |
14159 | int ecode3 = 0 ; | |
14160 | bool temp4 = false ; | |
14161 | int val5 ; | |
14162 | int ecode5 = 0 ; | |
14163 | PyObject * obj0 = 0 ; | |
14164 | PyObject * obj1 = 0 ; | |
14165 | PyObject * obj2 = 0 ; | |
14166 | PyObject * obj3 = 0 ; | |
14167 | PyObject * obj4 = 0 ; | |
14168 | char * kwnames[] = { | |
14169 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14170 | }; | |
14171 | ||
14172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14173 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14174 | if (!SWIG_IsOK(ecode1)) { | |
14175 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
14176 | } | |
14177 | arg1 = static_cast< int >(val1); | |
14178 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14179 | if (!SWIG_IsOK(ecode2)) { | |
14180 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14181 | } | |
14182 | arg2 = static_cast< wxFontFamily >(val2); | |
14183 | if (obj2) { | |
14184 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14185 | if (!SWIG_IsOK(ecode3)) { | |
14186 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
14187 | } | |
14188 | arg3 = static_cast< int >(val3); | |
14189 | } | |
14190 | if (obj3) { | |
093d3ff1 | 14191 | { |
0085ce49 RD |
14192 | arg4 = wxString_in_helper(obj3); |
14193 | if (arg4 == NULL) SWIG_fail; | |
14194 | temp4 = true; | |
093d3ff1 | 14195 | } |
0085ce49 RD |
14196 | } |
14197 | if (obj4) { | |
14198 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14199 | if (!SWIG_IsOK(ecode5)) { | |
14200 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14201 | } | |
14202 | arg5 = static_cast< wxFontEncoding >(val5); | |
14203 | } | |
14204 | { | |
14205 | if (!wxPyCheckForApp()) SWIG_fail; | |
14206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14207 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14208 | wxPyEndAllowThreads(__tstate); | |
14209 | if (PyErr_Occurred()) SWIG_fail; | |
14210 | } | |
14211 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14212 | { | |
14213 | if (temp4) | |
14214 | delete arg4; | |
14215 | } | |
14216 | return resultobj; | |
14217 | fail: | |
14218 | { | |
14219 | if (temp4) | |
14220 | delete arg4; | |
14221 | } | |
14222 | return NULL; | |
14223 | } | |
14224 | ||
14225 | ||
14226 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14227 | PyObject *resultobj = 0; | |
14228 | wxSize *arg1 = 0 ; | |
14229 | int arg2 ; | |
14230 | int arg3 ; | |
14231 | int arg4 ; | |
14232 | bool arg5 = (bool) false ; | |
14233 | wxString const &arg6_defvalue = wxEmptyString ; | |
14234 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14235 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14236 | wxFont *result = 0 ; | |
14237 | wxSize temp1 ; | |
14238 | int val2 ; | |
14239 | int ecode2 = 0 ; | |
14240 | int val3 ; | |
14241 | int ecode3 = 0 ; | |
14242 | int val4 ; | |
14243 | int ecode4 = 0 ; | |
14244 | bool val5 ; | |
14245 | int ecode5 = 0 ; | |
14246 | bool temp6 = false ; | |
14247 | int val7 ; | |
14248 | int ecode7 = 0 ; | |
14249 | PyObject * obj0 = 0 ; | |
14250 | PyObject * obj1 = 0 ; | |
14251 | PyObject * obj2 = 0 ; | |
14252 | PyObject * obj3 = 0 ; | |
14253 | PyObject * obj4 = 0 ; | |
14254 | PyObject * obj5 = 0 ; | |
14255 | PyObject * obj6 = 0 ; | |
14256 | char * kwnames[] = { | |
14257 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
14258 | }; | |
14259 | ||
14260 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14261 | { | |
14262 | arg1 = &temp1; | |
14263 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14264 | } | |
14265 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14266 | if (!SWIG_IsOK(ecode2)) { | |
14267 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
14268 | } | |
14269 | arg2 = static_cast< int >(val2); | |
14270 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14271 | if (!SWIG_IsOK(ecode3)) { | |
14272 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14273 | } | |
14274 | arg3 = static_cast< int >(val3); | |
14275 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14276 | if (!SWIG_IsOK(ecode4)) { | |
14277 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
14278 | } | |
14279 | arg4 = static_cast< int >(val4); | |
14280 | if (obj4) { | |
14281 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14282 | if (!SWIG_IsOK(ecode5)) { | |
14283 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
14284 | } | |
14285 | arg5 = static_cast< bool >(val5); | |
14286 | } | |
14287 | if (obj5) { | |
d14a1e28 | 14288 | { |
0085ce49 RD |
14289 | arg6 = wxString_in_helper(obj5); |
14290 | if (arg6 == NULL) SWIG_fail; | |
14291 | temp6 = true; | |
d14a1e28 | 14292 | } |
0085ce49 RD |
14293 | } |
14294 | if (obj6) { | |
14295 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14296 | if (!SWIG_IsOK(ecode7)) { | |
14297 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14298 | } | |
14299 | arg7 = static_cast< wxFontEncoding >(val7); | |
14300 | } | |
14301 | { | |
14302 | if (!wxPyCheckForApp()) SWIG_fail; | |
14303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14304 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14305 | wxPyEndAllowThreads(__tstate); | |
14306 | if (PyErr_Occurred()) SWIG_fail; | |
14307 | } | |
14308 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14309 | { | |
14310 | if (temp6) | |
14311 | delete arg6; | |
14312 | } | |
14313 | return resultobj; | |
14314 | fail: | |
14315 | { | |
14316 | if (temp6) | |
14317 | delete arg6; | |
14318 | } | |
14319 | return NULL; | |
14320 | } | |
14321 | ||
14322 | ||
14323 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14324 | PyObject *resultobj = 0; | |
14325 | wxSize *arg1 = 0 ; | |
14326 | wxFontFamily arg2 ; | |
14327 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14328 | wxString const &arg4_defvalue = wxEmptyString ; | |
14329 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14330 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14331 | wxFont *result = 0 ; | |
14332 | wxSize temp1 ; | |
14333 | int val2 ; | |
14334 | int ecode2 = 0 ; | |
14335 | int val3 ; | |
14336 | int ecode3 = 0 ; | |
14337 | bool temp4 = false ; | |
14338 | int val5 ; | |
14339 | int ecode5 = 0 ; | |
14340 | PyObject * obj0 = 0 ; | |
14341 | PyObject * obj1 = 0 ; | |
14342 | PyObject * obj2 = 0 ; | |
14343 | PyObject * obj3 = 0 ; | |
14344 | PyObject * obj4 = 0 ; | |
14345 | char * kwnames[] = { | |
14346 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14347 | }; | |
14348 | ||
14349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14350 | { | |
14351 | arg1 = &temp1; | |
14352 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14353 | } | |
14354 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14355 | if (!SWIG_IsOK(ecode2)) { | |
14356 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14357 | } | |
14358 | arg2 = static_cast< wxFontFamily >(val2); | |
14359 | if (obj2) { | |
14360 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14361 | if (!SWIG_IsOK(ecode3)) { | |
14362 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14363 | } | |
14364 | arg3 = static_cast< int >(val3); | |
14365 | } | |
14366 | if (obj3) { | |
093d3ff1 | 14367 | { |
0085ce49 RD |
14368 | arg4 = wxString_in_helper(obj3); |
14369 | if (arg4 == NULL) SWIG_fail; | |
14370 | temp4 = true; | |
093d3ff1 | 14371 | } |
0085ce49 RD |
14372 | } |
14373 | if (obj4) { | |
14374 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14375 | if (!SWIG_IsOK(ecode5)) { | |
14376 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14377 | } | |
14378 | arg5 = static_cast< wxFontEncoding >(val5); | |
14379 | } | |
14380 | { | |
14381 | if (!wxPyCheckForApp()) SWIG_fail; | |
14382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14383 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14384 | wxPyEndAllowThreads(__tstate); | |
14385 | if (PyErr_Occurred()) SWIG_fail; | |
14386 | } | |
14387 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14388 | { | |
14389 | if (temp4) | |
14390 | delete arg4; | |
14391 | } | |
14392 | return resultobj; | |
14393 | fail: | |
14394 | { | |
14395 | if (temp4) | |
14396 | delete arg4; | |
14397 | } | |
14398 | return NULL; | |
d14a1e28 RD |
14399 | } |
14400 | ||
14401 | ||
b39fe951 | 14402 | SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
14403 | PyObject *resultobj = 0; |
14404 | wxFont *arg1 = (wxFont *) 0 ; | |
14405 | bool result; | |
14406 | void *argp1 = 0 ; | |
14407 | int res1 = 0 ; | |
14408 | PyObject *swig_obj[1] ; | |
14409 | ||
14410 | if (!args) SWIG_fail; | |
14411 | swig_obj[0] = args; | |
14412 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14413 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 14414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'"); |
0085ce49 RD |
14415 | } |
14416 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14417 | { | |
14418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 14419 | result = (bool)((wxFont const *)arg1)->IsOk(); |
0085ce49 RD |
14420 | wxPyEndAllowThreads(__tstate); |
14421 | if (PyErr_Occurred()) SWIG_fail; | |
14422 | } | |
14423 | { | |
14424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14425 | } | |
14426 | return resultobj; | |
14427 | fail: | |
14428 | return NULL; | |
14429 | } | |
14430 | ||
14431 | ||
14432 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14433 | PyObject *resultobj = 0; | |
14434 | wxFont *arg1 = (wxFont *) 0 ; | |
14435 | wxFont *arg2 = (wxFont *) 0 ; | |
14436 | bool result; | |
14437 | void *argp1 = 0 ; | |
14438 | int res1 = 0 ; | |
14439 | void *argp2 = 0 ; | |
14440 | int res2 = 0 ; | |
14441 | PyObject * obj0 = 0 ; | |
14442 | PyObject * obj1 = 0 ; | |
14443 | char * kwnames[] = { | |
14444 | (char *) "self",(char *) "other", NULL | |
14445 | }; | |
14446 | ||
14447 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14448 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14449 | if (!SWIG_IsOK(res1)) { | |
14450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14451 | } | |
14452 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14453 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14454 | if (!SWIG_IsOK(res2)) { | |
14455 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14456 | } | |
14457 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14458 | { | |
14459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14460 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
14461 | wxPyEndAllowThreads(__tstate); | |
14462 | if (PyErr_Occurred()) SWIG_fail; | |
14463 | } | |
14464 | { | |
14465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14466 | } | |
14467 | return resultobj; | |
14468 | fail: | |
14469 | return NULL; | |
14470 | } | |
14471 | ||
14472 | ||
14473 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14474 | PyObject *resultobj = 0; | |
14475 | wxFont *arg1 = (wxFont *) 0 ; | |
14476 | wxFont *arg2 = (wxFont *) 0 ; | |
14477 | bool result; | |
14478 | void *argp1 = 0 ; | |
14479 | int res1 = 0 ; | |
14480 | void *argp2 = 0 ; | |
14481 | int res2 = 0 ; | |
14482 | PyObject * obj0 = 0 ; | |
14483 | PyObject * obj1 = 0 ; | |
14484 | char * kwnames[] = { | |
14485 | (char *) "self",(char *) "other", NULL | |
14486 | }; | |
14487 | ||
14488 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14490 | if (!SWIG_IsOK(res1)) { | |
14491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14492 | } | |
14493 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14494 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14495 | if (!SWIG_IsOK(res2)) { | |
14496 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14497 | } | |
14498 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14499 | { | |
14500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14501 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
14502 | wxPyEndAllowThreads(__tstate); | |
14503 | if (PyErr_Occurred()) SWIG_fail; | |
14504 | } | |
14505 | { | |
14506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14507 | } | |
14508 | return resultobj; | |
14509 | fail: | |
14510 | return NULL; | |
d14a1e28 RD |
14511 | } |
14512 | ||
14513 | ||
0085ce49 RD |
14514 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14515 | PyObject *resultobj = 0; | |
14516 | wxFont *arg1 = (wxFont *) 0 ; | |
14517 | int result; | |
14518 | void *argp1 = 0 ; | |
14519 | int res1 = 0 ; | |
14520 | PyObject *swig_obj[1] ; | |
14521 | ||
14522 | if (!args) SWIG_fail; | |
14523 | swig_obj[0] = args; | |
14524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14525 | if (!SWIG_IsOK(res1)) { | |
14526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14527 | } | |
14528 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14529 | { | |
14530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14531 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
14532 | wxPyEndAllowThreads(__tstate); | |
14533 | if (PyErr_Occurred()) SWIG_fail; | |
14534 | } | |
14535 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14536 | return resultobj; | |
14537 | fail: | |
14538 | return NULL; | |
d14a1e28 RD |
14539 | } |
14540 | ||
14541 | ||
0085ce49 RD |
14542 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14543 | PyObject *resultobj = 0; | |
14544 | wxFont *arg1 = (wxFont *) 0 ; | |
14545 | wxSize result; | |
14546 | void *argp1 = 0 ; | |
14547 | int res1 = 0 ; | |
14548 | PyObject *swig_obj[1] ; | |
14549 | ||
14550 | if (!args) SWIG_fail; | |
14551 | swig_obj[0] = args; | |
14552 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14553 | if (!SWIG_IsOK(res1)) { | |
14554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14555 | } | |
14556 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14557 | { | |
14558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14559 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
14560 | wxPyEndAllowThreads(__tstate); | |
14561 | if (PyErr_Occurred()) SWIG_fail; | |
14562 | } | |
14563 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
14564 | return resultobj; | |
14565 | fail: | |
14566 | return NULL; | |
d14a1e28 RD |
14567 | } |
14568 | ||
14569 | ||
0085ce49 RD |
14570 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14571 | PyObject *resultobj = 0; | |
14572 | wxFont *arg1 = (wxFont *) 0 ; | |
14573 | bool result; | |
14574 | void *argp1 = 0 ; | |
14575 | int res1 = 0 ; | |
14576 | PyObject *swig_obj[1] ; | |
14577 | ||
14578 | if (!args) SWIG_fail; | |
14579 | swig_obj[0] = args; | |
14580 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14581 | if (!SWIG_IsOK(res1)) { | |
14582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14583 | } | |
14584 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14585 | { | |
14586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14587 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
14588 | wxPyEndAllowThreads(__tstate); | |
14589 | if (PyErr_Occurred()) SWIG_fail; | |
14590 | } | |
14591 | { | |
14592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14593 | } | |
14594 | return resultobj; | |
14595 | fail: | |
14596 | return NULL; | |
d14a1e28 RD |
14597 | } |
14598 | ||
14599 | ||
0085ce49 RD |
14600 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14601 | PyObject *resultobj = 0; | |
14602 | wxFont *arg1 = (wxFont *) 0 ; | |
14603 | int result; | |
14604 | void *argp1 = 0 ; | |
14605 | int res1 = 0 ; | |
14606 | PyObject *swig_obj[1] ; | |
14607 | ||
14608 | if (!args) SWIG_fail; | |
14609 | swig_obj[0] = args; | |
14610 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14611 | if (!SWIG_IsOK(res1)) { | |
14612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14613 | } | |
14614 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14615 | { | |
14616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14617 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
14618 | wxPyEndAllowThreads(__tstate); | |
14619 | if (PyErr_Occurred()) SWIG_fail; | |
14620 | } | |
14621 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14622 | return resultobj; | |
14623 | fail: | |
14624 | return NULL; | |
d14a1e28 RD |
14625 | } |
14626 | ||
14627 | ||
0085ce49 RD |
14628 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14629 | PyObject *resultobj = 0; | |
14630 | wxFont *arg1 = (wxFont *) 0 ; | |
14631 | int result; | |
14632 | void *argp1 = 0 ; | |
14633 | int res1 = 0 ; | |
14634 | PyObject *swig_obj[1] ; | |
14635 | ||
14636 | if (!args) SWIG_fail; | |
14637 | swig_obj[0] = args; | |
14638 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14639 | if (!SWIG_IsOK(res1)) { | |
14640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14641 | } | |
14642 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14643 | { | |
14644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14645 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
14646 | wxPyEndAllowThreads(__tstate); | |
14647 | if (PyErr_Occurred()) SWIG_fail; | |
14648 | } | |
14649 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14650 | return resultobj; | |
14651 | fail: | |
14652 | return NULL; | |
d14a1e28 RD |
14653 | } |
14654 | ||
14655 | ||
0085ce49 RD |
14656 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14657 | PyObject *resultobj = 0; | |
14658 | wxFont *arg1 = (wxFont *) 0 ; | |
14659 | int result; | |
14660 | void *argp1 = 0 ; | |
14661 | int res1 = 0 ; | |
14662 | PyObject *swig_obj[1] ; | |
14663 | ||
14664 | if (!args) SWIG_fail; | |
14665 | swig_obj[0] = args; | |
14666 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14667 | if (!SWIG_IsOK(res1)) { | |
14668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14669 | } | |
14670 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14671 | { | |
14672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14673 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
14674 | wxPyEndAllowThreads(__tstate); | |
14675 | if (PyErr_Occurred()) SWIG_fail; | |
14676 | } | |
14677 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14678 | return resultobj; | |
14679 | fail: | |
14680 | return NULL; | |
d14a1e28 RD |
14681 | } |
14682 | ||
14683 | ||
0085ce49 RD |
14684 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14685 | PyObject *resultobj = 0; | |
14686 | wxFont *arg1 = (wxFont *) 0 ; | |
14687 | bool result; | |
14688 | void *argp1 = 0 ; | |
14689 | int res1 = 0 ; | |
14690 | PyObject *swig_obj[1] ; | |
14691 | ||
14692 | if (!args) SWIG_fail; | |
14693 | swig_obj[0] = args; | |
14694 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14695 | if (!SWIG_IsOK(res1)) { | |
14696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14697 | } | |
14698 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14699 | { | |
14700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14701 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
14702 | wxPyEndAllowThreads(__tstate); | |
14703 | if (PyErr_Occurred()) SWIG_fail; | |
14704 | } | |
14705 | { | |
14706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14707 | } | |
14708 | return resultobj; | |
14709 | fail: | |
14710 | return NULL; | |
d14a1e28 RD |
14711 | } |
14712 | ||
14713 | ||
0085ce49 RD |
14714 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14715 | PyObject *resultobj = 0; | |
14716 | wxFont *arg1 = (wxFont *) 0 ; | |
14717 | wxString result; | |
14718 | void *argp1 = 0 ; | |
14719 | int res1 = 0 ; | |
14720 | PyObject *swig_obj[1] ; | |
14721 | ||
14722 | if (!args) SWIG_fail; | |
14723 | swig_obj[0] = args; | |
14724 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14725 | if (!SWIG_IsOK(res1)) { | |
14726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14727 | } | |
14728 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14729 | { | |
14730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14731 | result = ((wxFont const *)arg1)->GetFaceName(); | |
14732 | wxPyEndAllowThreads(__tstate); | |
14733 | if (PyErr_Occurred()) SWIG_fail; | |
14734 | } | |
14735 | { | |
14736 | #if wxUSE_UNICODE | |
14737 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14738 | #else | |
14739 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14740 | #endif | |
14741 | } | |
14742 | return resultobj; | |
14743 | fail: | |
14744 | return NULL; | |
d14a1e28 RD |
14745 | } |
14746 | ||
14747 | ||
0085ce49 RD |
14748 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14749 | PyObject *resultobj = 0; | |
14750 | wxFont *arg1 = (wxFont *) 0 ; | |
14751 | wxFontEncoding result; | |
14752 | void *argp1 = 0 ; | |
14753 | int res1 = 0 ; | |
14754 | PyObject *swig_obj[1] ; | |
14755 | ||
14756 | if (!args) SWIG_fail; | |
14757 | swig_obj[0] = args; | |
14758 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14759 | if (!SWIG_IsOK(res1)) { | |
14760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14761 | } | |
14762 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14763 | { | |
14764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14765 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
14766 | wxPyEndAllowThreads(__tstate); | |
14767 | if (PyErr_Occurred()) SWIG_fail; | |
14768 | } | |
14769 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14770 | return resultobj; | |
14771 | fail: | |
14772 | return NULL; | |
d14a1e28 RD |
14773 | } |
14774 | ||
14775 | ||
0085ce49 RD |
14776 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14777 | PyObject *resultobj = 0; | |
14778 | wxFont *arg1 = (wxFont *) 0 ; | |
14779 | wxNativeFontInfo *result = 0 ; | |
14780 | void *argp1 = 0 ; | |
14781 | int res1 = 0 ; | |
14782 | PyObject *swig_obj[1] ; | |
14783 | ||
14784 | if (!args) SWIG_fail; | |
14785 | swig_obj[0] = args; | |
14786 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14787 | if (!SWIG_IsOK(res1)) { | |
14788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14789 | } | |
14790 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14791 | { | |
14792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14793 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
14794 | wxPyEndAllowThreads(__tstate); | |
14795 | if (PyErr_Occurred()) SWIG_fail; | |
14796 | } | |
14797 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
14798 | return resultobj; | |
14799 | fail: | |
14800 | return NULL; | |
d14a1e28 RD |
14801 | } |
14802 | ||
14803 | ||
0085ce49 RD |
14804 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14805 | PyObject *resultobj = 0; | |
14806 | wxFont *arg1 = (wxFont *) 0 ; | |
14807 | bool result; | |
14808 | void *argp1 = 0 ; | |
14809 | int res1 = 0 ; | |
14810 | PyObject *swig_obj[1] ; | |
14811 | ||
14812 | if (!args) SWIG_fail; | |
14813 | swig_obj[0] = args; | |
14814 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14815 | if (!SWIG_IsOK(res1)) { | |
14816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14817 | } | |
14818 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14819 | { | |
14820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14821 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
14822 | wxPyEndAllowThreads(__tstate); | |
14823 | if (PyErr_Occurred()) SWIG_fail; | |
14824 | } | |
14825 | { | |
14826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14827 | } | |
14828 | return resultobj; | |
14829 | fail: | |
14830 | return NULL; | |
d14a1e28 RD |
14831 | } |
14832 | ||
14833 | ||
0085ce49 RD |
14834 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14835 | PyObject *resultobj = 0; | |
14836 | wxFont *arg1 = (wxFont *) 0 ; | |
14837 | wxString result; | |
14838 | void *argp1 = 0 ; | |
14839 | int res1 = 0 ; | |
14840 | PyObject *swig_obj[1] ; | |
14841 | ||
14842 | if (!args) SWIG_fail; | |
14843 | swig_obj[0] = args; | |
14844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14845 | if (!SWIG_IsOK(res1)) { | |
14846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14847 | } | |
14848 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14849 | { | |
14850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14851 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
14852 | wxPyEndAllowThreads(__tstate); | |
14853 | if (PyErr_Occurred()) SWIG_fail; | |
14854 | } | |
14855 | { | |
14856 | #if wxUSE_UNICODE | |
14857 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14858 | #else | |
14859 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14860 | #endif | |
14861 | } | |
14862 | return resultobj; | |
14863 | fail: | |
14864 | return NULL; | |
d14a1e28 RD |
14865 | } |
14866 | ||
14867 | ||
0085ce49 RD |
14868 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14869 | PyObject *resultobj = 0; | |
14870 | wxFont *arg1 = (wxFont *) 0 ; | |
14871 | wxString result; | |
14872 | void *argp1 = 0 ; | |
14873 | int res1 = 0 ; | |
14874 | PyObject *swig_obj[1] ; | |
14875 | ||
14876 | if (!args) SWIG_fail; | |
14877 | swig_obj[0] = args; | |
14878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14879 | if (!SWIG_IsOK(res1)) { | |
14880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14881 | } | |
14882 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14883 | { | |
14884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14885 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
14886 | wxPyEndAllowThreads(__tstate); | |
14887 | if (PyErr_Occurred()) SWIG_fail; | |
14888 | } | |
14889 | { | |
14890 | #if wxUSE_UNICODE | |
14891 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14892 | #else | |
14893 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14894 | #endif | |
14895 | } | |
14896 | return resultobj; | |
14897 | fail: | |
14898 | return NULL; | |
14899 | } | |
14900 | ||
14901 | ||
14902 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14903 | PyObject *resultobj = 0; | |
14904 | wxFont *arg1 = (wxFont *) 0 ; | |
14905 | int arg2 ; | |
14906 | void *argp1 = 0 ; | |
14907 | int res1 = 0 ; | |
14908 | int val2 ; | |
14909 | int ecode2 = 0 ; | |
14910 | PyObject * obj0 = 0 ; | |
14911 | PyObject * obj1 = 0 ; | |
14912 | char * kwnames[] = { | |
14913 | (char *) "self",(char *) "pointSize", NULL | |
14914 | }; | |
14915 | ||
14916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14918 | if (!SWIG_IsOK(res1)) { | |
14919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14920 | } | |
14921 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14922 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14923 | if (!SWIG_IsOK(ecode2)) { | |
14924 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
14925 | } | |
14926 | arg2 = static_cast< int >(val2); | |
14927 | { | |
14928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14929 | (arg1)->SetPointSize(arg2); | |
14930 | wxPyEndAllowThreads(__tstate); | |
14931 | if (PyErr_Occurred()) SWIG_fail; | |
14932 | } | |
14933 | resultobj = SWIG_Py_Void(); | |
14934 | return resultobj; | |
14935 | fail: | |
14936 | return NULL; | |
14937 | } | |
14938 | ||
14939 | ||
14940 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14941 | PyObject *resultobj = 0; | |
14942 | wxFont *arg1 = (wxFont *) 0 ; | |
14943 | wxSize *arg2 = 0 ; | |
14944 | void *argp1 = 0 ; | |
14945 | int res1 = 0 ; | |
14946 | wxSize temp2 ; | |
14947 | PyObject * obj0 = 0 ; | |
14948 | PyObject * obj1 = 0 ; | |
14949 | char * kwnames[] = { | |
14950 | (char *) "self",(char *) "pixelSize", NULL | |
14951 | }; | |
14952 | ||
14953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14955 | if (!SWIG_IsOK(res1)) { | |
14956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14957 | } | |
14958 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14959 | { | |
14960 | arg2 = &temp2; | |
14961 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14962 | } | |
14963 | { | |
14964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14965 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
14966 | wxPyEndAllowThreads(__tstate); | |
14967 | if (PyErr_Occurred()) SWIG_fail; | |
14968 | } | |
14969 | resultobj = SWIG_Py_Void(); | |
14970 | return resultobj; | |
14971 | fail: | |
14972 | return NULL; | |
14973 | } | |
14974 | ||
14975 | ||
14976 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14977 | PyObject *resultobj = 0; | |
14978 | wxFont *arg1 = (wxFont *) 0 ; | |
14979 | int arg2 ; | |
14980 | void *argp1 = 0 ; | |
14981 | int res1 = 0 ; | |
14982 | int val2 ; | |
14983 | int ecode2 = 0 ; | |
14984 | PyObject * obj0 = 0 ; | |
14985 | PyObject * obj1 = 0 ; | |
14986 | char * kwnames[] = { | |
14987 | (char *) "self",(char *) "family", NULL | |
14988 | }; | |
14989 | ||
14990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
14991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14992 | if (!SWIG_IsOK(res1)) { | |
14993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14994 | } | |
14995 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14996 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14997 | if (!SWIG_IsOK(ecode2)) { | |
14998 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
14999 | } | |
15000 | arg2 = static_cast< int >(val2); | |
15001 | { | |
15002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15003 | (arg1)->SetFamily(arg2); | |
15004 | wxPyEndAllowThreads(__tstate); | |
15005 | if (PyErr_Occurred()) SWIG_fail; | |
15006 | } | |
15007 | resultobj = SWIG_Py_Void(); | |
15008 | return resultobj; | |
15009 | fail: | |
15010 | return NULL; | |
15011 | } | |
15012 | ||
15013 | ||
15014 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15015 | PyObject *resultobj = 0; | |
15016 | wxFont *arg1 = (wxFont *) 0 ; | |
15017 | int arg2 ; | |
15018 | void *argp1 = 0 ; | |
15019 | int res1 = 0 ; | |
15020 | int val2 ; | |
15021 | int ecode2 = 0 ; | |
15022 | PyObject * obj0 = 0 ; | |
15023 | PyObject * obj1 = 0 ; | |
15024 | char * kwnames[] = { | |
15025 | (char *) "self",(char *) "style", NULL | |
15026 | }; | |
15027 | ||
15028 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
15029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15030 | if (!SWIG_IsOK(res1)) { | |
15031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15032 | } | |
15033 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15034 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15035 | if (!SWIG_IsOK(ecode2)) { | |
15036 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
15037 | } | |
15038 | arg2 = static_cast< int >(val2); | |
15039 | { | |
15040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15041 | (arg1)->SetStyle(arg2); | |
15042 | wxPyEndAllowThreads(__tstate); | |
15043 | if (PyErr_Occurred()) SWIG_fail; | |
15044 | } | |
15045 | resultobj = SWIG_Py_Void(); | |
15046 | return resultobj; | |
15047 | fail: | |
15048 | return NULL; | |
15049 | } | |
15050 | ||
15051 | ||
15052 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15053 | PyObject *resultobj = 0; | |
15054 | wxFont *arg1 = (wxFont *) 0 ; | |
15055 | int arg2 ; | |
15056 | void *argp1 = 0 ; | |
15057 | int res1 = 0 ; | |
15058 | int val2 ; | |
15059 | int ecode2 = 0 ; | |
15060 | PyObject * obj0 = 0 ; | |
15061 | PyObject * obj1 = 0 ; | |
15062 | char * kwnames[] = { | |
15063 | (char *) "self",(char *) "weight", NULL | |
15064 | }; | |
15065 | ||
15066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
15067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15068 | if (!SWIG_IsOK(res1)) { | |
15069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15070 | } | |
15071 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15072 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15073 | if (!SWIG_IsOK(ecode2)) { | |
15074 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
15075 | } | |
15076 | arg2 = static_cast< int >(val2); | |
15077 | { | |
15078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15079 | (arg1)->SetWeight(arg2); | |
15080 | wxPyEndAllowThreads(__tstate); | |
15081 | if (PyErr_Occurred()) SWIG_fail; | |
15082 | } | |
15083 | resultobj = SWIG_Py_Void(); | |
15084 | return resultobj; | |
15085 | fail: | |
15086 | return NULL; | |
15087 | } | |
15088 | ||
15089 | ||
15090 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15091 | PyObject *resultobj = 0; | |
15092 | wxFont *arg1 = (wxFont *) 0 ; | |
15093 | wxString *arg2 = 0 ; | |
704eda0c | 15094 | bool result; |
0085ce49 RD |
15095 | void *argp1 = 0 ; |
15096 | int res1 = 0 ; | |
15097 | bool temp2 = false ; | |
15098 | PyObject * obj0 = 0 ; | |
15099 | PyObject * obj1 = 0 ; | |
15100 | char * kwnames[] = { | |
15101 | (char *) "self",(char *) "faceName", NULL | |
15102 | }; | |
15103 | ||
15104 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
15105 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15106 | if (!SWIG_IsOK(res1)) { | |
15107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15108 | } | |
15109 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15110 | { | |
15111 | arg2 = wxString_in_helper(obj1); | |
15112 | if (arg2 == NULL) SWIG_fail; | |
15113 | temp2 = true; | |
15114 | } | |
15115 | { | |
15116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15117 | result = (bool)(arg1)->SetFaceName((wxString const &)*arg2); |
0085ce49 RD |
15118 | wxPyEndAllowThreads(__tstate); |
15119 | if (PyErr_Occurred()) SWIG_fail; | |
15120 | } | |
704eda0c RD |
15121 | { |
15122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15123 | } | |
0085ce49 RD |
15124 | { |
15125 | if (temp2) | |
15126 | delete arg2; | |
15127 | } | |
15128 | return resultobj; | |
15129 | fail: | |
15130 | { | |
15131 | if (temp2) | |
15132 | delete arg2; | |
15133 | } | |
15134 | return NULL; | |
15135 | } | |
15136 | ||
15137 | ||
15138 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15139 | PyObject *resultobj = 0; | |
15140 | wxFont *arg1 = (wxFont *) 0 ; | |
15141 | bool arg2 ; | |
15142 | void *argp1 = 0 ; | |
15143 | int res1 = 0 ; | |
15144 | bool val2 ; | |
15145 | int ecode2 = 0 ; | |
15146 | PyObject * obj0 = 0 ; | |
15147 | PyObject * obj1 = 0 ; | |
15148 | char * kwnames[] = { | |
15149 | (char *) "self",(char *) "underlined", NULL | |
15150 | }; | |
15151 | ||
15152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
15153 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15154 | if (!SWIG_IsOK(res1)) { | |
15155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15156 | } | |
15157 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15158 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15159 | if (!SWIG_IsOK(ecode2)) { | |
15160 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
15161 | } | |
15162 | arg2 = static_cast< bool >(val2); | |
15163 | { | |
15164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15165 | (arg1)->SetUnderlined(arg2); | |
15166 | wxPyEndAllowThreads(__tstate); | |
15167 | if (PyErr_Occurred()) SWIG_fail; | |
15168 | } | |
15169 | resultobj = SWIG_Py_Void(); | |
15170 | return resultobj; | |
15171 | fail: | |
15172 | return NULL; | |
15173 | } | |
15174 | ||
15175 | ||
15176 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15177 | PyObject *resultobj = 0; | |
15178 | wxFont *arg1 = (wxFont *) 0 ; | |
15179 | wxFontEncoding arg2 ; | |
15180 | void *argp1 = 0 ; | |
15181 | int res1 = 0 ; | |
15182 | int val2 ; | |
15183 | int ecode2 = 0 ; | |
15184 | PyObject * obj0 = 0 ; | |
15185 | PyObject * obj1 = 0 ; | |
15186 | char * kwnames[] = { | |
15187 | (char *) "self",(char *) "encoding", NULL | |
15188 | }; | |
15189 | ||
15190 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
15191 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15192 | if (!SWIG_IsOK(res1)) { | |
15193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15194 | } | |
15195 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15196 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15197 | if (!SWIG_IsOK(ecode2)) { | |
15198 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15199 | } | |
15200 | arg2 = static_cast< wxFontEncoding >(val2); | |
15201 | { | |
15202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15203 | (arg1)->SetEncoding(arg2); | |
15204 | wxPyEndAllowThreads(__tstate); | |
15205 | if (PyErr_Occurred()) SWIG_fail; | |
15206 | } | |
15207 | resultobj = SWIG_Py_Void(); | |
15208 | return resultobj; | |
15209 | fail: | |
15210 | return NULL; | |
15211 | } | |
15212 | ||
15213 | ||
15214 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15215 | PyObject *resultobj = 0; | |
15216 | wxFont *arg1 = (wxFont *) 0 ; | |
15217 | wxNativeFontInfo *arg2 = 0 ; | |
15218 | void *argp1 = 0 ; | |
15219 | int res1 = 0 ; | |
15220 | void *argp2 = 0 ; | |
15221 | int res2 = 0 ; | |
15222 | PyObject * obj0 = 0 ; | |
15223 | PyObject * obj1 = 0 ; | |
15224 | char * kwnames[] = { | |
15225 | (char *) "self",(char *) "info", NULL | |
15226 | }; | |
15227 | ||
15228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
15229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15230 | if (!SWIG_IsOK(res1)) { | |
15231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15232 | } | |
15233 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15234 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
15235 | if (!SWIG_IsOK(res2)) { | |
15236 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15237 | } | |
15238 | if (!argp2) { | |
15239 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15240 | } | |
15241 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
15242 | { | |
15243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15244 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
15245 | wxPyEndAllowThreads(__tstate); | |
15246 | if (PyErr_Occurred()) SWIG_fail; | |
15247 | } | |
15248 | resultobj = SWIG_Py_Void(); | |
15249 | return resultobj; | |
15250 | fail: | |
15251 | return NULL; | |
15252 | } | |
15253 | ||
15254 | ||
15255 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15256 | PyObject *resultobj = 0; | |
15257 | wxFont *arg1 = (wxFont *) 0 ; | |
15258 | wxString *arg2 = 0 ; | |
704eda0c | 15259 | bool result; |
0085ce49 RD |
15260 | void *argp1 = 0 ; |
15261 | int res1 = 0 ; | |
15262 | bool temp2 = false ; | |
15263 | PyObject * obj0 = 0 ; | |
15264 | PyObject * obj1 = 0 ; | |
15265 | char * kwnames[] = { | |
15266 | (char *) "self",(char *) "info", NULL | |
15267 | }; | |
15268 | ||
15269 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15270 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15271 | if (!SWIG_IsOK(res1)) { | |
15272 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15273 | } | |
15274 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15275 | { | |
15276 | arg2 = wxString_in_helper(obj1); | |
15277 | if (arg2 == NULL) SWIG_fail; | |
15278 | temp2 = true; | |
15279 | } | |
15280 | { | |
15281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15282 | result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2); |
0085ce49 RD |
15283 | wxPyEndAllowThreads(__tstate); |
15284 | if (PyErr_Occurred()) SWIG_fail; | |
15285 | } | |
704eda0c RD |
15286 | { |
15287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15288 | } | |
0085ce49 RD |
15289 | { |
15290 | if (temp2) | |
15291 | delete arg2; | |
15292 | } | |
15293 | return resultobj; | |
15294 | fail: | |
15295 | { | |
15296 | if (temp2) | |
15297 | delete arg2; | |
15298 | } | |
15299 | return NULL; | |
d14a1e28 RD |
15300 | } |
15301 | ||
15302 | ||
0085ce49 RD |
15303 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15304 | PyObject *resultobj = 0; | |
15305 | wxFont *arg1 = (wxFont *) 0 ; | |
15306 | wxString *arg2 = 0 ; | |
704eda0c | 15307 | bool result; |
0085ce49 RD |
15308 | void *argp1 = 0 ; |
15309 | int res1 = 0 ; | |
15310 | bool temp2 = false ; | |
15311 | PyObject * obj0 = 0 ; | |
15312 | PyObject * obj1 = 0 ; | |
15313 | char * kwnames[] = { | |
15314 | (char *) "self",(char *) "info", NULL | |
15315 | }; | |
15316 | ||
15317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
15318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15319 | if (!SWIG_IsOK(res1)) { | |
15320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15321 | } | |
15322 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15323 | { | |
15324 | arg2 = wxString_in_helper(obj1); | |
15325 | if (arg2 == NULL) SWIG_fail; | |
15326 | temp2 = true; | |
15327 | } | |
15328 | { | |
15329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15330 | result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
0085ce49 RD |
15331 | wxPyEndAllowThreads(__tstate); |
15332 | if (PyErr_Occurred()) SWIG_fail; | |
15333 | } | |
704eda0c RD |
15334 | { |
15335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15336 | } | |
0085ce49 RD |
15337 | { |
15338 | if (temp2) | |
15339 | delete arg2; | |
15340 | } | |
15341 | return resultobj; | |
15342 | fail: | |
15343 | { | |
15344 | if (temp2) | |
15345 | delete arg2; | |
15346 | } | |
15347 | return NULL; | |
d14a1e28 RD |
15348 | } |
15349 | ||
15350 | ||
0085ce49 RD |
15351 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15352 | PyObject *resultobj = 0; | |
15353 | wxFont *arg1 = (wxFont *) 0 ; | |
15354 | wxString result; | |
15355 | void *argp1 = 0 ; | |
15356 | int res1 = 0 ; | |
15357 | PyObject *swig_obj[1] ; | |
15358 | ||
15359 | if (!args) SWIG_fail; | |
15360 | swig_obj[0] = args; | |
15361 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15362 | if (!SWIG_IsOK(res1)) { | |
15363 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15364 | } | |
15365 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15366 | { | |
15367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15368 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
15369 | wxPyEndAllowThreads(__tstate); | |
15370 | if (PyErr_Occurred()) SWIG_fail; | |
15371 | } | |
15372 | { | |
15373 | #if wxUSE_UNICODE | |
15374 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15375 | #else | |
15376 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15377 | #endif | |
15378 | } | |
15379 | return resultobj; | |
15380 | fail: | |
15381 | return NULL; | |
d14a1e28 RD |
15382 | } |
15383 | ||
15384 | ||
0085ce49 RD |
15385 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15386 | PyObject *resultobj = 0; | |
15387 | wxFont *arg1 = (wxFont *) 0 ; | |
15388 | wxString result; | |
15389 | void *argp1 = 0 ; | |
15390 | int res1 = 0 ; | |
15391 | PyObject *swig_obj[1] ; | |
15392 | ||
15393 | if (!args) SWIG_fail; | |
15394 | swig_obj[0] = args; | |
15395 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15396 | if (!SWIG_IsOK(res1)) { | |
15397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15398 | } | |
15399 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15400 | { | |
15401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15402 | result = ((wxFont const *)arg1)->GetStyleString(); | |
15403 | wxPyEndAllowThreads(__tstate); | |
15404 | if (PyErr_Occurred()) SWIG_fail; | |
15405 | } | |
15406 | { | |
15407 | #if wxUSE_UNICODE | |
15408 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15409 | #else | |
15410 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15411 | #endif | |
15412 | } | |
15413 | return resultobj; | |
15414 | fail: | |
15415 | return NULL; | |
d14a1e28 RD |
15416 | } |
15417 | ||
15418 | ||
0085ce49 RD |
15419 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15420 | PyObject *resultobj = 0; | |
15421 | wxFont *arg1 = (wxFont *) 0 ; | |
15422 | wxString result; | |
15423 | void *argp1 = 0 ; | |
15424 | int res1 = 0 ; | |
15425 | PyObject *swig_obj[1] ; | |
15426 | ||
15427 | if (!args) SWIG_fail; | |
15428 | swig_obj[0] = args; | |
15429 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15430 | if (!SWIG_IsOK(res1)) { | |
15431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15432 | } | |
15433 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15434 | { | |
15435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15436 | result = ((wxFont const *)arg1)->GetWeightString(); | |
15437 | wxPyEndAllowThreads(__tstate); | |
15438 | if (PyErr_Occurred()) SWIG_fail; | |
15439 | } | |
15440 | { | |
d14a1e28 | 15441 | #if wxUSE_UNICODE |
0085ce49 | 15442 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15443 | #else |
0085ce49 | 15444 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15445 | #endif |
0085ce49 RD |
15446 | } |
15447 | return resultobj; | |
15448 | fail: | |
15449 | return NULL; | |
15450 | } | |
15451 | ||
15452 | ||
15453 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15454 | PyObject *resultobj = 0; | |
15455 | wxFont *arg1 = (wxFont *) 0 ; | |
15456 | bool arg2 = (bool) true ; | |
15457 | void *argp1 = 0 ; | |
15458 | int res1 = 0 ; | |
15459 | bool val2 ; | |
15460 | int ecode2 = 0 ; | |
15461 | PyObject * obj0 = 0 ; | |
15462 | PyObject * obj1 = 0 ; | |
15463 | char * kwnames[] = { | |
15464 | (char *) "self",(char *) "no", NULL | |
15465 | }; | |
15466 | ||
15467 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
15468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15469 | if (!SWIG_IsOK(res1)) { | |
15470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15471 | } | |
15472 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15473 | if (obj1) { | |
15474 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15475 | if (!SWIG_IsOK(ecode2)) { | |
15476 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
15477 | } | |
15478 | arg2 = static_cast< bool >(val2); | |
15479 | } | |
15480 | { | |
15481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15482 | (arg1)->SetNoAntiAliasing(arg2); | |
15483 | wxPyEndAllowThreads(__tstate); | |
15484 | if (PyErr_Occurred()) SWIG_fail; | |
15485 | } | |
15486 | resultobj = SWIG_Py_Void(); | |
15487 | return resultobj; | |
15488 | fail: | |
15489 | return NULL; | |
d14a1e28 RD |
15490 | } |
15491 | ||
15492 | ||
0085ce49 RD |
15493 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15494 | PyObject *resultobj = 0; | |
15495 | wxFont *arg1 = (wxFont *) 0 ; | |
15496 | bool result; | |
15497 | void *argp1 = 0 ; | |
15498 | int res1 = 0 ; | |
15499 | PyObject *swig_obj[1] ; | |
15500 | ||
15501 | if (!args) SWIG_fail; | |
15502 | swig_obj[0] = args; | |
15503 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15504 | if (!SWIG_IsOK(res1)) { | |
15505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15506 | } | |
15507 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15508 | { | |
15509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15510 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
15511 | wxPyEndAllowThreads(__tstate); | |
15512 | if (PyErr_Occurred()) SWIG_fail; | |
15513 | } | |
15514 | { | |
15515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15516 | } | |
15517 | return resultobj; | |
15518 | fail: | |
15519 | return NULL; | |
d14a1e28 RD |
15520 | } |
15521 | ||
15522 | ||
0085ce49 RD |
15523 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15524 | PyObject *resultobj = 0; | |
15525 | wxFontEncoding result; | |
15526 | ||
15527 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
15528 | { | |
15529 | if (!wxPyCheckForApp()) SWIG_fail; | |
15530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15531 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
15532 | wxPyEndAllowThreads(__tstate); | |
15533 | if (PyErr_Occurred()) SWIG_fail; | |
15534 | } | |
15535 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15536 | return resultobj; | |
15537 | fail: | |
15538 | return NULL; | |
d14a1e28 RD |
15539 | } |
15540 | ||
15541 | ||
0085ce49 RD |
15542 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15543 | PyObject *resultobj = 0; | |
15544 | wxFontEncoding arg1 ; | |
15545 | int val1 ; | |
15546 | int ecode1 = 0 ; | |
15547 | PyObject * obj0 = 0 ; | |
15548 | char * kwnames[] = { | |
15549 | (char *) "encoding", NULL | |
15550 | }; | |
15551 | ||
15552 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
15553 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15554 | if (!SWIG_IsOK(ecode1)) { | |
15555 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
15556 | } | |
15557 | arg1 = static_cast< wxFontEncoding >(val1); | |
15558 | { | |
15559 | if (!wxPyCheckForApp()) SWIG_fail; | |
15560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15561 | wxFont::SetDefaultEncoding(arg1); | |
15562 | wxPyEndAllowThreads(__tstate); | |
15563 | if (PyErr_Occurred()) SWIG_fail; | |
15564 | } | |
15565 | resultobj = SWIG_Py_Void(); | |
15566 | return resultobj; | |
15567 | fail: | |
15568 | return NULL; | |
d14a1e28 RD |
15569 | } |
15570 | ||
15571 | ||
0085ce49 RD |
15572 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15573 | PyObject *obj; | |
15574 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15575 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
15576 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15577 | } |
15578 | ||
0085ce49 RD |
15579 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15580 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15581 | } |
15582 | ||
0085ce49 RD |
15583 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15584 | PyObject *resultobj = 0; | |
15585 | wxPyFontEnumerator *result = 0 ; | |
15586 | ||
15587 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
15588 | { | |
15589 | if (!wxPyCheckForApp()) SWIG_fail; | |
15590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15591 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
15592 | wxPyEndAllowThreads(__tstate); | |
15593 | if (PyErr_Occurred()) SWIG_fail; | |
15594 | } | |
15595 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
15596 | return resultobj; | |
15597 | fail: | |
15598 | return NULL; | |
d14a1e28 RD |
15599 | } |
15600 | ||
15601 | ||
0085ce49 RD |
15602 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15603 | PyObject *resultobj = 0; | |
15604 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15605 | void *argp1 = 0 ; | |
15606 | int res1 = 0 ; | |
15607 | PyObject *swig_obj[1] ; | |
15608 | ||
15609 | if (!args) SWIG_fail; | |
15610 | swig_obj[0] = args; | |
15611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
15612 | if (!SWIG_IsOK(res1)) { | |
15613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15614 | } | |
15615 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15616 | { | |
15617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15618 | delete arg1; | |
d14a1e28 | 15619 | |
0085ce49 RD |
15620 | wxPyEndAllowThreads(__tstate); |
15621 | if (PyErr_Occurred()) SWIG_fail; | |
15622 | } | |
15623 | resultobj = SWIG_Py_Void(); | |
15624 | return resultobj; | |
15625 | fail: | |
15626 | return NULL; | |
15627 | } | |
15628 | ||
15629 | ||
15630 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15631 | PyObject *resultobj = 0; | |
15632 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15633 | PyObject *arg2 = (PyObject *) 0 ; | |
15634 | PyObject *arg3 = (PyObject *) 0 ; | |
c25f90f6 | 15635 | int arg4 = (int) 0 ; |
0085ce49 RD |
15636 | void *argp1 = 0 ; |
15637 | int res1 = 0 ; | |
c25f90f6 | 15638 | int val4 ; |
0085ce49 RD |
15639 | int ecode4 = 0 ; |
15640 | PyObject * obj0 = 0 ; | |
15641 | PyObject * obj1 = 0 ; | |
15642 | PyObject * obj2 = 0 ; | |
15643 | PyObject * obj3 = 0 ; | |
15644 | char * kwnames[] = { | |
15645 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
15646 | }; | |
15647 | ||
c25f90f6 | 15648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
15649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); |
15650 | if (!SWIG_IsOK(res1)) { | |
15651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15652 | } | |
15653 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15654 | arg2 = obj1; | |
15655 | arg3 = obj2; | |
c25f90f6 RD |
15656 | if (obj3) { |
15657 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
15658 | if (!SWIG_IsOK(ecode4)) { | |
15659 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
15660 | } | |
15661 | arg4 = static_cast< int >(val4); | |
15662 | } | |
0085ce49 RD |
15663 | { |
15664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15665 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
15666 | wxPyEndAllowThreads(__tstate); | |
15667 | if (PyErr_Occurred()) SWIG_fail; | |
15668 | } | |
15669 | resultobj = SWIG_Py_Void(); | |
15670 | return resultobj; | |
15671 | fail: | |
15672 | return NULL; | |
15673 | } | |
15674 | ||
15675 | ||
15676 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15677 | PyObject *resultobj = 0; | |
15678 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15679 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
15680 | bool arg3 = (bool) false ; | |
15681 | bool result; | |
15682 | void *argp1 = 0 ; | |
15683 | int res1 = 0 ; | |
15684 | int val2 ; | |
15685 | int ecode2 = 0 ; | |
15686 | bool val3 ; | |
15687 | int ecode3 = 0 ; | |
15688 | PyObject * obj0 = 0 ; | |
15689 | PyObject * obj1 = 0 ; | |
15690 | PyObject * obj2 = 0 ; | |
15691 | char * kwnames[] = { | |
15692 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
15693 | }; | |
15694 | ||
15695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15697 | if (!SWIG_IsOK(res1)) { | |
15698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15699 | } | |
15700 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15701 | if (obj1) { | |
15702 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15703 | if (!SWIG_IsOK(ecode2)) { | |
15704 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15705 | } | |
15706 | arg2 = static_cast< wxFontEncoding >(val2); | |
15707 | } | |
15708 | if (obj2) { | |
15709 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
15710 | if (!SWIG_IsOK(ecode3)) { | |
15711 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
15712 | } | |
15713 | arg3 = static_cast< bool >(val3); | |
15714 | } | |
15715 | { | |
15716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15717 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
15718 | wxPyEndAllowThreads(__tstate); | |
15719 | if (PyErr_Occurred()) SWIG_fail; | |
15720 | } | |
15721 | { | |
15722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15723 | } | |
15724 | return resultobj; | |
15725 | fail: | |
15726 | return NULL; | |
15727 | } | |
15728 | ||
15729 | ||
15730 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15731 | PyObject *resultobj = 0; | |
15732 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15733 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15734 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15735 | bool result; | |
15736 | void *argp1 = 0 ; | |
15737 | int res1 = 0 ; | |
15738 | bool temp2 = false ; | |
15739 | PyObject * obj0 = 0 ; | |
15740 | PyObject * obj1 = 0 ; | |
15741 | char * kwnames[] = { | |
15742 | (char *) "self",(char *) "facename", NULL | |
15743 | }; | |
15744 | ||
15745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
15746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15747 | if (!SWIG_IsOK(res1)) { | |
15748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15749 | } | |
15750 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15751 | if (obj1) { | |
d14a1e28 | 15752 | { |
0085ce49 RD |
15753 | arg2 = wxString_in_helper(obj1); |
15754 | if (arg2 == NULL) SWIG_fail; | |
15755 | temp2 = true; | |
d14a1e28 | 15756 | } |
0085ce49 RD |
15757 | } |
15758 | { | |
15759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15760 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
15761 | wxPyEndAllowThreads(__tstate); | |
15762 | if (PyErr_Occurred()) SWIG_fail; | |
15763 | } | |
15764 | { | |
15765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15766 | } | |
15767 | { | |
15768 | if (temp2) | |
15769 | delete arg2; | |
15770 | } | |
15771 | return resultobj; | |
15772 | fail: | |
15773 | { | |
15774 | if (temp2) | |
15775 | delete arg2; | |
15776 | } | |
15777 | return NULL; | |
d14a1e28 RD |
15778 | } |
15779 | ||
15780 | ||
0085ce49 RD |
15781 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15782 | PyObject *resultobj = 0; | |
0085ce49 | 15783 | PyObject *result = 0 ; |
0085ce49 | 15784 | |
704eda0c | 15785 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail; |
0085ce49 RD |
15786 | { |
15787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15788 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(); |
0085ce49 RD |
15789 | wxPyEndAllowThreads(__tstate); |
15790 | if (PyErr_Occurred()) SWIG_fail; | |
15791 | } | |
15792 | resultobj = result; | |
15793 | return resultobj; | |
15794 | fail: | |
15795 | return NULL; | |
d14a1e28 RD |
15796 | } |
15797 | ||
15798 | ||
0085ce49 RD |
15799 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15800 | PyObject *resultobj = 0; | |
0085ce49 | 15801 | PyObject *result = 0 ; |
0085ce49 | 15802 | |
704eda0c | 15803 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail; |
0085ce49 RD |
15804 | { |
15805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15806 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(); |
0085ce49 RD |
15807 | wxPyEndAllowThreads(__tstate); |
15808 | if (PyErr_Occurred()) SWIG_fail; | |
15809 | } | |
15810 | resultobj = result; | |
15811 | return resultobj; | |
15812 | fail: | |
15813 | return NULL; | |
d14a1e28 RD |
15814 | } |
15815 | ||
15816 | ||
704eda0c RD |
15817 | SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15818 | PyObject *resultobj = 0; | |
15819 | wxString *arg1 = 0 ; | |
15820 | bool result; | |
15821 | bool temp1 = false ; | |
15822 | PyObject * obj0 = 0 ; | |
15823 | char * kwnames[] = { | |
15824 | (char *) "str", NULL | |
15825 | }; | |
15826 | ||
15827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail; | |
15828 | { | |
15829 | arg1 = wxString_in_helper(obj0); | |
15830 | if (arg1 == NULL) SWIG_fail; | |
15831 | temp1 = true; | |
15832 | } | |
15833 | { | |
15834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15835 | result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1); | |
15836 | wxPyEndAllowThreads(__tstate); | |
15837 | if (PyErr_Occurred()) SWIG_fail; | |
15838 | } | |
15839 | { | |
15840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15841 | } | |
15842 | { | |
15843 | if (temp1) | |
15844 | delete arg1; | |
15845 | } | |
15846 | return resultobj; | |
15847 | fail: | |
15848 | { | |
15849 | if (temp1) | |
15850 | delete arg1; | |
15851 | } | |
15852 | return NULL; | |
15853 | } | |
15854 | ||
15855 | ||
0085ce49 RD |
15856 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15857 | PyObject *obj; | |
15858 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15859 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
15860 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15861 | } |
15862 | ||
0085ce49 RD |
15863 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15864 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15865 | } |
15866 | ||
0085ce49 RD |
15867 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15868 | PyObject *resultobj = 0; | |
15869 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15870 | int arg2 ; | |
15871 | void *argp1 = 0 ; | |
15872 | int res1 = 0 ; | |
15873 | int val2 ; | |
15874 | int ecode2 = 0 ; | |
15875 | PyObject *swig_obj[2] ; | |
15876 | ||
15877 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
15878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15879 | if (!SWIG_IsOK(res1)) { | |
15880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15881 | } | |
15882 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15883 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
15884 | if (!SWIG_IsOK(ecode2)) { | |
15885 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
15886 | } | |
15887 | arg2 = static_cast< int >(val2); | |
15888 | if (arg1) (arg1)->Language = arg2; | |
15889 | ||
15890 | resultobj = SWIG_Py_Void(); | |
15891 | return resultobj; | |
15892 | fail: | |
15893 | return NULL; | |
d14a1e28 RD |
15894 | } |
15895 | ||
15896 | ||
0085ce49 RD |
15897 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15898 | PyObject *resultobj = 0; | |
15899 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15900 | int result; | |
15901 | void *argp1 = 0 ; | |
15902 | int res1 = 0 ; | |
15903 | PyObject *swig_obj[1] ; | |
15904 | ||
15905 | if (!args) SWIG_fail; | |
15906 | swig_obj[0] = args; | |
15907 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15908 | if (!SWIG_IsOK(res1)) { | |
15909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15910 | } | |
15911 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15912 | result = (int) ((arg1)->Language); | |
15913 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15914 | return resultobj; | |
15915 | fail: | |
15916 | return NULL; | |
15917 | } | |
15918 | ||
15919 | ||
15920 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15921 | PyObject *resultobj = 0; | |
15922 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15923 | wxString *arg2 = (wxString *) 0 ; | |
15924 | void *argp1 = 0 ; | |
15925 | int res1 = 0 ; | |
15926 | bool temp2 = false ; | |
15927 | PyObject *swig_obj[2] ; | |
15928 | ||
15929 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
15930 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15931 | if (!SWIG_IsOK(res1)) { | |
15932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15933 | } | |
15934 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15935 | { | |
15936 | arg2 = wxString_in_helper(swig_obj[1]); | |
15937 | if (arg2 == NULL) SWIG_fail; | |
15938 | temp2 = true; | |
15939 | } | |
15940 | if (arg1) (arg1)->CanonicalName = *arg2; | |
15941 | ||
15942 | resultobj = SWIG_Py_Void(); | |
15943 | { | |
15944 | if (temp2) | |
15945 | delete arg2; | |
15946 | } | |
15947 | return resultobj; | |
15948 | fail: | |
15949 | { | |
15950 | if (temp2) | |
15951 | delete arg2; | |
15952 | } | |
15953 | return NULL; | |
d14a1e28 RD |
15954 | } |
15955 | ||
15956 | ||
0085ce49 RD |
15957 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15958 | PyObject *resultobj = 0; | |
15959 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15960 | wxString *result = 0 ; | |
15961 | void *argp1 = 0 ; | |
15962 | int res1 = 0 ; | |
15963 | PyObject *swig_obj[1] ; | |
15964 | ||
15965 | if (!args) SWIG_fail; | |
15966 | swig_obj[0] = args; | |
15967 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15968 | if (!SWIG_IsOK(res1)) { | |
15969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15970 | } | |
15971 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15972 | result = (wxString *)& ((arg1)->CanonicalName); | |
15973 | { | |
093d3ff1 | 15974 | #if wxUSE_UNICODE |
0085ce49 | 15975 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
093d3ff1 | 15976 | #else |
0085ce49 | 15977 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
093d3ff1 | 15978 | #endif |
0085ce49 RD |
15979 | } |
15980 | return resultobj; | |
15981 | fail: | |
15982 | return NULL; | |
d14a1e28 RD |
15983 | } |
15984 | ||
15985 | ||
0085ce49 RD |
15986 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15987 | PyObject *resultobj = 0; | |
15988 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15989 | wxString *arg2 = (wxString *) 0 ; | |
15990 | void *argp1 = 0 ; | |
15991 | int res1 = 0 ; | |
15992 | bool temp2 = false ; | |
15993 | PyObject *swig_obj[2] ; | |
15994 | ||
15995 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
15996 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15997 | if (!SWIG_IsOK(res1)) { | |
15998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15999 | } | |
16000 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16001 | { | |
16002 | arg2 = wxString_in_helper(swig_obj[1]); | |
16003 | if (arg2 == NULL) SWIG_fail; | |
16004 | temp2 = true; | |
16005 | } | |
16006 | if (arg1) (arg1)->Description = *arg2; | |
16007 | ||
16008 | resultobj = SWIG_Py_Void(); | |
16009 | { | |
16010 | if (temp2) | |
16011 | delete arg2; | |
16012 | } | |
16013 | return resultobj; | |
16014 | fail: | |
16015 | { | |
16016 | if (temp2) | |
16017 | delete arg2; | |
16018 | } | |
16019 | return NULL; | |
d14a1e28 RD |
16020 | } |
16021 | ||
16022 | ||
0085ce49 RD |
16023 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16024 | PyObject *resultobj = 0; | |
16025 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16026 | wxString *result = 0 ; | |
16027 | void *argp1 = 0 ; | |
16028 | int res1 = 0 ; | |
16029 | PyObject *swig_obj[1] ; | |
16030 | ||
16031 | if (!args) SWIG_fail; | |
16032 | swig_obj[0] = args; | |
16033 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16034 | if (!SWIG_IsOK(res1)) { | |
16035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16036 | } | |
16037 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16038 | result = (wxString *)& ((arg1)->Description); | |
16039 | { | |
d14a1e28 | 16040 | #if wxUSE_UNICODE |
0085ce49 | 16041 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 16042 | #else |
0085ce49 | 16043 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 16044 | #endif |
0085ce49 RD |
16045 | } |
16046 | return resultobj; | |
16047 | fail: | |
16048 | return NULL; | |
16049 | } | |
16050 | ||
16051 | ||
16052 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16053 | PyObject *obj; | |
16054 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16055 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
16056 | return SWIG_Py_Void(); | |
16057 | } | |
16058 | ||
16059 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16060 | PyObject *resultobj = 0; | |
16061 | int arg1 = (int) -1 ; | |
16062 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16063 | wxLocale *result = 0 ; | |
16064 | int val1 ; | |
16065 | int ecode1 = 0 ; | |
16066 | int val2 ; | |
16067 | int ecode2 = 0 ; | |
16068 | PyObject * obj0 = 0 ; | |
16069 | PyObject * obj1 = 0 ; | |
16070 | char * kwnames[] = { | |
16071 | (char *) "language",(char *) "flags", NULL | |
16072 | }; | |
16073 | ||
16074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
16075 | if (obj0) { | |
16076 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16077 | if (!SWIG_IsOK(ecode1)) { | |
16078 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
16079 | } | |
16080 | arg1 = static_cast< int >(val1); | |
16081 | } | |
16082 | if (obj1) { | |
16083 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16084 | if (!SWIG_IsOK(ecode2)) { | |
16085 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
16086 | } | |
16087 | arg2 = static_cast< int >(val2); | |
16088 | } | |
16089 | { | |
16090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16091 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
16092 | wxPyEndAllowThreads(__tstate); | |
16093 | if (PyErr_Occurred()) SWIG_fail; | |
16094 | } | |
16095 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
16096 | return resultobj; | |
16097 | fail: | |
16098 | return NULL; | |
d14a1e28 RD |
16099 | } |
16100 | ||
16101 | ||
0085ce49 RD |
16102 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16103 | PyObject *resultobj = 0; | |
16104 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16105 | void *argp1 = 0 ; | |
16106 | int res1 = 0 ; | |
16107 | PyObject *swig_obj[1] ; | |
16108 | ||
16109 | if (!args) SWIG_fail; | |
16110 | swig_obj[0] = args; | |
16111 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
16112 | if (!SWIG_IsOK(res1)) { | |
16113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16114 | } | |
16115 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16116 | { | |
16117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16118 | delete arg1; | |
d14a1e28 | 16119 | |
0085ce49 RD |
16120 | wxPyEndAllowThreads(__tstate); |
16121 | if (PyErr_Occurred()) SWIG_fail; | |
16122 | } | |
16123 | resultobj = SWIG_Py_Void(); | |
16124 | return resultobj; | |
16125 | fail: | |
16126 | return NULL; | |
16127 | } | |
16128 | ||
16129 | ||
16130 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16131 | PyObject *resultobj = 0; | |
16132 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16133 | wxString *arg2 = 0 ; | |
16134 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16135 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16136 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16137 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16138 | bool arg5 = (bool) true ; | |
16139 | bool arg6 = (bool) false ; | |
16140 | bool result; | |
16141 | void *argp1 = 0 ; | |
16142 | int res1 = 0 ; | |
16143 | bool temp2 = false ; | |
16144 | bool temp3 = false ; | |
16145 | bool temp4 = false ; | |
16146 | bool val5 ; | |
16147 | int ecode5 = 0 ; | |
16148 | bool val6 ; | |
16149 | int ecode6 = 0 ; | |
16150 | PyObject * obj0 = 0 ; | |
16151 | PyObject * obj1 = 0 ; | |
16152 | PyObject * obj2 = 0 ; | |
16153 | PyObject * obj3 = 0 ; | |
16154 | PyObject * obj4 = 0 ; | |
16155 | PyObject * obj5 = 0 ; | |
16156 | char * kwnames[] = { | |
ddeca22c | 16157 | (char *) "self",(char *) "name",(char *) "shortName",(char *) "locale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL |
0085ce49 RD |
16158 | }; |
16159 | ||
16160 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
16161 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16162 | if (!SWIG_IsOK(res1)) { | |
16163 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16164 | } | |
16165 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16166 | { | |
16167 | arg2 = wxString_in_helper(obj1); | |
16168 | if (arg2 == NULL) SWIG_fail; | |
16169 | temp2 = true; | |
16170 | } | |
16171 | if (obj2) { | |
d14a1e28 | 16172 | { |
0085ce49 RD |
16173 | arg3 = wxString_in_helper(obj2); |
16174 | if (arg3 == NULL) SWIG_fail; | |
16175 | temp3 = true; | |
d14a1e28 | 16176 | } |
0085ce49 RD |
16177 | } |
16178 | if (obj3) { | |
093d3ff1 | 16179 | { |
0085ce49 RD |
16180 | arg4 = wxString_in_helper(obj3); |
16181 | if (arg4 == NULL) SWIG_fail; | |
16182 | temp4 = true; | |
093d3ff1 | 16183 | } |
0085ce49 RD |
16184 | } |
16185 | if (obj4) { | |
16186 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
16187 | if (!SWIG_IsOK(ecode5)) { | |
16188 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
16189 | } | |
16190 | arg5 = static_cast< bool >(val5); | |
16191 | } | |
16192 | if (obj5) { | |
16193 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
16194 | if (!SWIG_IsOK(ecode6)) { | |
16195 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
16196 | } | |
16197 | arg6 = static_cast< bool >(val6); | |
16198 | } | |
16199 | { | |
16200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16201 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
16202 | wxPyEndAllowThreads(__tstate); | |
16203 | if (PyErr_Occurred()) SWIG_fail; | |
16204 | } | |
16205 | { | |
16206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16207 | } | |
16208 | { | |
16209 | if (temp2) | |
16210 | delete arg2; | |
16211 | } | |
16212 | { | |
16213 | if (temp3) | |
16214 | delete arg3; | |
16215 | } | |
16216 | { | |
16217 | if (temp4) | |
16218 | delete arg4; | |
16219 | } | |
16220 | return resultobj; | |
16221 | fail: | |
16222 | { | |
16223 | if (temp2) | |
16224 | delete arg2; | |
16225 | } | |
16226 | { | |
16227 | if (temp3) | |
16228 | delete arg3; | |
16229 | } | |
16230 | { | |
16231 | if (temp4) | |
16232 | delete arg4; | |
16233 | } | |
16234 | return NULL; | |
16235 | } | |
16236 | ||
16237 | ||
16238 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16239 | PyObject *resultobj = 0; | |
16240 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16241 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
16242 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16243 | bool result; | |
16244 | void *argp1 = 0 ; | |
16245 | int res1 = 0 ; | |
16246 | int val2 ; | |
16247 | int ecode2 = 0 ; | |
16248 | int val3 ; | |
16249 | int ecode3 = 0 ; | |
16250 | PyObject * obj0 = 0 ; | |
16251 | PyObject * obj1 = 0 ; | |
16252 | PyObject * obj2 = 0 ; | |
16253 | char * kwnames[] = { | |
16254 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
16255 | }; | |
16256 | ||
16257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16259 | if (!SWIG_IsOK(res1)) { | |
16260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16261 | } | |
16262 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16263 | if (obj1) { | |
16264 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16265 | if (!SWIG_IsOK(ecode2)) { | |
16266 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
16267 | } | |
16268 | arg2 = static_cast< int >(val2); | |
16269 | } | |
16270 | if (obj2) { | |
16271 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16272 | if (!SWIG_IsOK(ecode3)) { | |
16273 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
16274 | } | |
16275 | arg3 = static_cast< int >(val3); | |
16276 | } | |
16277 | { | |
16278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16279 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
16280 | wxPyEndAllowThreads(__tstate); | |
16281 | if (PyErr_Occurred()) SWIG_fail; | |
16282 | } | |
16283 | { | |
16284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16285 | } | |
16286 | return resultobj; | |
16287 | fail: | |
16288 | return NULL; | |
093d3ff1 RD |
16289 | } |
16290 | ||
16291 | ||
0085ce49 RD |
16292 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16293 | PyObject *resultobj = 0; | |
16294 | int result; | |
16295 | ||
16296 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
16297 | { | |
16298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16299 | result = (int)wxLocale::GetSystemLanguage(); | |
16300 | wxPyEndAllowThreads(__tstate); | |
16301 | if (PyErr_Occurred()) SWIG_fail; | |
16302 | } | |
16303 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16304 | return resultobj; | |
16305 | fail: | |
16306 | return NULL; | |
d14a1e28 RD |
16307 | } |
16308 | ||
16309 | ||
0085ce49 RD |
16310 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16311 | PyObject *resultobj = 0; | |
16312 | wxFontEncoding result; | |
16313 | ||
16314 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
16315 | { | |
16316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16317 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
16318 | wxPyEndAllowThreads(__tstate); | |
16319 | if (PyErr_Occurred()) SWIG_fail; | |
16320 | } | |
16321 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16322 | return resultobj; | |
16323 | fail: | |
16324 | return NULL; | |
d14a1e28 RD |
16325 | } |
16326 | ||
16327 | ||
0085ce49 RD |
16328 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16329 | PyObject *resultobj = 0; | |
16330 | wxString result; | |
16331 | ||
16332 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
16333 | { | |
16334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16335 | result = wxLocale::GetSystemEncodingName(); | |
16336 | wxPyEndAllowThreads(__tstate); | |
16337 | if (PyErr_Occurred()) SWIG_fail; | |
16338 | } | |
16339 | { | |
d14a1e28 | 16340 | #if wxUSE_UNICODE |
0085ce49 | 16341 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 16342 | #else |
0085ce49 | 16343 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 16344 | #endif |
0085ce49 RD |
16345 | } |
16346 | return resultobj; | |
16347 | fail: | |
16348 | return NULL; | |
d14a1e28 RD |
16349 | } |
16350 | ||
16351 | ||
0085ce49 RD |
16352 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16353 | PyObject *resultobj = 0; | |
16354 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16355 | bool result; | |
16356 | void *argp1 = 0 ; | |
16357 | int res1 = 0 ; | |
16358 | PyObject *swig_obj[1] ; | |
16359 | ||
16360 | if (!args) SWIG_fail; | |
16361 | swig_obj[0] = args; | |
16362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16363 | if (!SWIG_IsOK(res1)) { | |
16364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16365 | } | |
16366 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16367 | { | |
16368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16369 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
16370 | wxPyEndAllowThreads(__tstate); | |
16371 | if (PyErr_Occurred()) SWIG_fail; | |
16372 | } | |
16373 | { | |
16374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16375 | } | |
16376 | return resultobj; | |
16377 | fail: | |
16378 | return NULL; | |
093d3ff1 | 16379 | } |
0085ce49 RD |
16380 | |
16381 | ||
16382 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16383 | PyObject *resultobj = 0; | |
16384 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16385 | wxString result; | |
16386 | void *argp1 = 0 ; | |
16387 | int res1 = 0 ; | |
16388 | PyObject *swig_obj[1] ; | |
16389 | ||
16390 | if (!args) SWIG_fail; | |
16391 | swig_obj[0] = args; | |
16392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16393 | if (!SWIG_IsOK(res1)) { | |
16394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16395 | } | |
16396 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16397 | { | |
16398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16399 | result = ((wxLocale const *)arg1)->GetLocale(); | |
16400 | wxPyEndAllowThreads(__tstate); | |
16401 | if (PyErr_Occurred()) SWIG_fail; | |
16402 | } | |
16403 | { | |
16404 | #if wxUSE_UNICODE | |
16405 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16406 | #else | |
16407 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16408 | #endif | |
16409 | } | |
16410 | return resultobj; | |
16411 | fail: | |
16412 | return NULL; | |
d14a1e28 RD |
16413 | } |
16414 | ||
16415 | ||
0085ce49 RD |
16416 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16417 | PyObject *resultobj = 0; | |
16418 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16419 | int result; | |
16420 | void *argp1 = 0 ; | |
16421 | int res1 = 0 ; | |
16422 | PyObject *swig_obj[1] ; | |
16423 | ||
16424 | if (!args) SWIG_fail; | |
16425 | swig_obj[0] = args; | |
16426 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16427 | if (!SWIG_IsOK(res1)) { | |
16428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16429 | } | |
16430 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16431 | { | |
16432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16433 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
16434 | wxPyEndAllowThreads(__tstate); | |
16435 | if (PyErr_Occurred()) SWIG_fail; | |
16436 | } | |
16437 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16438 | return resultobj; | |
16439 | fail: | |
16440 | return NULL; | |
d14a1e28 RD |
16441 | } |
16442 | ||
16443 | ||
0085ce49 RD |
16444 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16445 | PyObject *resultobj = 0; | |
16446 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16447 | wxString result; | |
16448 | void *argp1 = 0 ; | |
16449 | int res1 = 0 ; | |
16450 | PyObject *swig_obj[1] ; | |
16451 | ||
16452 | if (!args) SWIG_fail; | |
16453 | swig_obj[0] = args; | |
16454 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16455 | if (!SWIG_IsOK(res1)) { | |
16456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16457 | } | |
16458 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16459 | { | |
16460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16461 | result = ((wxLocale const *)arg1)->GetSysName(); | |
16462 | wxPyEndAllowThreads(__tstate); | |
16463 | if (PyErr_Occurred()) SWIG_fail; | |
16464 | } | |
16465 | { | |
16466 | #if wxUSE_UNICODE | |
16467 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16468 | #else | |
16469 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16470 | #endif | |
16471 | } | |
16472 | return resultobj; | |
16473 | fail: | |
16474 | return NULL; | |
d14a1e28 RD |
16475 | } |
16476 | ||
16477 | ||
0085ce49 RD |
16478 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16479 | PyObject *resultobj = 0; | |
16480 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16481 | wxString result; | |
16482 | void *argp1 = 0 ; | |
16483 | int res1 = 0 ; | |
16484 | PyObject *swig_obj[1] ; | |
16485 | ||
16486 | if (!args) SWIG_fail; | |
16487 | swig_obj[0] = args; | |
16488 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16489 | if (!SWIG_IsOK(res1)) { | |
16490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16491 | } | |
16492 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16493 | { | |
16494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16495 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
16496 | wxPyEndAllowThreads(__tstate); | |
16497 | if (PyErr_Occurred()) SWIG_fail; | |
16498 | } | |
16499 | { | |
16500 | #if wxUSE_UNICODE | |
16501 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16502 | #else | |
16503 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16504 | #endif | |
16505 | } | |
16506 | return resultobj; | |
16507 | fail: | |
16508 | return NULL; | |
d14a1e28 RD |
16509 | } |
16510 | ||
16511 | ||
0085ce49 RD |
16512 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16513 | PyObject *resultobj = 0; | |
16514 | wxString *arg1 = 0 ; | |
16515 | bool temp1 = false ; | |
16516 | PyObject * obj0 = 0 ; | |
16517 | char * kwnames[] = { | |
16518 | (char *) "prefix", NULL | |
16519 | }; | |
16520 | ||
16521 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
16522 | { | |
16523 | arg1 = wxString_in_helper(obj0); | |
16524 | if (arg1 == NULL) SWIG_fail; | |
16525 | temp1 = true; | |
16526 | } | |
16527 | { | |
16528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16529 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
16530 | wxPyEndAllowThreads(__tstate); | |
16531 | if (PyErr_Occurred()) SWIG_fail; | |
16532 | } | |
16533 | resultobj = SWIG_Py_Void(); | |
16534 | { | |
16535 | if (temp1) | |
16536 | delete arg1; | |
16537 | } | |
16538 | return resultobj; | |
16539 | fail: | |
16540 | { | |
16541 | if (temp1) | |
16542 | delete arg1; | |
16543 | } | |
16544 | return NULL; | |
16545 | } | |
16546 | ||
16547 | ||
16548 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16549 | PyObject *resultobj = 0; | |
16550 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16551 | wxString *arg2 = 0 ; | |
16552 | bool result; | |
16553 | void *argp1 = 0 ; | |
16554 | int res1 = 0 ; | |
16555 | bool temp2 = false ; | |
16556 | PyObject * obj0 = 0 ; | |
16557 | PyObject * obj1 = 0 ; | |
16558 | char * kwnames[] = { | |
ddeca22c | 16559 | (char *) "self",(char *) "domain", NULL |
0085ce49 RD |
16560 | }; |
16561 | ||
16562 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16563 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16564 | if (!SWIG_IsOK(res1)) { | |
16565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16566 | } | |
16567 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16568 | { | |
16569 | arg2 = wxString_in_helper(obj1); | |
16570 | if (arg2 == NULL) SWIG_fail; | |
16571 | temp2 = true; | |
16572 | } | |
16573 | { | |
16574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16575 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
16576 | wxPyEndAllowThreads(__tstate); | |
16577 | if (PyErr_Occurred()) SWIG_fail; | |
16578 | } | |
16579 | { | |
16580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16581 | } | |
16582 | { | |
16583 | if (temp2) | |
16584 | delete arg2; | |
16585 | } | |
16586 | return resultobj; | |
16587 | fail: | |
16588 | { | |
16589 | if (temp2) | |
16590 | delete arg2; | |
16591 | } | |
16592 | return NULL; | |
16593 | } | |
16594 | ||
16595 | ||
33d6fd3b RD |
16596 | SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16597 | PyObject *resultobj = 0; | |
16598 | int arg1 ; | |
16599 | bool result; | |
16600 | int val1 ; | |
16601 | int ecode1 = 0 ; | |
16602 | PyObject * obj0 = 0 ; | |
16603 | char * kwnames[] = { | |
16604 | (char *) "lang", NULL | |
16605 | }; | |
16606 | ||
16607 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail; | |
16608 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16609 | if (!SWIG_IsOK(ecode1)) { | |
16610 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'"); | |
16611 | } | |
16612 | arg1 = static_cast< int >(val1); | |
16613 | { | |
16614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16615 | result = (bool)wxLocale::IsAvailable(arg1); | |
16616 | wxPyEndAllowThreads(__tstate); | |
16617 | if (PyErr_Occurred()) SWIG_fail; | |
16618 | } | |
16619 | { | |
16620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16621 | } | |
16622 | return resultobj; | |
16623 | fail: | |
16624 | return NULL; | |
16625 | } | |
16626 | ||
16627 | ||
0085ce49 RD |
16628 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16629 | PyObject *resultobj = 0; | |
16630 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16631 | wxString *arg2 = 0 ; | |
16632 | bool result; | |
16633 | void *argp1 = 0 ; | |
16634 | int res1 = 0 ; | |
16635 | bool temp2 = false ; | |
16636 | PyObject * obj0 = 0 ; | |
16637 | PyObject * obj1 = 0 ; | |
16638 | char * kwnames[] = { | |
ddeca22c | 16639 | (char *) "self",(char *) "domain", NULL |
0085ce49 RD |
16640 | }; |
16641 | ||
16642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
16643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16644 | if (!SWIG_IsOK(res1)) { | |
16645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16646 | } | |
16647 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16648 | { | |
16649 | arg2 = wxString_in_helper(obj1); | |
16650 | if (arg2 == NULL) SWIG_fail; | |
16651 | temp2 = true; | |
16652 | } | |
16653 | { | |
16654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16655 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
16656 | wxPyEndAllowThreads(__tstate); | |
16657 | if (PyErr_Occurred()) SWIG_fail; | |
16658 | } | |
16659 | { | |
16660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16661 | } | |
16662 | { | |
16663 | if (temp2) | |
16664 | delete arg2; | |
16665 | } | |
16666 | return resultobj; | |
16667 | fail: | |
16668 | { | |
16669 | if (temp2) | |
16670 | delete arg2; | |
16671 | } | |
16672 | return NULL; | |
d14a1e28 RD |
16673 | } |
16674 | ||
16675 | ||
0085ce49 RD |
16676 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16677 | PyObject *resultobj = 0; | |
16678 | int arg1 ; | |
16679 | wxLanguageInfo *result = 0 ; | |
16680 | int val1 ; | |
16681 | int ecode1 = 0 ; | |
16682 | PyObject * obj0 = 0 ; | |
16683 | char * kwnames[] = { | |
16684 | (char *) "lang", NULL | |
16685 | }; | |
16686 | ||
16687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16688 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16689 | if (!SWIG_IsOK(ecode1)) { | |
16690 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
16691 | } | |
16692 | arg1 = static_cast< int >(val1); | |
16693 | { | |
16694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16695 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
16696 | wxPyEndAllowThreads(__tstate); | |
16697 | if (PyErr_Occurred()) SWIG_fail; | |
16698 | } | |
16699 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16700 | return resultobj; | |
16701 | fail: | |
16702 | return NULL; | |
16703 | } | |
16704 | ||
16705 | ||
16706 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16707 | PyObject *resultobj = 0; | |
16708 | int arg1 ; | |
16709 | wxString result; | |
16710 | int val1 ; | |
16711 | int ecode1 = 0 ; | |
16712 | PyObject * obj0 = 0 ; | |
16713 | char * kwnames[] = { | |
16714 | (char *) "lang", NULL | |
16715 | }; | |
16716 | ||
16717 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
16718 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16719 | if (!SWIG_IsOK(ecode1)) { | |
16720 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
16721 | } | |
16722 | arg1 = static_cast< int >(val1); | |
16723 | { | |
16724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16725 | result = wxLocale::GetLanguageName(arg1); | |
16726 | wxPyEndAllowThreads(__tstate); | |
16727 | if (PyErr_Occurred()) SWIG_fail; | |
16728 | } | |
16729 | { | |
16730 | #if wxUSE_UNICODE | |
16731 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16732 | #else | |
16733 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16734 | #endif | |
16735 | } | |
16736 | return resultobj; | |
16737 | fail: | |
16738 | return NULL; | |
d14a1e28 RD |
16739 | } |
16740 | ||
16741 | ||
0085ce49 RD |
16742 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16743 | PyObject *resultobj = 0; | |
16744 | wxString *arg1 = 0 ; | |
16745 | wxLanguageInfo *result = 0 ; | |
16746 | bool temp1 = false ; | |
16747 | PyObject * obj0 = 0 ; | |
16748 | char * kwnames[] = { | |
16749 | (char *) "locale", NULL | |
16750 | }; | |
16751 | ||
16752 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16753 | { | |
16754 | arg1 = wxString_in_helper(obj0); | |
16755 | if (arg1 == NULL) SWIG_fail; | |
16756 | temp1 = true; | |
16757 | } | |
16758 | { | |
16759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 RD |
16760 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
16761 | wxPyEndAllowThreads(__tstate); | |
16762 | if (PyErr_Occurred()) SWIG_fail; | |
16763 | } | |
16764 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16765 | { | |
16766 | if (temp1) | |
16767 | delete arg1; | |
16768 | } | |
16769 | return resultobj; | |
16770 | fail: | |
16771 | { | |
16772 | if (temp1) | |
16773 | delete arg1; | |
16774 | } | |
16775 | return NULL; | |
16776 | } | |
16777 | ||
16778 | ||
16779 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16780 | PyObject *resultobj = 0; | |
16781 | wxLanguageInfo *arg1 = 0 ; | |
16782 | void *argp1 = 0 ; | |
16783 | int res1 = 0 ; | |
16784 | PyObject * obj0 = 0 ; | |
16785 | char * kwnames[] = { | |
16786 | (char *) "info", NULL | |
16787 | }; | |
16788 | ||
16789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
16790 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
16791 | if (!SWIG_IsOK(res1)) { | |
16792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16793 | } | |
16794 | if (!argp1) { | |
16795 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16796 | } | |
16797 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16798 | { | |
16799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16800 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
16801 | wxPyEndAllowThreads(__tstate); | |
16802 | if (PyErr_Occurred()) SWIG_fail; | |
16803 | } | |
16804 | resultobj = SWIG_Py_Void(); | |
16805 | return resultobj; | |
16806 | fail: | |
16807 | return NULL; | |
16808 | } | |
16809 | ||
16810 | ||
16811 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16812 | PyObject *resultobj = 0; | |
16813 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16814 | wxString *arg2 = 0 ; | |
16815 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16816 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16817 | wxString result; | |
16818 | void *argp1 = 0 ; | |
16819 | int res1 = 0 ; | |
16820 | bool temp2 = false ; | |
16821 | bool temp3 = false ; | |
16822 | PyObject * obj0 = 0 ; | |
16823 | PyObject * obj1 = 0 ; | |
16824 | PyObject * obj2 = 0 ; | |
16825 | char * kwnames[] = { | |
ddeca22c | 16826 | (char *) "self",(char *) "origString",(char *) "domain", NULL |
fc46b7f3 RD |
16827 | }; |
16828 | ||
16829 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16830 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16831 | if (!SWIG_IsOK(res1)) { | |
16832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16833 | } | |
16834 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16835 | { | |
16836 | arg2 = wxString_in_helper(obj1); | |
16837 | if (arg2 == NULL) SWIG_fail; | |
16838 | temp2 = true; | |
16839 | } | |
16840 | if (obj2) { | |
16841 | { | |
16842 | arg3 = wxString_in_helper(obj2); | |
16843 | if (arg3 == NULL) SWIG_fail; | |
16844 | temp3 = true; | |
16845 | } | |
16846 | } | |
16847 | { | |
16848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16849 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
16850 | wxPyEndAllowThreads(__tstate); | |
16851 | if (PyErr_Occurred()) SWIG_fail; | |
16852 | } | |
16853 | { | |
16854 | #if wxUSE_UNICODE | |
16855 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16856 | #else | |
16857 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16858 | #endif | |
16859 | } | |
16860 | { | |
16861 | if (temp2) | |
16862 | delete arg2; | |
16863 | } | |
16864 | { | |
16865 | if (temp3) | |
16866 | delete arg3; | |
16867 | } | |
16868 | return resultobj; | |
16869 | fail: | |
16870 | { | |
16871 | if (temp2) | |
16872 | delete arg2; | |
16873 | } | |
16874 | { | |
16875 | if (temp3) | |
16876 | delete arg3; | |
16877 | } | |
16878 | return NULL; | |
16879 | } | |
16880 | ||
16881 | ||
16882 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16883 | PyObject *resultobj = 0; | |
16884 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16885 | wxString *result = 0 ; | |
16886 | void *argp1 = 0 ; | |
16887 | int res1 = 0 ; | |
16888 | PyObject *swig_obj[1] ; | |
16889 | ||
16890 | if (!args) SWIG_fail; | |
16891 | swig_obj[0] = args; | |
16892 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16893 | if (!SWIG_IsOK(res1)) { | |
16894 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16895 | } | |
16896 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16897 | { | |
16898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16899 | { | |
16900 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
16901 | result = (wxString *) &_result_ref; | |
16902 | } | |
16903 | wxPyEndAllowThreads(__tstate); | |
16904 | if (PyErr_Occurred()) SWIG_fail; | |
16905 | } | |
16906 | { | |
16907 | #if wxUSE_UNICODE | |
16908 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16909 | #else | |
16910 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16911 | #endif | |
16912 | } | |
16913 | return resultobj; | |
16914 | fail: | |
16915 | return NULL; | |
16916 | } | |
16917 | ||
16918 | ||
16919 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16920 | PyObject *obj; | |
16921 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16922 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
16923 | return SWIG_Py_Void(); | |
16924 | } | |
16925 | ||
16926 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16927 | return SWIG_Python_InitShadowInstance(args); | |
16928 | } | |
16929 | ||
16930 | SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16931 | PyObject *resultobj = 0; | |
16932 | int arg1 = (int) -1 ; | |
16933 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16934 | wxPyLocale *result = 0 ; | |
16935 | int val1 ; | |
16936 | int ecode1 = 0 ; | |
16937 | int val2 ; | |
16938 | int ecode2 = 0 ; | |
16939 | PyObject * obj0 = 0 ; | |
16940 | PyObject * obj1 = 0 ; | |
16941 | char * kwnames[] = { | |
16942 | (char *) "language",(char *) "flags", NULL | |
16943 | }; | |
16944 | ||
16945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail; | |
16946 | if (obj0) { | |
16947 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16948 | if (!SWIG_IsOK(ecode1)) { | |
16949 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'"); | |
16950 | } | |
16951 | arg1 = static_cast< int >(val1); | |
16952 | } | |
16953 | if (obj1) { | |
16954 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16955 | if (!SWIG_IsOK(ecode2)) { | |
16956 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'"); | |
16957 | } | |
16958 | arg2 = static_cast< int >(val2); | |
16959 | } | |
16960 | { | |
16961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16962 | result = (wxPyLocale *)new_wxPyLocale(arg1,arg2); | |
16963 | wxPyEndAllowThreads(__tstate); | |
16964 | if (PyErr_Occurred()) SWIG_fail; | |
16965 | } | |
16966 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 ); | |
16967 | return resultobj; | |
16968 | fail: | |
16969 | return NULL; | |
16970 | } | |
16971 | ||
16972 | ||
16973 | SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16974 | PyObject *resultobj = 0; | |
16975 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; | |
16976 | void *argp1 = 0 ; | |
16977 | int res1 = 0 ; | |
16978 | PyObject *swig_obj[1] ; | |
16979 | ||
16980 | if (!args) SWIG_fail; | |
16981 | swig_obj[0] = args; | |
16982 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 ); | |
16983 | if (!SWIG_IsOK(res1)) { | |
16984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'"); | |
16985 | } | |
16986 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16987 | { | |
16988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16989 | delete arg1; | |
16990 | ||
0085ce49 RD |
16991 | wxPyEndAllowThreads(__tstate); |
16992 | if (PyErr_Occurred()) SWIG_fail; | |
16993 | } | |
fc46b7f3 | 16994 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
16995 | return resultobj; |
16996 | fail: | |
0085ce49 | 16997 | return NULL; |
d14a1e28 RD |
16998 | } |
16999 | ||
17000 | ||
fc46b7f3 | 17001 | SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 17002 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17003 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17004 | PyObject *arg2 = (PyObject *) 0 ; | |
17005 | PyObject *arg3 = (PyObject *) 0 ; | |
0085ce49 RD |
17006 | void *argp1 = 0 ; |
17007 | int res1 = 0 ; | |
17008 | PyObject * obj0 = 0 ; | |
fc46b7f3 RD |
17009 | PyObject * obj1 = 0 ; |
17010 | PyObject * obj2 = 0 ; | |
0085ce49 | 17011 | char * kwnames[] = { |
fc46b7f3 | 17012 | (char *) "self",(char *) "self",(char *) "_class", NULL |
0085ce49 RD |
17013 | }; |
17014 | ||
fc46b7f3 RD |
17015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
17016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 17017 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 17018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'"); |
0085ce49 | 17019 | } |
fc46b7f3 RD |
17020 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
17021 | arg2 = obj1; | |
17022 | arg3 = obj2; | |
0085ce49 RD |
17023 | { |
17024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17025 | (arg1)->_setCallbackInfo(arg2,arg3); |
0085ce49 RD |
17026 | wxPyEndAllowThreads(__tstate); |
17027 | if (PyErr_Occurred()) SWIG_fail; | |
17028 | } | |
17029 | resultobj = SWIG_Py_Void(); | |
17030 | return resultobj; | |
17031 | fail: | |
17032 | return NULL; | |
17033 | } | |
17034 | ||
17035 | ||
fc46b7f3 | 17036 | SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 17037 | PyObject *resultobj = 0; |
fc46b7f3 | 17038 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
ddeca22c RD |
17039 | wxString *arg2 = 0 ; |
17040 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17041 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17042 | wxString *result = 0 ; | |
0085ce49 RD |
17043 | void *argp1 = 0 ; |
17044 | int res1 = 0 ; | |
ddeca22c RD |
17045 | bool temp2 = false ; |
17046 | bool temp3 = false ; | |
0085ce49 RD |
17047 | PyObject * obj0 = 0 ; |
17048 | PyObject * obj1 = 0 ; | |
17049 | PyObject * obj2 = 0 ; | |
17050 | char * kwnames[] = { | |
ddeca22c | 17051 | (char *) "self",(char *) "origString",(char *) "domain", NULL |
0085ce49 RD |
17052 | }; |
17053 | ||
fc46b7f3 RD |
17054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
17055 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 17056 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 17057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
0085ce49 | 17058 | } |
fc46b7f3 | 17059 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
ddeca22c RD |
17060 | { |
17061 | arg2 = wxString_in_helper(obj1); | |
17062 | if (arg2 == NULL) SWIG_fail; | |
17063 | temp2 = true; | |
0085ce49 RD |
17064 | } |
17065 | if (obj2) { | |
ddeca22c RD |
17066 | { |
17067 | arg3 = wxString_in_helper(obj2); | |
17068 | if (arg3 == NULL) SWIG_fail; | |
17069 | temp3 = true; | |
b6294124 | 17070 | } |
0085ce49 RD |
17071 | } |
17072 | { | |
17073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ddeca22c RD |
17074 | { |
17075 | wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetSingularString((wxString const &)*arg2,(wxString const &)*arg3); | |
17076 | result = (wxString *) &_result_ref; | |
17077 | } | |
0085ce49 RD |
17078 | wxPyEndAllowThreads(__tstate); |
17079 | if (PyErr_Occurred()) SWIG_fail; | |
17080 | } | |
ddeca22c RD |
17081 | { |
17082 | #if wxUSE_UNICODE | |
17083 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17084 | #else | |
17085 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17086 | #endif | |
17087 | } | |
17088 | { | |
17089 | if (temp2) | |
17090 | delete arg2; | |
17091 | } | |
17092 | { | |
17093 | if (temp3) | |
17094 | delete arg3; | |
17095 | } | |
0085ce49 RD |
17096 | return resultobj; |
17097 | fail: | |
ddeca22c RD |
17098 | { |
17099 | if (temp2) | |
17100 | delete arg2; | |
17101 | } | |
17102 | { | |
17103 | if (temp3) | |
17104 | delete arg3; | |
17105 | } | |
0085ce49 | 17106 | return NULL; |
b6294124 RD |
17107 | } |
17108 | ||
17109 | ||
fc46b7f3 | 17110 | SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 17111 | PyObject *resultobj = 0; |
fc46b7f3 | 17112 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
ddeca22c RD |
17113 | wxString *arg2 = 0 ; |
17114 | wxString *arg3 = 0 ; | |
fc46b7f3 | 17115 | size_t arg4 ; |
ddeca22c RD |
17116 | wxString const &arg5_defvalue = wxPyEmptyString ; |
17117 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
17118 | wxString *result = 0 ; | |
0085ce49 RD |
17119 | void *argp1 = 0 ; |
17120 | int res1 = 0 ; | |
ddeca22c RD |
17121 | bool temp2 = false ; |
17122 | bool temp3 = false ; | |
fc46b7f3 RD |
17123 | size_t val4 ; |
17124 | int ecode4 = 0 ; | |
ddeca22c | 17125 | bool temp5 = false ; |
fc46b7f3 RD |
17126 | PyObject * obj0 = 0 ; |
17127 | PyObject * obj1 = 0 ; | |
17128 | PyObject * obj2 = 0 ; | |
17129 | PyObject * obj3 = 0 ; | |
17130 | PyObject * obj4 = 0 ; | |
17131 | char * kwnames[] = { | |
ddeca22c | 17132 | (char *) "self",(char *) "origString",(char *) "origString2",(char *) "n",(char *) "domain", NULL |
fc46b7f3 | 17133 | }; |
0085ce49 | 17134 | |
fc46b7f3 RD |
17135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
17136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 17137 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 RD |
17138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
17139 | } | |
17140 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
ddeca22c RD |
17141 | { |
17142 | arg2 = wxString_in_helper(obj1); | |
17143 | if (arg2 == NULL) SWIG_fail; | |
17144 | temp2 = true; | |
fc46b7f3 | 17145 | } |
ddeca22c RD |
17146 | { |
17147 | arg3 = wxString_in_helper(obj2); | |
17148 | if (arg3 == NULL) SWIG_fail; | |
17149 | temp3 = true; | |
fc46b7f3 | 17150 | } |
fc46b7f3 RD |
17151 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); |
17152 | if (!SWIG_IsOK(ecode4)) { | |
17153 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'"); | |
17154 | } | |
17155 | arg4 = static_cast< size_t >(val4); | |
17156 | if (obj4) { | |
ddeca22c RD |
17157 | { |
17158 | arg5 = wxString_in_helper(obj4); | |
17159 | if (arg5 == NULL) SWIG_fail; | |
17160 | temp5 = true; | |
fc46b7f3 | 17161 | } |
0085ce49 | 17162 | } |
0085ce49 RD |
17163 | { |
17164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ddeca22c RD |
17165 | { |
17166 | wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetPluralString((wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
17167 | result = (wxString *) &_result_ref; | |
17168 | } | |
0085ce49 RD |
17169 | wxPyEndAllowThreads(__tstate); |
17170 | if (PyErr_Occurred()) SWIG_fail; | |
17171 | } | |
ddeca22c RD |
17172 | { |
17173 | #if wxUSE_UNICODE | |
17174 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17175 | #else | |
17176 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17177 | #endif | |
17178 | } | |
17179 | { | |
17180 | if (temp2) | |
17181 | delete arg2; | |
17182 | } | |
17183 | { | |
17184 | if (temp3) | |
17185 | delete arg3; | |
17186 | } | |
17187 | { | |
17188 | if (temp5) | |
17189 | delete arg5; | |
17190 | } | |
0085ce49 RD |
17191 | return resultobj; |
17192 | fail: | |
ddeca22c RD |
17193 | { |
17194 | if (temp2) | |
17195 | delete arg2; | |
17196 | } | |
17197 | { | |
17198 | if (temp3) | |
17199 | delete arg3; | |
17200 | } | |
17201 | { | |
17202 | if (temp5) | |
17203 | delete arg5; | |
17204 | } | |
0085ce49 | 17205 | return NULL; |
d14a1e28 RD |
17206 | } |
17207 | ||
17208 | ||
fc46b7f3 | 17209 | SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
17210 | PyObject *obj; |
17211 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 17212 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj)); |
0085ce49 | 17213 | return SWIG_Py_Void(); |
d14a1e28 RD |
17214 | } |
17215 | ||
fc46b7f3 | 17216 | SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
17217 | return SWIG_Python_InitShadowInstance(args); |
17218 | } | |
d14a1e28 | 17219 | |
0085ce49 RD |
17220 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17221 | PyObject *resultobj = 0; | |
17222 | wxLocale *result = 0 ; | |
17223 | ||
17224 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
17225 | { | |
17226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17227 | result = (wxLocale *)wxGetLocale(); | |
17228 | wxPyEndAllowThreads(__tstate); | |
17229 | if (PyErr_Occurred()) SWIG_fail; | |
17230 | } | |
17231 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17232 | return resultobj; | |
17233 | fail: | |
17234 | return NULL; | |
d14a1e28 RD |
17235 | } |
17236 | ||
17237 | ||
0085ce49 RD |
17238 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17239 | PyObject *resultobj = 0; | |
17240 | wxString *arg1 = 0 ; | |
17241 | wxString result; | |
17242 | bool temp1 = false ; | |
17243 | ||
17244 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
17245 | { | |
17246 | arg1 = wxString_in_helper(swig_obj[0]); | |
17247 | if (arg1 == NULL) SWIG_fail; | |
17248 | temp1 = true; | |
17249 | } | |
17250 | { | |
17251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17252 | result = wxGetTranslation((wxString const &)*arg1); | |
17253 | wxPyEndAllowThreads(__tstate); | |
17254 | if (PyErr_Occurred()) SWIG_fail; | |
17255 | } | |
17256 | { | |
093d3ff1 | 17257 | #if wxUSE_UNICODE |
0085ce49 | 17258 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17259 | #else |
0085ce49 | 17260 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17261 | #endif |
0085ce49 RD |
17262 | } |
17263 | { | |
17264 | if (temp1) | |
17265 | delete arg1; | |
17266 | } | |
17267 | return resultobj; | |
17268 | fail: | |
17269 | { | |
17270 | if (temp1) | |
17271 | delete arg1; | |
17272 | } | |
17273 | return NULL; | |
b6294124 RD |
17274 | } |
17275 | ||
17276 | ||
0085ce49 | 17277 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
fc46b7f3 RD |
17278 | PyObject *resultobj = 0; |
17279 | wxString *arg1 = 0 ; | |
17280 | wxString *arg2 = 0 ; | |
17281 | wxString result; | |
17282 | bool temp1 = false ; | |
17283 | bool temp2 = false ; | |
17284 | ||
17285 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
17286 | { | |
17287 | arg1 = wxString_in_helper(swig_obj[0]); | |
17288 | if (arg1 == NULL) SWIG_fail; | |
17289 | temp1 = true; | |
17290 | } | |
17291 | { | |
17292 | arg2 = wxString_in_helper(swig_obj[1]); | |
17293 | if (arg2 == NULL) SWIG_fail; | |
17294 | temp2 = true; | |
17295 | } | |
17296 | { | |
17297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17298 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2); | |
17299 | wxPyEndAllowThreads(__tstate); | |
17300 | if (PyErr_Occurred()) SWIG_fail; | |
17301 | } | |
17302 | { | |
17303 | #if wxUSE_UNICODE | |
17304 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17305 | #else | |
17306 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17307 | #endif | |
17308 | } | |
17309 | { | |
17310 | if (temp1) | |
17311 | delete arg1; | |
17312 | } | |
17313 | { | |
17314 | if (temp2) | |
17315 | delete arg2; | |
17316 | } | |
17317 | return resultobj; | |
17318 | fail: | |
17319 | { | |
17320 | if (temp1) | |
17321 | delete arg1; | |
17322 | } | |
17323 | { | |
17324 | if (temp2) | |
17325 | delete arg2; | |
17326 | } | |
17327 | return NULL; | |
17328 | } | |
17329 | ||
17330 | ||
17331 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
0085ce49 RD |
17332 | PyObject *resultobj = 0; |
17333 | wxString *arg1 = 0 ; | |
17334 | wxString *arg2 = 0 ; | |
17335 | size_t arg3 ; | |
17336 | wxString result; | |
17337 | bool temp1 = false ; | |
17338 | bool temp2 = false ; | |
17339 | size_t val3 ; | |
17340 | int ecode3 = 0 ; | |
17341 | ||
17342 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
17343 | { | |
17344 | arg1 = wxString_in_helper(swig_obj[0]); | |
17345 | if (arg1 == NULL) SWIG_fail; | |
17346 | temp1 = true; | |
17347 | } | |
17348 | { | |
17349 | arg2 = wxString_in_helper(swig_obj[1]); | |
17350 | if (arg2 == NULL) SWIG_fail; | |
17351 | temp2 = true; | |
17352 | } | |
17353 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17354 | if (!SWIG_IsOK(ecode3)) { | |
17355 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17356 | } | |
17357 | arg3 = static_cast< size_t >(val3); | |
17358 | { | |
17359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17360 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
17361 | wxPyEndAllowThreads(__tstate); | |
17362 | if (PyErr_Occurred()) SWIG_fail; | |
17363 | } | |
17364 | { | |
17365 | #if wxUSE_UNICODE | |
17366 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17367 | #else | |
17368 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17369 | #endif | |
17370 | } | |
17371 | { | |
17372 | if (temp1) | |
17373 | delete arg1; | |
17374 | } | |
17375 | { | |
17376 | if (temp2) | |
17377 | delete arg2; | |
17378 | } | |
17379 | return resultobj; | |
17380 | fail: | |
17381 | { | |
17382 | if (temp1) | |
17383 | delete arg1; | |
17384 | } | |
17385 | { | |
17386 | if (temp2) | |
17387 | delete arg2; | |
17388 | } | |
17389 | return NULL; | |
d14a1e28 RD |
17390 | } |
17391 | ||
17392 | ||
fc46b7f3 RD |
17393 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17394 | PyObject *resultobj = 0; | |
17395 | wxString *arg1 = 0 ; | |
17396 | wxString *arg2 = 0 ; | |
17397 | size_t arg3 ; | |
17398 | wxString *arg4 = 0 ; | |
17399 | wxString result; | |
17400 | bool temp1 = false ; | |
17401 | bool temp2 = false ; | |
17402 | size_t val3 ; | |
17403 | int ecode3 = 0 ; | |
17404 | bool temp4 = false ; | |
17405 | ||
17406 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; | |
17407 | { | |
17408 | arg1 = wxString_in_helper(swig_obj[0]); | |
17409 | if (arg1 == NULL) SWIG_fail; | |
17410 | temp1 = true; | |
17411 | } | |
17412 | { | |
17413 | arg2 = wxString_in_helper(swig_obj[1]); | |
17414 | if (arg2 == NULL) SWIG_fail; | |
17415 | temp2 = true; | |
17416 | } | |
17417 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17418 | if (!SWIG_IsOK(ecode3)) { | |
17419 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17420 | } | |
17421 | arg3 = static_cast< size_t >(val3); | |
17422 | { | |
17423 | arg4 = wxString_in_helper(swig_obj[3]); | |
17424 | if (arg4 == NULL) SWIG_fail; | |
17425 | temp4 = true; | |
17426 | } | |
17427 | { | |
17428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17429 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4); | |
17430 | wxPyEndAllowThreads(__tstate); | |
17431 | if (PyErr_Occurred()) SWIG_fail; | |
17432 | } | |
17433 | { | |
17434 | #if wxUSE_UNICODE | |
17435 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17436 | #else | |
17437 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17438 | #endif | |
17439 | } | |
17440 | { | |
17441 | if (temp1) | |
17442 | delete arg1; | |
17443 | } | |
17444 | { | |
17445 | if (temp2) | |
17446 | delete arg2; | |
17447 | } | |
17448 | { | |
17449 | if (temp4) | |
17450 | delete arg4; | |
17451 | } | |
17452 | return resultobj; | |
17453 | fail: | |
17454 | { | |
17455 | if (temp1) | |
17456 | delete arg1; | |
17457 | } | |
17458 | { | |
17459 | if (temp2) | |
17460 | delete arg2; | |
17461 | } | |
17462 | { | |
17463 | if (temp4) | |
17464 | delete arg4; | |
17465 | } | |
17466 | return NULL; | |
17467 | } | |
17468 | ||
17469 | ||
0085ce49 RD |
17470 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
17471 | int argc; | |
fc46b7f3 | 17472 | PyObject *argv[5]; |
0085ce49 | 17473 | |
fc46b7f3 | 17474 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail; |
0085ce49 RD |
17475 | --argc; |
17476 | if (argc == 1) { | |
17477 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
17478 | } | |
fc46b7f3 | 17479 | if (argc == 2) { |
0085ce49 RD |
17480 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); |
17481 | } | |
fc46b7f3 RD |
17482 | if (argc == 3) { |
17483 | return _wrap_GetTranslation__SWIG_2(self, argc, argv); | |
17484 | } | |
17485 | if (argc == 4) { | |
17486 | return _wrap_GetTranslation__SWIG_3(self, argc, argv); | |
17487 | } | |
0085ce49 RD |
17488 | |
17489 | fail: | |
17490 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
17491 | return NULL; | |
d14a1e28 RD |
17492 | } |
17493 | ||
17494 | ||
0085ce49 RD |
17495 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17496 | PyObject *resultobj = 0; | |
17497 | wxEncodingConverter *result = 0 ; | |
17498 | ||
17499 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
17500 | { | |
17501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17502 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
17503 | wxPyEndAllowThreads(__tstate); | |
17504 | if (PyErr_Occurred()) SWIG_fail; | |
17505 | } | |
17506 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
17507 | return resultobj; | |
17508 | fail: | |
17509 | return NULL; | |
d14a1e28 RD |
17510 | } |
17511 | ||
17512 | ||
0085ce49 RD |
17513 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17514 | PyObject *resultobj = 0; | |
17515 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17516 | void *argp1 = 0 ; | |
17517 | int res1 = 0 ; | |
17518 | PyObject *swig_obj[1] ; | |
17519 | ||
17520 | if (!args) SWIG_fail; | |
17521 | swig_obj[0] = args; | |
17522 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
17523 | if (!SWIG_IsOK(res1)) { | |
17524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17525 | } | |
17526 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17527 | { | |
17528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17529 | delete arg1; | |
d14a1e28 | 17530 | |
0085ce49 RD |
17531 | wxPyEndAllowThreads(__tstate); |
17532 | if (PyErr_Occurred()) SWIG_fail; | |
17533 | } | |
17534 | resultobj = SWIG_Py_Void(); | |
17535 | return resultobj; | |
17536 | fail: | |
17537 | return NULL; | |
17538 | } | |
17539 | ||
17540 | ||
17541 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17542 | PyObject *resultobj = 0; | |
17543 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17544 | wxFontEncoding arg2 ; | |
17545 | wxFontEncoding arg3 ; | |
17546 | int arg4 = (int) wxCONVERT_STRICT ; | |
17547 | bool result; | |
17548 | void *argp1 = 0 ; | |
17549 | int res1 = 0 ; | |
17550 | int val2 ; | |
17551 | int ecode2 = 0 ; | |
17552 | int val3 ; | |
17553 | int ecode3 = 0 ; | |
17554 | int val4 ; | |
17555 | int ecode4 = 0 ; | |
17556 | PyObject * obj0 = 0 ; | |
17557 | PyObject * obj1 = 0 ; | |
17558 | PyObject * obj2 = 0 ; | |
17559 | PyObject * obj3 = 0 ; | |
17560 | char * kwnames[] = { | |
17561 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
17562 | }; | |
17563 | ||
17564 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17565 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17566 | if (!SWIG_IsOK(res1)) { | |
17567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17568 | } | |
17569 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17570 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17571 | if (!SWIG_IsOK(ecode2)) { | |
17572 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17573 | } | |
17574 | arg2 = static_cast< wxFontEncoding >(val2); | |
17575 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17576 | if (!SWIG_IsOK(ecode3)) { | |
17577 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
17578 | } | |
17579 | arg3 = static_cast< wxFontEncoding >(val3); | |
17580 | if (obj3) { | |
17581 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17582 | if (!SWIG_IsOK(ecode4)) { | |
17583 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
17584 | } | |
17585 | arg4 = static_cast< int >(val4); | |
17586 | } | |
17587 | { | |
17588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17589 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
17590 | wxPyEndAllowThreads(__tstate); | |
17591 | if (PyErr_Occurred()) SWIG_fail; | |
17592 | } | |
17593 | { | |
17594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17595 | } | |
17596 | return resultobj; | |
17597 | fail: | |
17598 | return NULL; | |
17599 | } | |
17600 | ||
17601 | ||
17602 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17603 | PyObject *resultobj = 0; | |
17604 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17605 | wxString *arg2 = 0 ; | |
17606 | wxString result; | |
17607 | void *argp1 = 0 ; | |
17608 | int res1 = 0 ; | |
17609 | bool temp2 = false ; | |
17610 | PyObject * obj0 = 0 ; | |
17611 | PyObject * obj1 = 0 ; | |
17612 | char * kwnames[] = { | |
17613 | (char *) "self",(char *) "input", NULL | |
17614 | }; | |
17615 | ||
17616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17618 | if (!SWIG_IsOK(res1)) { | |
17619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17620 | } | |
17621 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17622 | { | |
17623 | arg2 = wxString_in_helper(obj1); | |
17624 | if (arg2 == NULL) SWIG_fail; | |
17625 | temp2 = true; | |
17626 | } | |
17627 | { | |
17628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17629 | result = (arg1)->Convert((wxString const &)*arg2); | |
17630 | wxPyEndAllowThreads(__tstate); | |
17631 | if (PyErr_Occurred()) SWIG_fail; | |
17632 | } | |
17633 | { | |
17634 | #if wxUSE_UNICODE | |
17635 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17636 | #else | |
17637 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17638 | #endif | |
17639 | } | |
17640 | { | |
17641 | if (temp2) | |
17642 | delete arg2; | |
17643 | } | |
17644 | return resultobj; | |
17645 | fail: | |
17646 | { | |
17647 | if (temp2) | |
17648 | delete arg2; | |
17649 | } | |
17650 | return NULL; | |
17651 | } | |
17652 | ||
17653 | ||
17654 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17655 | PyObject *resultobj = 0; | |
17656 | wxFontEncoding arg1 ; | |
17657 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
17658 | wxFontEncodingArray result; | |
17659 | int val1 ; | |
17660 | int ecode1 = 0 ; | |
17661 | int val2 ; | |
17662 | int ecode2 = 0 ; | |
17663 | PyObject * obj0 = 0 ; | |
17664 | PyObject * obj1 = 0 ; | |
17665 | char * kwnames[] = { | |
17666 | (char *) "enc",(char *) "platform", NULL | |
17667 | }; | |
17668 | ||
17669 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
17670 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17671 | if (!SWIG_IsOK(ecode1)) { | |
17672 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17673 | } | |
17674 | arg1 = static_cast< wxFontEncoding >(val1); | |
17675 | if (obj1) { | |
17676 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17677 | if (!SWIG_IsOK(ecode2)) { | |
17678 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
17679 | } | |
17680 | arg2 = static_cast< int >(val2); | |
17681 | } | |
17682 | { | |
17683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17684 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
17685 | wxPyEndAllowThreads(__tstate); | |
17686 | if (PyErr_Occurred()) SWIG_fail; | |
17687 | } | |
17688 | { | |
17689 | resultobj = PyList_New(0); | |
17690 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17691 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17692 | PyList_Append(resultobj, number); | |
17693 | Py_DECREF(number); | |
093d3ff1 | 17694 | } |
0085ce49 RD |
17695 | } |
17696 | return resultobj; | |
17697 | fail: | |
17698 | return NULL; | |
d14a1e28 RD |
17699 | } |
17700 | ||
17701 | ||
0085ce49 RD |
17702 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17703 | PyObject *resultobj = 0; | |
17704 | wxFontEncoding arg1 ; | |
17705 | wxFontEncodingArray result; | |
17706 | int val1 ; | |
17707 | int ecode1 = 0 ; | |
17708 | PyObject * obj0 = 0 ; | |
17709 | char * kwnames[] = { | |
17710 | (char *) "enc", NULL | |
17711 | }; | |
17712 | ||
17713 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
17714 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17715 | if (!SWIG_IsOK(ecode1)) { | |
17716 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17717 | } | |
17718 | arg1 = static_cast< wxFontEncoding >(val1); | |
17719 | { | |
17720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17721 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
17722 | wxPyEndAllowThreads(__tstate); | |
17723 | if (PyErr_Occurred()) SWIG_fail; | |
17724 | } | |
17725 | { | |
17726 | resultobj = PyList_New(0); | |
17727 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17728 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17729 | PyList_Append(resultobj, number); | |
17730 | Py_DECREF(number); | |
093d3ff1 | 17731 | } |
0085ce49 RD |
17732 | } |
17733 | return resultobj; | |
17734 | fail: | |
17735 | return NULL; | |
17736 | } | |
17737 | ||
17738 | ||
17739 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17740 | PyObject *resultobj = 0; | |
17741 | wxFontEncoding arg1 ; | |
17742 | wxFontEncoding arg2 ; | |
17743 | bool result; | |
17744 | int val1 ; | |
17745 | int ecode1 = 0 ; | |
17746 | int val2 ; | |
17747 | int ecode2 = 0 ; | |
17748 | PyObject * obj0 = 0 ; | |
17749 | PyObject * obj1 = 0 ; | |
17750 | char * kwnames[] = { | |
17751 | (char *) "encIn",(char *) "encOut", NULL | |
17752 | }; | |
17753 | ||
17754 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17755 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17756 | if (!SWIG_IsOK(ecode1)) { | |
17757 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17758 | } | |
17759 | arg1 = static_cast< wxFontEncoding >(val1); | |
17760 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17761 | if (!SWIG_IsOK(ecode2)) { | |
17762 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17763 | } | |
17764 | arg2 = static_cast< wxFontEncoding >(val2); | |
17765 | { | |
17766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17767 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
17768 | wxPyEndAllowThreads(__tstate); | |
17769 | if (PyErr_Occurred()) SWIG_fail; | |
17770 | } | |
17771 | { | |
17772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17773 | } | |
17774 | return resultobj; | |
17775 | fail: | |
17776 | return NULL; | |
d14a1e28 RD |
17777 | } |
17778 | ||
17779 | ||
0085ce49 RD |
17780 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17781 | PyObject *obj; | |
17782 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17783 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
17784 | return SWIG_Py_Void(); | |
d14a1e28 RD |
17785 | } |
17786 | ||
0085ce49 RD |
17787 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17788 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
17789 | } |
17790 | ||
0085ce49 RD |
17791 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17792 | PyObject *resultobj = 0; | |
17793 | wxDC *arg1 = (wxDC *) 0 ; | |
17794 | void *argp1 = 0 ; | |
17795 | int res1 = 0 ; | |
17796 | PyObject *swig_obj[1] ; | |
17797 | ||
17798 | if (!args) SWIG_fail; | |
17799 | swig_obj[0] = args; | |
17800 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
17801 | if (!SWIG_IsOK(res1)) { | |
17802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17803 | } | |
17804 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17805 | { | |
17806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17807 | delete arg1; | |
d14a1e28 | 17808 | |
0085ce49 RD |
17809 | wxPyEndAllowThreads(__tstate); |
17810 | if (PyErr_Occurred()) SWIG_fail; | |
17811 | } | |
17812 | resultobj = SWIG_Py_Void(); | |
17813 | return resultobj; | |
17814 | fail: | |
17815 | return NULL; | |
17816 | } | |
17817 | ||
17818 | ||
17819 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17820 | PyObject *resultobj = 0; | |
17821 | wxDC *arg1 = (wxDC *) 0 ; | |
17822 | int arg2 ; | |
17823 | int arg3 ; | |
17824 | wxColour *arg4 = 0 ; | |
17825 | int arg5 = (int) wxFLOOD_SURFACE ; | |
17826 | bool result; | |
17827 | void *argp1 = 0 ; | |
17828 | int res1 = 0 ; | |
17829 | int val2 ; | |
17830 | int ecode2 = 0 ; | |
17831 | int val3 ; | |
17832 | int ecode3 = 0 ; | |
17833 | wxColour temp4 ; | |
17834 | int val5 ; | |
17835 | int ecode5 = 0 ; | |
17836 | PyObject * obj0 = 0 ; | |
17837 | PyObject * obj1 = 0 ; | |
17838 | PyObject * obj2 = 0 ; | |
17839 | PyObject * obj3 = 0 ; | |
17840 | PyObject * obj4 = 0 ; | |
17841 | char * kwnames[] = { | |
17842 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
17843 | }; | |
17844 | ||
17845 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17846 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17847 | if (!SWIG_IsOK(res1)) { | |
17848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17849 | } | |
17850 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17851 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17852 | if (!SWIG_IsOK(ecode2)) { | |
17853 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
17854 | } | |
17855 | arg2 = static_cast< int >(val2); | |
17856 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17857 | if (!SWIG_IsOK(ecode3)) { | |
17858 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
17859 | } | |
17860 | arg3 = static_cast< int >(val3); | |
17861 | { | |
17862 | arg4 = &temp4; | |
17863 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17864 | } | |
17865 | if (obj4) { | |
17866 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17867 | if (!SWIG_IsOK(ecode5)) { | |
17868 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
17869 | } | |
17870 | arg5 = static_cast< int >(val5); | |
17871 | } | |
17872 | { | |
17873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17874 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
17875 | wxPyEndAllowThreads(__tstate); | |
17876 | if (PyErr_Occurred()) SWIG_fail; | |
17877 | } | |
17878 | { | |
17879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17880 | } | |
17881 | return resultobj; | |
17882 | fail: | |
17883 | return NULL; | |
17884 | } | |
17885 | ||
17886 | ||
17887 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17888 | PyObject *resultobj = 0; | |
17889 | wxDC *arg1 = (wxDC *) 0 ; | |
17890 | wxPoint *arg2 = 0 ; | |
17891 | wxColour *arg3 = 0 ; | |
17892 | int arg4 = (int) wxFLOOD_SURFACE ; | |
17893 | bool result; | |
17894 | void *argp1 = 0 ; | |
17895 | int res1 = 0 ; | |
17896 | wxPoint temp2 ; | |
17897 | wxColour temp3 ; | |
17898 | int val4 ; | |
17899 | int ecode4 = 0 ; | |
17900 | PyObject * obj0 = 0 ; | |
17901 | PyObject * obj1 = 0 ; | |
17902 | PyObject * obj2 = 0 ; | |
17903 | PyObject * obj3 = 0 ; | |
17904 | char * kwnames[] = { | |
17905 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
17906 | }; | |
17907 | ||
17908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17909 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17910 | if (!SWIG_IsOK(res1)) { | |
17911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17912 | } | |
17913 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17914 | { | |
17915 | arg2 = &temp2; | |
17916 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17917 | } | |
17918 | { | |
17919 | arg3 = &temp3; | |
17920 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17921 | } | |
17922 | if (obj3) { | |
17923 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17924 | if (!SWIG_IsOK(ecode4)) { | |
17925 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
17926 | } | |
17927 | arg4 = static_cast< int >(val4); | |
17928 | } | |
17929 | { | |
17930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17931 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
17932 | wxPyEndAllowThreads(__tstate); | |
17933 | if (PyErr_Occurred()) SWIG_fail; | |
17934 | } | |
17935 | { | |
17936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17937 | } | |
17938 | return resultobj; | |
17939 | fail: | |
17940 | return NULL; | |
17941 | } | |
17942 | ||
17943 | ||
17944 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17945 | PyObject *resultobj = 0; | |
17946 | wxDC *arg1 = (wxDC *) 0 ; | |
17947 | wxRect *arg2 = 0 ; | |
17948 | wxColour *arg3 = 0 ; | |
17949 | wxColour *arg4 = 0 ; | |
17950 | wxPoint *arg5 = 0 ; | |
17951 | void *argp1 = 0 ; | |
17952 | int res1 = 0 ; | |
17953 | wxRect temp2 ; | |
17954 | wxColour temp3 ; | |
17955 | wxColour temp4 ; | |
17956 | wxPoint temp5 ; | |
17957 | PyObject * obj0 = 0 ; | |
17958 | PyObject * obj1 = 0 ; | |
17959 | PyObject * obj2 = 0 ; | |
17960 | PyObject * obj3 = 0 ; | |
17961 | PyObject * obj4 = 0 ; | |
17962 | char * kwnames[] = { | |
17963 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
17964 | }; | |
17965 | ||
17966 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17967 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17968 | if (!SWIG_IsOK(res1)) { | |
17969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17970 | } | |
17971 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17972 | { | |
17973 | arg2 = &temp2; | |
17974 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17975 | } | |
17976 | { | |
17977 | arg3 = &temp3; | |
17978 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17979 | } | |
17980 | { | |
17981 | arg4 = &temp4; | |
17982 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17983 | } | |
17984 | { | |
17985 | arg5 = &temp5; | |
17986 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
17987 | } | |
17988 | { | |
17989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17990 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
17991 | wxPyEndAllowThreads(__tstate); | |
17992 | if (PyErr_Occurred()) SWIG_fail; | |
17993 | } | |
17994 | resultobj = SWIG_Py_Void(); | |
17995 | return resultobj; | |
17996 | fail: | |
17997 | return NULL; | |
17998 | } | |
17999 | ||
18000 | ||
18001 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18002 | PyObject *resultobj = 0; | |
18003 | wxDC *arg1 = (wxDC *) 0 ; | |
18004 | wxRect *arg2 = 0 ; | |
18005 | wxColour *arg3 = 0 ; | |
18006 | wxColour *arg4 = 0 ; | |
18007 | wxDirection arg5 = (wxDirection) wxEAST ; | |
18008 | void *argp1 = 0 ; | |
18009 | int res1 = 0 ; | |
18010 | wxRect temp2 ; | |
18011 | wxColour temp3 ; | |
18012 | wxColour temp4 ; | |
18013 | int val5 ; | |
18014 | int ecode5 = 0 ; | |
18015 | PyObject * obj0 = 0 ; | |
18016 | PyObject * obj1 = 0 ; | |
18017 | PyObject * obj2 = 0 ; | |
18018 | PyObject * obj3 = 0 ; | |
18019 | PyObject * obj4 = 0 ; | |
18020 | char * kwnames[] = { | |
18021 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
18022 | }; | |
18023 | ||
18024 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18025 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18026 | if (!SWIG_IsOK(res1)) { | |
18027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18028 | } | |
18029 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18030 | { | |
18031 | arg2 = &temp2; | |
18032 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18033 | } | |
18034 | { | |
18035 | arg3 = &temp3; | |
18036 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18037 | } | |
18038 | { | |
18039 | arg4 = &temp4; | |
18040 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18041 | } | |
18042 | if (obj4) { | |
18043 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18044 | if (!SWIG_IsOK(ecode5)) { | |
18045 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
18046 | } | |
18047 | arg5 = static_cast< wxDirection >(val5); | |
18048 | } | |
18049 | { | |
18050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18051 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
18052 | wxPyEndAllowThreads(__tstate); | |
18053 | if (PyErr_Occurred()) SWIG_fail; | |
18054 | } | |
18055 | resultobj = SWIG_Py_Void(); | |
18056 | return resultobj; | |
18057 | fail: | |
18058 | return NULL; | |
18059 | } | |
18060 | ||
18061 | ||
18062 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18063 | PyObject *resultobj = 0; | |
18064 | wxDC *arg1 = (wxDC *) 0 ; | |
18065 | int arg2 ; | |
18066 | int arg3 ; | |
18067 | wxColour result; | |
18068 | void *argp1 = 0 ; | |
18069 | int res1 = 0 ; | |
18070 | int val2 ; | |
18071 | int ecode2 = 0 ; | |
18072 | int val3 ; | |
18073 | int ecode3 = 0 ; | |
18074 | PyObject * obj0 = 0 ; | |
18075 | PyObject * obj1 = 0 ; | |
18076 | PyObject * obj2 = 0 ; | |
18077 | char * kwnames[] = { | |
18078 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18079 | }; | |
18080 | ||
18081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18083 | if (!SWIG_IsOK(res1)) { | |
18084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18085 | } | |
18086 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18087 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18088 | if (!SWIG_IsOK(ecode2)) { | |
18089 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
18090 | } | |
18091 | arg2 = static_cast< int >(val2); | |
18092 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18093 | if (!SWIG_IsOK(ecode3)) { | |
18094 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
18095 | } | |
18096 | arg3 = static_cast< int >(val3); | |
18097 | { | |
18098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18099 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
18100 | wxPyEndAllowThreads(__tstate); | |
18101 | if (PyErr_Occurred()) SWIG_fail; | |
18102 | } | |
18103 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18104 | return resultobj; | |
18105 | fail: | |
18106 | return NULL; | |
18107 | } | |
18108 | ||
18109 | ||
18110 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18111 | PyObject *resultobj = 0; | |
18112 | wxDC *arg1 = (wxDC *) 0 ; | |
18113 | wxPoint *arg2 = 0 ; | |
18114 | wxColour result; | |
18115 | void *argp1 = 0 ; | |
18116 | int res1 = 0 ; | |
18117 | wxPoint temp2 ; | |
18118 | PyObject * obj0 = 0 ; | |
18119 | PyObject * obj1 = 0 ; | |
18120 | char * kwnames[] = { | |
18121 | (char *) "self",(char *) "pt", NULL | |
18122 | }; | |
18123 | ||
18124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18126 | if (!SWIG_IsOK(res1)) { | |
18127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18128 | } | |
18129 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18130 | { | |
18131 | arg2 = &temp2; | |
18132 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18133 | } | |
18134 | { | |
18135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18136 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
18137 | wxPyEndAllowThreads(__tstate); | |
18138 | if (PyErr_Occurred()) SWIG_fail; | |
18139 | } | |
18140 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18141 | return resultobj; | |
18142 | fail: | |
18143 | return NULL; | |
18144 | } | |
18145 | ||
18146 | ||
18147 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18148 | PyObject *resultobj = 0; | |
18149 | wxDC *arg1 = (wxDC *) 0 ; | |
18150 | int arg2 ; | |
18151 | int arg3 ; | |
18152 | int arg4 ; | |
18153 | int arg5 ; | |
18154 | void *argp1 = 0 ; | |
18155 | int res1 = 0 ; | |
18156 | int val2 ; | |
18157 | int ecode2 = 0 ; | |
18158 | int val3 ; | |
18159 | int ecode3 = 0 ; | |
18160 | int val4 ; | |
18161 | int ecode4 = 0 ; | |
18162 | int val5 ; | |
18163 | int ecode5 = 0 ; | |
18164 | PyObject * obj0 = 0 ; | |
18165 | PyObject * obj1 = 0 ; | |
18166 | PyObject * obj2 = 0 ; | |
18167 | PyObject * obj3 = 0 ; | |
18168 | PyObject * obj4 = 0 ; | |
18169 | char * kwnames[] = { | |
18170 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
18171 | }; | |
18172 | ||
18173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18175 | if (!SWIG_IsOK(res1)) { | |
18176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18177 | } | |
18178 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18179 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18180 | if (!SWIG_IsOK(ecode2)) { | |
18181 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
18182 | } | |
18183 | arg2 = static_cast< int >(val2); | |
18184 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18185 | if (!SWIG_IsOK(ecode3)) { | |
18186 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
18187 | } | |
18188 | arg3 = static_cast< int >(val3); | |
18189 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18190 | if (!SWIG_IsOK(ecode4)) { | |
18191 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
18192 | } | |
18193 | arg4 = static_cast< int >(val4); | |
18194 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18195 | if (!SWIG_IsOK(ecode5)) { | |
18196 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
18197 | } | |
18198 | arg5 = static_cast< int >(val5); | |
18199 | { | |
18200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18201 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
18202 | wxPyEndAllowThreads(__tstate); | |
18203 | if (PyErr_Occurred()) SWIG_fail; | |
18204 | } | |
18205 | resultobj = SWIG_Py_Void(); | |
18206 | return resultobj; | |
18207 | fail: | |
18208 | return NULL; | |
18209 | } | |
18210 | ||
18211 | ||
18212 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18213 | PyObject *resultobj = 0; | |
18214 | wxDC *arg1 = (wxDC *) 0 ; | |
18215 | wxPoint *arg2 = 0 ; | |
18216 | wxPoint *arg3 = 0 ; | |
18217 | void *argp1 = 0 ; | |
18218 | int res1 = 0 ; | |
18219 | wxPoint temp2 ; | |
18220 | wxPoint temp3 ; | |
18221 | PyObject * obj0 = 0 ; | |
18222 | PyObject * obj1 = 0 ; | |
18223 | PyObject * obj2 = 0 ; | |
18224 | char * kwnames[] = { | |
18225 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
18226 | }; | |
18227 | ||
18228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18230 | if (!SWIG_IsOK(res1)) { | |
18231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18232 | } | |
18233 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18234 | { | |
18235 | arg2 = &temp2; | |
18236 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18237 | } | |
18238 | { | |
18239 | arg3 = &temp3; | |
18240 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18241 | } | |
18242 | { | |
18243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18244 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
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_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18256 | PyObject *resultobj = 0; | |
18257 | wxDC *arg1 = (wxDC *) 0 ; | |
18258 | int arg2 ; | |
18259 | int arg3 ; | |
18260 | void *argp1 = 0 ; | |
18261 | int res1 = 0 ; | |
18262 | int val2 ; | |
18263 | int ecode2 = 0 ; | |
18264 | int val3 ; | |
18265 | int ecode3 = 0 ; | |
18266 | PyObject * obj0 = 0 ; | |
18267 | PyObject * obj1 = 0 ; | |
18268 | PyObject * obj2 = 0 ; | |
18269 | char * kwnames[] = { | |
18270 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18271 | }; | |
18272 | ||
18273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18274 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18275 | if (!SWIG_IsOK(res1)) { | |
18276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18277 | } | |
18278 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18279 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18280 | if (!SWIG_IsOK(ecode2)) { | |
18281 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
18282 | } | |
18283 | arg2 = static_cast< int >(val2); | |
18284 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18285 | if (!SWIG_IsOK(ecode3)) { | |
18286 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
18287 | } | |
18288 | arg3 = static_cast< int >(val3); | |
18289 | { | |
18290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18291 | (arg1)->CrossHair(arg2,arg3); | |
18292 | wxPyEndAllowThreads(__tstate); | |
18293 | if (PyErr_Occurred()) SWIG_fail; | |
18294 | } | |
18295 | resultobj = SWIG_Py_Void(); | |
18296 | return resultobj; | |
18297 | fail: | |
18298 | return NULL; | |
18299 | } | |
18300 | ||
18301 | ||
18302 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18303 | PyObject *resultobj = 0; | |
18304 | wxDC *arg1 = (wxDC *) 0 ; | |
18305 | wxPoint *arg2 = 0 ; | |
18306 | void *argp1 = 0 ; | |
18307 | int res1 = 0 ; | |
18308 | wxPoint temp2 ; | |
18309 | PyObject * obj0 = 0 ; | |
18310 | PyObject * obj1 = 0 ; | |
18311 | char * kwnames[] = { | |
18312 | (char *) "self",(char *) "pt", NULL | |
18313 | }; | |
18314 | ||
18315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18316 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18317 | if (!SWIG_IsOK(res1)) { | |
18318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18319 | } | |
18320 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18321 | { | |
18322 | arg2 = &temp2; | |
18323 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18324 | } | |
18325 | { | |
18326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18327 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
18328 | wxPyEndAllowThreads(__tstate); | |
18329 | if (PyErr_Occurred()) SWIG_fail; | |
18330 | } | |
18331 | resultobj = SWIG_Py_Void(); | |
18332 | return resultobj; | |
18333 | fail: | |
18334 | return NULL; | |
18335 | } | |
18336 | ||
18337 | ||
18338 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18339 | PyObject *resultobj = 0; | |
18340 | wxDC *arg1 = (wxDC *) 0 ; | |
18341 | int arg2 ; | |
18342 | int arg3 ; | |
18343 | int arg4 ; | |
18344 | int arg5 ; | |
18345 | int arg6 ; | |
18346 | int arg7 ; | |
18347 | void *argp1 = 0 ; | |
18348 | int res1 = 0 ; | |
18349 | int val2 ; | |
18350 | int ecode2 = 0 ; | |
18351 | int val3 ; | |
18352 | int ecode3 = 0 ; | |
18353 | int val4 ; | |
18354 | int ecode4 = 0 ; | |
18355 | int val5 ; | |
18356 | int ecode5 = 0 ; | |
18357 | int val6 ; | |
18358 | int ecode6 = 0 ; | |
18359 | int val7 ; | |
18360 | int ecode7 = 0 ; | |
18361 | PyObject * obj0 = 0 ; | |
18362 | PyObject * obj1 = 0 ; | |
18363 | PyObject * obj2 = 0 ; | |
18364 | PyObject * obj3 = 0 ; | |
18365 | PyObject * obj4 = 0 ; | |
18366 | PyObject * obj5 = 0 ; | |
18367 | PyObject * obj6 = 0 ; | |
18368 | char * kwnames[] = { | |
18369 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
18370 | }; | |
18371 | ||
18372 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18373 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18374 | if (!SWIG_IsOK(res1)) { | |
18375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18376 | } | |
18377 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18378 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18379 | if (!SWIG_IsOK(ecode2)) { | |
18380 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
18381 | } | |
18382 | arg2 = static_cast< int >(val2); | |
18383 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18384 | if (!SWIG_IsOK(ecode3)) { | |
18385 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
18386 | } | |
18387 | arg3 = static_cast< int >(val3); | |
18388 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18389 | if (!SWIG_IsOK(ecode4)) { | |
18390 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
18391 | } | |
18392 | arg4 = static_cast< int >(val4); | |
18393 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18394 | if (!SWIG_IsOK(ecode5)) { | |
18395 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
18396 | } | |
18397 | arg5 = static_cast< int >(val5); | |
18398 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
18399 | if (!SWIG_IsOK(ecode6)) { | |
18400 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
18401 | } | |
18402 | arg6 = static_cast< int >(val6); | |
18403 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
18404 | if (!SWIG_IsOK(ecode7)) { | |
18405 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
18406 | } | |
18407 | arg7 = static_cast< int >(val7); | |
18408 | { | |
18409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18410 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18411 | wxPyEndAllowThreads(__tstate); | |
18412 | if (PyErr_Occurred()) SWIG_fail; | |
18413 | } | |
18414 | resultobj = SWIG_Py_Void(); | |
18415 | return resultobj; | |
18416 | fail: | |
18417 | return NULL; | |
18418 | } | |
18419 | ||
18420 | ||
18421 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18422 | PyObject *resultobj = 0; | |
18423 | wxDC *arg1 = (wxDC *) 0 ; | |
18424 | wxPoint *arg2 = 0 ; | |
18425 | wxPoint *arg3 = 0 ; | |
18426 | wxPoint *arg4 = 0 ; | |
18427 | void *argp1 = 0 ; | |
18428 | int res1 = 0 ; | |
18429 | wxPoint temp2 ; | |
18430 | wxPoint temp3 ; | |
18431 | wxPoint temp4 ; | |
18432 | PyObject * obj0 = 0 ; | |
18433 | PyObject * obj1 = 0 ; | |
18434 | PyObject * obj2 = 0 ; | |
18435 | PyObject * obj3 = 0 ; | |
18436 | char * kwnames[] = { | |
18437 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
18438 | }; | |
18439 | ||
18440 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18441 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18442 | if (!SWIG_IsOK(res1)) { | |
18443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18444 | } | |
18445 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18446 | { | |
18447 | arg2 = &temp2; | |
18448 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18449 | } | |
18450 | { | |
18451 | arg3 = &temp3; | |
18452 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18453 | } | |
18454 | { | |
18455 | arg4 = &temp4; | |
18456 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18457 | } | |
18458 | { | |
18459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18460 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
18461 | wxPyEndAllowThreads(__tstate); | |
18462 | if (PyErr_Occurred()) SWIG_fail; | |
18463 | } | |
18464 | resultobj = SWIG_Py_Void(); | |
18465 | return resultobj; | |
18466 | fail: | |
18467 | return NULL; | |
18468 | } | |
18469 | ||
18470 | ||
18471 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18472 | PyObject *resultobj = 0; | |
18473 | wxDC *arg1 = (wxDC *) 0 ; | |
18474 | int arg2 ; | |
18475 | int arg3 ; | |
18476 | int arg4 ; | |
18477 | int arg5 ; | |
18478 | void *argp1 = 0 ; | |
18479 | int res1 = 0 ; | |
18480 | int val2 ; | |
18481 | int ecode2 = 0 ; | |
18482 | int val3 ; | |
18483 | int ecode3 = 0 ; | |
18484 | int val4 ; | |
18485 | int ecode4 = 0 ; | |
18486 | int val5 ; | |
18487 | int ecode5 = 0 ; | |
18488 | PyObject * obj0 = 0 ; | |
18489 | PyObject * obj1 = 0 ; | |
18490 | PyObject * obj2 = 0 ; | |
18491 | PyObject * obj3 = 0 ; | |
18492 | PyObject * obj4 = 0 ; | |
18493 | char * kwnames[] = { | |
18494 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18495 | }; | |
18496 | ||
18497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18499 | if (!SWIG_IsOK(res1)) { | |
18500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18501 | } | |
18502 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18503 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18504 | if (!SWIG_IsOK(ecode2)) { | |
18505 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
18506 | } | |
18507 | arg2 = static_cast< int >(val2); | |
18508 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18509 | if (!SWIG_IsOK(ecode3)) { | |
18510 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
18511 | } | |
18512 | arg3 = static_cast< int >(val3); | |
18513 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18514 | if (!SWIG_IsOK(ecode4)) { | |
18515 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
18516 | } | |
18517 | arg4 = static_cast< int >(val4); | |
18518 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18519 | if (!SWIG_IsOK(ecode5)) { | |
18520 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
18521 | } | |
18522 | arg5 = static_cast< int >(val5); | |
18523 | { | |
18524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18525 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
18526 | wxPyEndAllowThreads(__tstate); | |
18527 | if (PyErr_Occurred()) SWIG_fail; | |
18528 | } | |
18529 | resultobj = SWIG_Py_Void(); | |
18530 | return resultobj; | |
18531 | fail: | |
18532 | return NULL; | |
18533 | } | |
18534 | ||
18535 | ||
18536 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18537 | PyObject *resultobj = 0; | |
18538 | wxDC *arg1 = (wxDC *) 0 ; | |
18539 | wxRect *arg2 = 0 ; | |
18540 | void *argp1 = 0 ; | |
18541 | int res1 = 0 ; | |
18542 | wxRect temp2 ; | |
18543 | PyObject * obj0 = 0 ; | |
18544 | PyObject * obj1 = 0 ; | |
18545 | char * kwnames[] = { | |
18546 | (char *) "self",(char *) "rect", NULL | |
18547 | }; | |
18548 | ||
18549 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18550 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18551 | if (!SWIG_IsOK(res1)) { | |
18552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18553 | } | |
18554 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18555 | { | |
18556 | arg2 = &temp2; | |
18557 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18558 | } | |
18559 | { | |
18560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18561 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
18562 | wxPyEndAllowThreads(__tstate); | |
18563 | if (PyErr_Occurred()) SWIG_fail; | |
18564 | } | |
18565 | resultobj = SWIG_Py_Void(); | |
18566 | return resultobj; | |
18567 | fail: | |
18568 | return NULL; | |
18569 | } | |
18570 | ||
18571 | ||
18572 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18573 | PyObject *resultobj = 0; | |
18574 | wxDC *arg1 = (wxDC *) 0 ; | |
18575 | int arg2 ; | |
18576 | int arg3 ; | |
18577 | int arg4 ; | |
18578 | int arg5 ; | |
18579 | double arg6 ; | |
18580 | double arg7 ; | |
18581 | void *argp1 = 0 ; | |
18582 | int res1 = 0 ; | |
18583 | int val2 ; | |
18584 | int ecode2 = 0 ; | |
18585 | int val3 ; | |
18586 | int ecode3 = 0 ; | |
18587 | int val4 ; | |
18588 | int ecode4 = 0 ; | |
18589 | int val5 ; | |
18590 | int ecode5 = 0 ; | |
18591 | double val6 ; | |
18592 | int ecode6 = 0 ; | |
18593 | double val7 ; | |
18594 | int ecode7 = 0 ; | |
18595 | PyObject * obj0 = 0 ; | |
18596 | PyObject * obj1 = 0 ; | |
18597 | PyObject * obj2 = 0 ; | |
18598 | PyObject * obj3 = 0 ; | |
18599 | PyObject * obj4 = 0 ; | |
18600 | PyObject * obj5 = 0 ; | |
18601 | PyObject * obj6 = 0 ; | |
18602 | char * kwnames[] = { | |
18603 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
18604 | }; | |
18605 | ||
18606 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18607 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18608 | if (!SWIG_IsOK(res1)) { | |
18609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18610 | } | |
18611 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18612 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18613 | if (!SWIG_IsOK(ecode2)) { | |
18614 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
18615 | } | |
18616 | arg2 = static_cast< int >(val2); | |
18617 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18618 | if (!SWIG_IsOK(ecode3)) { | |
18619 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
18620 | } | |
18621 | arg3 = static_cast< int >(val3); | |
18622 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18623 | if (!SWIG_IsOK(ecode4)) { | |
18624 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
18625 | } | |
18626 | arg4 = static_cast< int >(val4); | |
18627 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18628 | if (!SWIG_IsOK(ecode5)) { | |
18629 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
18630 | } | |
18631 | arg5 = static_cast< int >(val5); | |
18632 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18633 | if (!SWIG_IsOK(ecode6)) { | |
18634 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
18635 | } | |
18636 | arg6 = static_cast< double >(val6); | |
18637 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
18638 | if (!SWIG_IsOK(ecode7)) { | |
18639 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
18640 | } | |
18641 | arg7 = static_cast< double >(val7); | |
18642 | { | |
18643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18644 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18645 | wxPyEndAllowThreads(__tstate); | |
18646 | if (PyErr_Occurred()) SWIG_fail; | |
18647 | } | |
18648 | resultobj = SWIG_Py_Void(); | |
18649 | return resultobj; | |
18650 | fail: | |
18651 | return NULL; | |
18652 | } | |
18653 | ||
18654 | ||
18655 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18656 | PyObject *resultobj = 0; | |
18657 | wxDC *arg1 = (wxDC *) 0 ; | |
18658 | wxPoint *arg2 = 0 ; | |
18659 | wxSize *arg3 = 0 ; | |
18660 | double arg4 ; | |
18661 | double arg5 ; | |
18662 | void *argp1 = 0 ; | |
18663 | int res1 = 0 ; | |
18664 | wxPoint temp2 ; | |
18665 | wxSize temp3 ; | |
18666 | double val4 ; | |
18667 | int ecode4 = 0 ; | |
18668 | double val5 ; | |
18669 | int ecode5 = 0 ; | |
18670 | PyObject * obj0 = 0 ; | |
18671 | PyObject * obj1 = 0 ; | |
18672 | PyObject * obj2 = 0 ; | |
18673 | PyObject * obj3 = 0 ; | |
18674 | PyObject * obj4 = 0 ; | |
18675 | char * kwnames[] = { | |
18676 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
18677 | }; | |
18678 | ||
18679 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18680 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18681 | if (!SWIG_IsOK(res1)) { | |
18682 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18683 | } | |
18684 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18685 | { | |
18686 | arg2 = &temp2; | |
18687 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18688 | } | |
18689 | { | |
18690 | arg3 = &temp3; | |
18691 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18692 | } | |
18693 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18694 | if (!SWIG_IsOK(ecode4)) { | |
18695 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
18696 | } | |
18697 | arg4 = static_cast< double >(val4); | |
18698 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
18699 | if (!SWIG_IsOK(ecode5)) { | |
18700 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
18701 | } | |
18702 | arg5 = static_cast< double >(val5); | |
18703 | { | |
18704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18705 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
18706 | wxPyEndAllowThreads(__tstate); | |
18707 | if (PyErr_Occurred()) SWIG_fail; | |
18708 | } | |
18709 | resultobj = SWIG_Py_Void(); | |
18710 | return resultobj; | |
18711 | fail: | |
18712 | return NULL; | |
18713 | } | |
18714 | ||
18715 | ||
18716 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18717 | PyObject *resultobj = 0; | |
18718 | wxDC *arg1 = (wxDC *) 0 ; | |
18719 | int arg2 ; | |
18720 | int arg3 ; | |
18721 | void *argp1 = 0 ; | |
18722 | int res1 = 0 ; | |
18723 | int val2 ; | |
18724 | int ecode2 = 0 ; | |
18725 | int val3 ; | |
18726 | int ecode3 = 0 ; | |
18727 | PyObject * obj0 = 0 ; | |
18728 | PyObject * obj1 = 0 ; | |
18729 | PyObject * obj2 = 0 ; | |
18730 | char * kwnames[] = { | |
18731 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18732 | }; | |
18733 | ||
18734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18735 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18736 | if (!SWIG_IsOK(res1)) { | |
18737 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18738 | } | |
18739 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18740 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18741 | if (!SWIG_IsOK(ecode2)) { | |
18742 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
18743 | } | |
18744 | arg2 = static_cast< int >(val2); | |
18745 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18746 | if (!SWIG_IsOK(ecode3)) { | |
18747 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
18748 | } | |
18749 | arg3 = static_cast< int >(val3); | |
18750 | { | |
18751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18752 | (arg1)->DrawPoint(arg2,arg3); | |
18753 | wxPyEndAllowThreads(__tstate); | |
18754 | if (PyErr_Occurred()) SWIG_fail; | |
18755 | } | |
18756 | resultobj = SWIG_Py_Void(); | |
18757 | return resultobj; | |
18758 | fail: | |
18759 | return NULL; | |
18760 | } | |
18761 | ||
18762 | ||
18763 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18764 | PyObject *resultobj = 0; | |
18765 | wxDC *arg1 = (wxDC *) 0 ; | |
18766 | wxPoint *arg2 = 0 ; | |
18767 | void *argp1 = 0 ; | |
18768 | int res1 = 0 ; | |
18769 | wxPoint temp2 ; | |
18770 | PyObject * obj0 = 0 ; | |
18771 | PyObject * obj1 = 0 ; | |
18772 | char * kwnames[] = { | |
18773 | (char *) "self",(char *) "pt", NULL | |
18774 | }; | |
18775 | ||
18776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18777 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18778 | if (!SWIG_IsOK(res1)) { | |
18779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18780 | } | |
18781 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18782 | { | |
18783 | arg2 = &temp2; | |
18784 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18785 | } | |
18786 | { | |
18787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18788 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
18789 | wxPyEndAllowThreads(__tstate); | |
18790 | if (PyErr_Occurred()) SWIG_fail; | |
18791 | } | |
18792 | resultobj = SWIG_Py_Void(); | |
18793 | return resultobj; | |
18794 | fail: | |
18795 | return NULL; | |
18796 | } | |
18797 | ||
18798 | ||
18799 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18800 | PyObject *resultobj = 0; | |
18801 | wxDC *arg1 = (wxDC *) 0 ; | |
18802 | int arg2 ; | |
18803 | int arg3 ; | |
18804 | int arg4 ; | |
18805 | int arg5 ; | |
18806 | void *argp1 = 0 ; | |
18807 | int res1 = 0 ; | |
18808 | int val2 ; | |
18809 | int ecode2 = 0 ; | |
18810 | int val3 ; | |
18811 | int ecode3 = 0 ; | |
18812 | int val4 ; | |
18813 | int ecode4 = 0 ; | |
18814 | int val5 ; | |
18815 | int ecode5 = 0 ; | |
18816 | PyObject * obj0 = 0 ; | |
18817 | PyObject * obj1 = 0 ; | |
18818 | PyObject * obj2 = 0 ; | |
18819 | PyObject * obj3 = 0 ; | |
18820 | PyObject * obj4 = 0 ; | |
18821 | char * kwnames[] = { | |
18822 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18823 | }; | |
18824 | ||
18825 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18827 | if (!SWIG_IsOK(res1)) { | |
18828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18829 | } | |
18830 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18831 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18832 | if (!SWIG_IsOK(ecode2)) { | |
18833 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18834 | } | |
18835 | arg2 = static_cast< int >(val2); | |
18836 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18837 | if (!SWIG_IsOK(ecode3)) { | |
18838 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18839 | } | |
18840 | arg3 = static_cast< int >(val3); | |
18841 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18842 | if (!SWIG_IsOK(ecode4)) { | |
18843 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18844 | } | |
18845 | arg4 = static_cast< int >(val4); | |
18846 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18847 | if (!SWIG_IsOK(ecode5)) { | |
18848 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18849 | } | |
18850 | arg5 = static_cast< int >(val5); | |
18851 | { | |
18852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18853 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
18854 | wxPyEndAllowThreads(__tstate); | |
18855 | if (PyErr_Occurred()) SWIG_fail; | |
18856 | } | |
18857 | resultobj = SWIG_Py_Void(); | |
18858 | return resultobj; | |
18859 | fail: | |
18860 | return NULL; | |
18861 | } | |
18862 | ||
18863 | ||
18864 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18865 | PyObject *resultobj = 0; | |
18866 | wxDC *arg1 = (wxDC *) 0 ; | |
18867 | wxRect *arg2 = 0 ; | |
18868 | void *argp1 = 0 ; | |
18869 | int res1 = 0 ; | |
18870 | wxRect temp2 ; | |
18871 | PyObject * obj0 = 0 ; | |
18872 | PyObject * obj1 = 0 ; | |
18873 | char * kwnames[] = { | |
18874 | (char *) "self",(char *) "rect", NULL | |
18875 | }; | |
18876 | ||
18877 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18878 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18879 | if (!SWIG_IsOK(res1)) { | |
18880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18881 | } | |
18882 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18883 | { | |
18884 | arg2 = &temp2; | |
18885 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18886 | } | |
18887 | { | |
18888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18889 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
18890 | wxPyEndAllowThreads(__tstate); | |
18891 | if (PyErr_Occurred()) SWIG_fail; | |
18892 | } | |
18893 | resultobj = SWIG_Py_Void(); | |
18894 | return resultobj; | |
18895 | fail: | |
18896 | return NULL; | |
18897 | } | |
18898 | ||
18899 | ||
18900 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18901 | PyObject *resultobj = 0; | |
18902 | wxDC *arg1 = (wxDC *) 0 ; | |
18903 | wxPoint *arg2 = 0 ; | |
18904 | wxSize *arg3 = 0 ; | |
18905 | void *argp1 = 0 ; | |
18906 | int res1 = 0 ; | |
18907 | wxPoint temp2 ; | |
18908 | wxSize temp3 ; | |
18909 | PyObject * obj0 = 0 ; | |
18910 | PyObject * obj1 = 0 ; | |
18911 | PyObject * obj2 = 0 ; | |
18912 | char * kwnames[] = { | |
18913 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
18914 | }; | |
18915 | ||
18916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18918 | if (!SWIG_IsOK(res1)) { | |
18919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18920 | } | |
18921 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18922 | { | |
18923 | arg2 = &temp2; | |
18924 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18925 | } | |
18926 | { | |
18927 | arg3 = &temp3; | |
18928 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18929 | } | |
18930 | { | |
18931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18932 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
18933 | wxPyEndAllowThreads(__tstate); | |
18934 | if (PyErr_Occurred()) SWIG_fail; | |
18935 | } | |
18936 | resultobj = SWIG_Py_Void(); | |
18937 | return resultobj; | |
18938 | fail: | |
18939 | return NULL; | |
18940 | } | |
18941 | ||
18942 | ||
18943 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18944 | PyObject *resultobj = 0; | |
18945 | wxDC *arg1 = (wxDC *) 0 ; | |
18946 | int arg2 ; | |
18947 | int arg3 ; | |
18948 | int arg4 ; | |
18949 | int arg5 ; | |
18950 | double arg6 ; | |
18951 | void *argp1 = 0 ; | |
18952 | int res1 = 0 ; | |
18953 | int val2 ; | |
18954 | int ecode2 = 0 ; | |
18955 | int val3 ; | |
18956 | int ecode3 = 0 ; | |
18957 | int val4 ; | |
18958 | int ecode4 = 0 ; | |
18959 | int val5 ; | |
18960 | int ecode5 = 0 ; | |
18961 | double val6 ; | |
18962 | int ecode6 = 0 ; | |
18963 | PyObject * obj0 = 0 ; | |
18964 | PyObject * obj1 = 0 ; | |
18965 | PyObject * obj2 = 0 ; | |
18966 | PyObject * obj3 = 0 ; | |
18967 | PyObject * obj4 = 0 ; | |
18968 | PyObject * obj5 = 0 ; | |
18969 | char * kwnames[] = { | |
18970 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
18971 | }; | |
18972 | ||
18973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18975 | if (!SWIG_IsOK(res1)) { | |
18976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18977 | } | |
18978 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18979 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18980 | if (!SWIG_IsOK(ecode2)) { | |
18981 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18982 | } | |
18983 | arg2 = static_cast< int >(val2); | |
18984 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18985 | if (!SWIG_IsOK(ecode3)) { | |
18986 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18987 | } | |
18988 | arg3 = static_cast< int >(val3); | |
18989 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18990 | if (!SWIG_IsOK(ecode4)) { | |
18991 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18992 | } | |
18993 | arg4 = static_cast< int >(val4); | |
18994 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18995 | if (!SWIG_IsOK(ecode5)) { | |
18996 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18997 | } | |
18998 | arg5 = static_cast< int >(val5); | |
18999 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
19000 | if (!SWIG_IsOK(ecode6)) { | |
19001 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
19002 | } | |
19003 | arg6 = static_cast< double >(val6); | |
19004 | { | |
19005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19006 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
19007 | wxPyEndAllowThreads(__tstate); | |
19008 | if (PyErr_Occurred()) SWIG_fail; | |
19009 | } | |
19010 | resultobj = SWIG_Py_Void(); | |
19011 | return resultobj; | |
19012 | fail: | |
19013 | return NULL; | |
19014 | } | |
19015 | ||
19016 | ||
19017 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19018 | PyObject *resultobj = 0; | |
19019 | wxDC *arg1 = (wxDC *) 0 ; | |
19020 | wxRect *arg2 = 0 ; | |
19021 | double arg3 ; | |
19022 | void *argp1 = 0 ; | |
19023 | int res1 = 0 ; | |
19024 | wxRect temp2 ; | |
19025 | double val3 ; | |
19026 | int ecode3 = 0 ; | |
19027 | PyObject * obj0 = 0 ; | |
19028 | PyObject * obj1 = 0 ; | |
19029 | PyObject * obj2 = 0 ; | |
19030 | char * kwnames[] = { | |
19031 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
19032 | }; | |
19033 | ||
19034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19036 | if (!SWIG_IsOK(res1)) { | |
19037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19038 | } | |
19039 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19040 | { | |
19041 | arg2 = &temp2; | |
19042 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19043 | } | |
19044 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
19045 | if (!SWIG_IsOK(ecode3)) { | |
19046 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
19047 | } | |
19048 | arg3 = static_cast< double >(val3); | |
19049 | { | |
19050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19051 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
19052 | wxPyEndAllowThreads(__tstate); | |
19053 | if (PyErr_Occurred()) SWIG_fail; | |
19054 | } | |
19055 | resultobj = SWIG_Py_Void(); | |
19056 | return resultobj; | |
19057 | fail: | |
19058 | return NULL; | |
19059 | } | |
19060 | ||
19061 | ||
19062 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19063 | PyObject *resultobj = 0; | |
19064 | wxDC *arg1 = (wxDC *) 0 ; | |
19065 | wxPoint *arg2 = 0 ; | |
19066 | wxSize *arg3 = 0 ; | |
19067 | double arg4 ; | |
19068 | void *argp1 = 0 ; | |
19069 | int res1 = 0 ; | |
19070 | wxPoint temp2 ; | |
19071 | wxSize temp3 ; | |
19072 | double val4 ; | |
19073 | int ecode4 = 0 ; | |
19074 | PyObject * obj0 = 0 ; | |
19075 | PyObject * obj1 = 0 ; | |
19076 | PyObject * obj2 = 0 ; | |
19077 | PyObject * obj3 = 0 ; | |
19078 | char * kwnames[] = { | |
19079 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
19080 | }; | |
19081 | ||
19082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19084 | if (!SWIG_IsOK(res1)) { | |
19085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19086 | } | |
19087 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19088 | { | |
19089 | arg2 = &temp2; | |
19090 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19091 | } | |
19092 | { | |
19093 | arg3 = &temp3; | |
19094 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19095 | } | |
19096 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19097 | if (!SWIG_IsOK(ecode4)) { | |
19098 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
19099 | } | |
19100 | arg4 = static_cast< double >(val4); | |
19101 | { | |
19102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19103 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
19104 | wxPyEndAllowThreads(__tstate); | |
19105 | if (PyErr_Occurred()) SWIG_fail; | |
19106 | } | |
19107 | resultobj = SWIG_Py_Void(); | |
19108 | return resultobj; | |
19109 | fail: | |
19110 | return NULL; | |
19111 | } | |
19112 | ||
19113 | ||
19114 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19115 | PyObject *resultobj = 0; | |
19116 | wxDC *arg1 = (wxDC *) 0 ; | |
19117 | int arg2 ; | |
19118 | int arg3 ; | |
19119 | int arg4 ; | |
19120 | void *argp1 = 0 ; | |
19121 | int res1 = 0 ; | |
19122 | int val2 ; | |
19123 | int ecode2 = 0 ; | |
19124 | int val3 ; | |
19125 | int ecode3 = 0 ; | |
19126 | int val4 ; | |
19127 | int ecode4 = 0 ; | |
19128 | PyObject * obj0 = 0 ; | |
19129 | PyObject * obj1 = 0 ; | |
19130 | PyObject * obj2 = 0 ; | |
19131 | PyObject * obj3 = 0 ; | |
19132 | char * kwnames[] = { | |
19133 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
19134 | }; | |
19135 | ||
19136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19138 | if (!SWIG_IsOK(res1)) { | |
19139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19140 | } | |
19141 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19142 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19143 | if (!SWIG_IsOK(ecode2)) { | |
19144 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
19145 | } | |
19146 | arg2 = static_cast< int >(val2); | |
19147 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19148 | if (!SWIG_IsOK(ecode3)) { | |
19149 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
19150 | } | |
19151 | arg3 = static_cast< int >(val3); | |
19152 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19153 | if (!SWIG_IsOK(ecode4)) { | |
19154 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
19155 | } | |
19156 | arg4 = static_cast< int >(val4); | |
19157 | { | |
19158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19159 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
19160 | wxPyEndAllowThreads(__tstate); | |
19161 | if (PyErr_Occurred()) SWIG_fail; | |
19162 | } | |
19163 | resultobj = SWIG_Py_Void(); | |
19164 | return resultobj; | |
19165 | fail: | |
19166 | return NULL; | |
19167 | } | |
19168 | ||
19169 | ||
19170 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19171 | PyObject *resultobj = 0; | |
19172 | wxDC *arg1 = (wxDC *) 0 ; | |
19173 | wxPoint *arg2 = 0 ; | |
19174 | int arg3 ; | |
19175 | void *argp1 = 0 ; | |
19176 | int res1 = 0 ; | |
19177 | wxPoint temp2 ; | |
19178 | int val3 ; | |
19179 | int ecode3 = 0 ; | |
19180 | PyObject * obj0 = 0 ; | |
19181 | PyObject * obj1 = 0 ; | |
19182 | PyObject * obj2 = 0 ; | |
19183 | char * kwnames[] = { | |
19184 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
19185 | }; | |
19186 | ||
19187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19188 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19189 | if (!SWIG_IsOK(res1)) { | |
19190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19191 | } | |
19192 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19193 | { | |
19194 | arg2 = &temp2; | |
19195 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19196 | } | |
19197 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19198 | if (!SWIG_IsOK(ecode3)) { | |
19199 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
19200 | } | |
19201 | arg3 = static_cast< int >(val3); | |
19202 | { | |
19203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19204 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
19205 | wxPyEndAllowThreads(__tstate); | |
19206 | if (PyErr_Occurred()) SWIG_fail; | |
19207 | } | |
19208 | resultobj = SWIG_Py_Void(); | |
19209 | return resultobj; | |
19210 | fail: | |
19211 | return NULL; | |
19212 | } | |
19213 | ||
19214 | ||
19215 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19216 | PyObject *resultobj = 0; | |
19217 | wxDC *arg1 = (wxDC *) 0 ; | |
19218 | int arg2 ; | |
19219 | int arg3 ; | |
19220 | int arg4 ; | |
19221 | int arg5 ; | |
19222 | void *argp1 = 0 ; | |
19223 | int res1 = 0 ; | |
19224 | int val2 ; | |
19225 | int ecode2 = 0 ; | |
19226 | int val3 ; | |
19227 | int ecode3 = 0 ; | |
19228 | int val4 ; | |
19229 | int ecode4 = 0 ; | |
19230 | int val5 ; | |
19231 | int ecode5 = 0 ; | |
19232 | PyObject * obj0 = 0 ; | |
19233 | PyObject * obj1 = 0 ; | |
19234 | PyObject * obj2 = 0 ; | |
19235 | PyObject * obj3 = 0 ; | |
19236 | PyObject * obj4 = 0 ; | |
19237 | char * kwnames[] = { | |
19238 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19239 | }; | |
19240 | ||
19241 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19242 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19243 | if (!SWIG_IsOK(res1)) { | |
19244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19245 | } | |
19246 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19247 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19248 | if (!SWIG_IsOK(ecode2)) { | |
19249 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
19250 | } | |
19251 | arg2 = static_cast< int >(val2); | |
19252 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19253 | if (!SWIG_IsOK(ecode3)) { | |
19254 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
19255 | } | |
19256 | arg3 = static_cast< int >(val3); | |
19257 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19258 | if (!SWIG_IsOK(ecode4)) { | |
19259 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
19260 | } | |
19261 | arg4 = static_cast< int >(val4); | |
19262 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19263 | if (!SWIG_IsOK(ecode5)) { | |
19264 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
19265 | } | |
19266 | arg5 = static_cast< int >(val5); | |
19267 | { | |
19268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19269 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
19270 | wxPyEndAllowThreads(__tstate); | |
19271 | if (PyErr_Occurred()) SWIG_fail; | |
19272 | } | |
19273 | resultobj = SWIG_Py_Void(); | |
19274 | return resultobj; | |
19275 | fail: | |
19276 | return NULL; | |
19277 | } | |
19278 | ||
19279 | ||
19280 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19281 | PyObject *resultobj = 0; | |
19282 | wxDC *arg1 = (wxDC *) 0 ; | |
19283 | wxRect *arg2 = 0 ; | |
19284 | void *argp1 = 0 ; | |
19285 | int res1 = 0 ; | |
19286 | wxRect temp2 ; | |
19287 | PyObject * obj0 = 0 ; | |
19288 | PyObject * obj1 = 0 ; | |
19289 | char * kwnames[] = { | |
19290 | (char *) "self",(char *) "rect", NULL | |
19291 | }; | |
19292 | ||
19293 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19295 | if (!SWIG_IsOK(res1)) { | |
19296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19297 | } | |
19298 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19299 | { | |
19300 | arg2 = &temp2; | |
19301 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19302 | } | |
19303 | { | |
19304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19305 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
19306 | wxPyEndAllowThreads(__tstate); | |
19307 | if (PyErr_Occurred()) SWIG_fail; | |
19308 | } | |
19309 | resultobj = SWIG_Py_Void(); | |
19310 | return resultobj; | |
19311 | fail: | |
19312 | return NULL; | |
19313 | } | |
19314 | ||
19315 | ||
19316 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19317 | PyObject *resultobj = 0; | |
19318 | wxDC *arg1 = (wxDC *) 0 ; | |
19319 | wxPoint *arg2 = 0 ; | |
19320 | wxSize *arg3 = 0 ; | |
19321 | void *argp1 = 0 ; | |
19322 | int res1 = 0 ; | |
19323 | wxPoint temp2 ; | |
19324 | wxSize temp3 ; | |
19325 | PyObject * obj0 = 0 ; | |
19326 | PyObject * obj1 = 0 ; | |
19327 | PyObject * obj2 = 0 ; | |
19328 | char * kwnames[] = { | |
19329 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19330 | }; | |
19331 | ||
19332 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19334 | if (!SWIG_IsOK(res1)) { | |
19335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19336 | } | |
19337 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19338 | { | |
19339 | arg2 = &temp2; | |
19340 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19341 | } | |
19342 | { | |
19343 | arg3 = &temp3; | |
19344 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19345 | } | |
19346 | { | |
19347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19348 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19349 | wxPyEndAllowThreads(__tstate); | |
19350 | if (PyErr_Occurred()) SWIG_fail; | |
19351 | } | |
19352 | resultobj = SWIG_Py_Void(); | |
19353 | return resultobj; | |
19354 | fail: | |
19355 | return NULL; | |
19356 | } | |
19357 | ||
19358 | ||
19359 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19360 | PyObject *resultobj = 0; | |
19361 | wxDC *arg1 = (wxDC *) 0 ; | |
19362 | wxIcon *arg2 = 0 ; | |
19363 | int arg3 ; | |
19364 | int arg4 ; | |
19365 | void *argp1 = 0 ; | |
19366 | int res1 = 0 ; | |
19367 | void *argp2 = 0 ; | |
19368 | int res2 = 0 ; | |
19369 | int val3 ; | |
19370 | int ecode3 = 0 ; | |
19371 | int val4 ; | |
19372 | int ecode4 = 0 ; | |
19373 | PyObject * obj0 = 0 ; | |
19374 | PyObject * obj1 = 0 ; | |
19375 | PyObject * obj2 = 0 ; | |
19376 | PyObject * obj3 = 0 ; | |
19377 | char * kwnames[] = { | |
19378 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
19379 | }; | |
19380 | ||
19381 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19382 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19383 | if (!SWIG_IsOK(res1)) { | |
19384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19385 | } | |
19386 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19387 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19388 | if (!SWIG_IsOK(res2)) { | |
19389 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19390 | } | |
19391 | if (!argp2) { | |
19392 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19393 | } | |
19394 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19395 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19396 | if (!SWIG_IsOK(ecode3)) { | |
19397 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
19398 | } | |
19399 | arg3 = static_cast< int >(val3); | |
19400 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19401 | if (!SWIG_IsOK(ecode4)) { | |
19402 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
19403 | } | |
19404 | arg4 = static_cast< int >(val4); | |
19405 | { | |
19406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19407 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
19408 | wxPyEndAllowThreads(__tstate); | |
19409 | if (PyErr_Occurred()) SWIG_fail; | |
19410 | } | |
19411 | resultobj = SWIG_Py_Void(); | |
19412 | return resultobj; | |
19413 | fail: | |
19414 | return NULL; | |
19415 | } | |
19416 | ||
19417 | ||
19418 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19419 | PyObject *resultobj = 0; | |
19420 | wxDC *arg1 = (wxDC *) 0 ; | |
19421 | wxIcon *arg2 = 0 ; | |
19422 | wxPoint *arg3 = 0 ; | |
19423 | void *argp1 = 0 ; | |
19424 | int res1 = 0 ; | |
19425 | void *argp2 = 0 ; | |
19426 | int res2 = 0 ; | |
19427 | wxPoint temp3 ; | |
19428 | PyObject * obj0 = 0 ; | |
19429 | PyObject * obj1 = 0 ; | |
19430 | PyObject * obj2 = 0 ; | |
19431 | char * kwnames[] = { | |
19432 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
19433 | }; | |
19434 | ||
19435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19437 | if (!SWIG_IsOK(res1)) { | |
19438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19439 | } | |
19440 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19441 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19442 | if (!SWIG_IsOK(res2)) { | |
19443 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19444 | } | |
19445 | if (!argp2) { | |
19446 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19447 | } | |
19448 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19449 | { | |
19450 | arg3 = &temp3; | |
19451 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19452 | } | |
19453 | { | |
19454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19455 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
19456 | wxPyEndAllowThreads(__tstate); | |
19457 | if (PyErr_Occurred()) SWIG_fail; | |
19458 | } | |
19459 | resultobj = SWIG_Py_Void(); | |
19460 | return resultobj; | |
19461 | fail: | |
19462 | return NULL; | |
19463 | } | |
19464 | ||
19465 | ||
19466 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19467 | PyObject *resultobj = 0; | |
19468 | wxDC *arg1 = (wxDC *) 0 ; | |
19469 | wxBitmap *arg2 = 0 ; | |
19470 | int arg3 ; | |
19471 | int arg4 ; | |
19472 | bool arg5 = (bool) false ; | |
19473 | void *argp1 = 0 ; | |
19474 | int res1 = 0 ; | |
19475 | void *argp2 = 0 ; | |
19476 | int res2 = 0 ; | |
19477 | int val3 ; | |
19478 | int ecode3 = 0 ; | |
19479 | int val4 ; | |
19480 | int ecode4 = 0 ; | |
19481 | bool val5 ; | |
19482 | int ecode5 = 0 ; | |
19483 | PyObject * obj0 = 0 ; | |
19484 | PyObject * obj1 = 0 ; | |
19485 | PyObject * obj2 = 0 ; | |
19486 | PyObject * obj3 = 0 ; | |
19487 | PyObject * obj4 = 0 ; | |
19488 | char * kwnames[] = { | |
19489 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
19490 | }; | |
19491 | ||
19492 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19493 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19494 | if (!SWIG_IsOK(res1)) { | |
19495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19496 | } | |
19497 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19498 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19499 | if (!SWIG_IsOK(res2)) { | |
19500 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19501 | } | |
19502 | if (!argp2) { | |
19503 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19504 | } | |
19505 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19506 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19507 | if (!SWIG_IsOK(ecode3)) { | |
19508 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
19509 | } | |
19510 | arg3 = static_cast< int >(val3); | |
19511 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19512 | if (!SWIG_IsOK(ecode4)) { | |
19513 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
19514 | } | |
19515 | arg4 = static_cast< int >(val4); | |
19516 | if (obj4) { | |
19517 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
19518 | if (!SWIG_IsOK(ecode5)) { | |
19519 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
19520 | } | |
19521 | arg5 = static_cast< bool >(val5); | |
19522 | } | |
19523 | { | |
19524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19525 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
19526 | wxPyEndAllowThreads(__tstate); | |
19527 | if (PyErr_Occurred()) SWIG_fail; | |
19528 | } | |
19529 | resultobj = SWIG_Py_Void(); | |
19530 | return resultobj; | |
19531 | fail: | |
19532 | return NULL; | |
19533 | } | |
19534 | ||
19535 | ||
19536 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19537 | PyObject *resultobj = 0; | |
19538 | wxDC *arg1 = (wxDC *) 0 ; | |
19539 | wxBitmap *arg2 = 0 ; | |
19540 | wxPoint *arg3 = 0 ; | |
19541 | bool arg4 = (bool) false ; | |
19542 | void *argp1 = 0 ; | |
19543 | int res1 = 0 ; | |
19544 | void *argp2 = 0 ; | |
19545 | int res2 = 0 ; | |
19546 | wxPoint temp3 ; | |
19547 | bool val4 ; | |
19548 | int ecode4 = 0 ; | |
19549 | PyObject * obj0 = 0 ; | |
19550 | PyObject * obj1 = 0 ; | |
19551 | PyObject * obj2 = 0 ; | |
19552 | PyObject * obj3 = 0 ; | |
19553 | char * kwnames[] = { | |
19554 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
19555 | }; | |
19556 | ||
19557 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19559 | if (!SWIG_IsOK(res1)) { | |
19560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19561 | } | |
19562 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19563 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19564 | if (!SWIG_IsOK(res2)) { | |
19565 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19566 | } | |
19567 | if (!argp2) { | |
19568 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19569 | } | |
19570 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19571 | { | |
19572 | arg3 = &temp3; | |
19573 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19574 | } | |
19575 | if (obj3) { | |
19576 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
19577 | if (!SWIG_IsOK(ecode4)) { | |
19578 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
19579 | } | |
19580 | arg4 = static_cast< bool >(val4); | |
19581 | } | |
19582 | { | |
19583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19584 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19585 | wxPyEndAllowThreads(__tstate); | |
19586 | if (PyErr_Occurred()) SWIG_fail; | |
19587 | } | |
19588 | resultobj = SWIG_Py_Void(); | |
19589 | return resultobj; | |
19590 | fail: | |
19591 | return NULL; | |
19592 | } | |
19593 | ||
19594 | ||
19595 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19596 | PyObject *resultobj = 0; | |
19597 | wxDC *arg1 = (wxDC *) 0 ; | |
19598 | wxString *arg2 = 0 ; | |
19599 | int arg3 ; | |
19600 | int arg4 ; | |
19601 | void *argp1 = 0 ; | |
19602 | int res1 = 0 ; | |
19603 | bool temp2 = false ; | |
19604 | int val3 ; | |
19605 | int ecode3 = 0 ; | |
19606 | int val4 ; | |
19607 | int ecode4 = 0 ; | |
19608 | PyObject * obj0 = 0 ; | |
19609 | PyObject * obj1 = 0 ; | |
19610 | PyObject * obj2 = 0 ; | |
19611 | PyObject * obj3 = 0 ; | |
19612 | char * kwnames[] = { | |
19613 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
19614 | }; | |
19615 | ||
19616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19618 | if (!SWIG_IsOK(res1)) { | |
19619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19620 | } | |
19621 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19622 | { | |
19623 | arg2 = wxString_in_helper(obj1); | |
19624 | if (arg2 == NULL) SWIG_fail; | |
19625 | temp2 = true; | |
19626 | } | |
19627 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19628 | if (!SWIG_IsOK(ecode3)) { | |
19629 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
19630 | } | |
19631 | arg3 = static_cast< int >(val3); | |
19632 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19633 | if (!SWIG_IsOK(ecode4)) { | |
19634 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
19635 | } | |
19636 | arg4 = static_cast< int >(val4); | |
19637 | { | |
19638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19639 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
19640 | wxPyEndAllowThreads(__tstate); | |
19641 | if (PyErr_Occurred()) SWIG_fail; | |
19642 | } | |
19643 | resultobj = SWIG_Py_Void(); | |
19644 | { | |
19645 | if (temp2) | |
19646 | delete arg2; | |
19647 | } | |
19648 | return resultobj; | |
19649 | fail: | |
19650 | { | |
19651 | if (temp2) | |
19652 | delete arg2; | |
19653 | } | |
19654 | return NULL; | |
19655 | } | |
19656 | ||
19657 | ||
19658 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19659 | PyObject *resultobj = 0; | |
19660 | wxDC *arg1 = (wxDC *) 0 ; | |
19661 | wxString *arg2 = 0 ; | |
19662 | wxPoint *arg3 = 0 ; | |
19663 | void *argp1 = 0 ; | |
19664 | int res1 = 0 ; | |
19665 | bool temp2 = false ; | |
19666 | wxPoint temp3 ; | |
19667 | PyObject * obj0 = 0 ; | |
19668 | PyObject * obj1 = 0 ; | |
19669 | PyObject * obj2 = 0 ; | |
19670 | char * kwnames[] = { | |
19671 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
19672 | }; | |
19673 | ||
19674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19675 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19676 | if (!SWIG_IsOK(res1)) { | |
19677 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19678 | } | |
19679 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19680 | { | |
19681 | arg2 = wxString_in_helper(obj1); | |
19682 | if (arg2 == NULL) SWIG_fail; | |
19683 | temp2 = true; | |
19684 | } | |
19685 | { | |
19686 | arg3 = &temp3; | |
19687 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19688 | } | |
19689 | { | |
19690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19691 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
19692 | wxPyEndAllowThreads(__tstate); | |
19693 | if (PyErr_Occurred()) SWIG_fail; | |
19694 | } | |
19695 | resultobj = SWIG_Py_Void(); | |
19696 | { | |
19697 | if (temp2) | |
19698 | delete arg2; | |
19699 | } | |
19700 | return resultobj; | |
19701 | fail: | |
19702 | { | |
19703 | if (temp2) | |
19704 | delete arg2; | |
19705 | } | |
19706 | return NULL; | |
19707 | } | |
19708 | ||
19709 | ||
19710 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19711 | PyObject *resultobj = 0; | |
19712 | wxDC *arg1 = (wxDC *) 0 ; | |
19713 | wxString *arg2 = 0 ; | |
19714 | int arg3 ; | |
19715 | int arg4 ; | |
19716 | double arg5 ; | |
19717 | void *argp1 = 0 ; | |
19718 | int res1 = 0 ; | |
19719 | bool temp2 = false ; | |
19720 | int val3 ; | |
19721 | int ecode3 = 0 ; | |
19722 | int val4 ; | |
19723 | int ecode4 = 0 ; | |
19724 | double val5 ; | |
19725 | int ecode5 = 0 ; | |
19726 | PyObject * obj0 = 0 ; | |
19727 | PyObject * obj1 = 0 ; | |
19728 | PyObject * obj2 = 0 ; | |
19729 | PyObject * obj3 = 0 ; | |
19730 | PyObject * obj4 = 0 ; | |
19731 | char * kwnames[] = { | |
19732 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
19733 | }; | |
19734 | ||
19735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19737 | if (!SWIG_IsOK(res1)) { | |
19738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19739 | } | |
19740 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19741 | { | |
19742 | arg2 = wxString_in_helper(obj1); | |
19743 | if (arg2 == NULL) SWIG_fail; | |
19744 | temp2 = true; | |
19745 | } | |
19746 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19747 | if (!SWIG_IsOK(ecode3)) { | |
19748 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
19749 | } | |
19750 | arg3 = static_cast< int >(val3); | |
19751 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19752 | if (!SWIG_IsOK(ecode4)) { | |
19753 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
19754 | } | |
19755 | arg4 = static_cast< int >(val4); | |
19756 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
19757 | if (!SWIG_IsOK(ecode5)) { | |
19758 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
19759 | } | |
19760 | arg5 = static_cast< double >(val5); | |
19761 | { | |
19762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19763 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
19764 | wxPyEndAllowThreads(__tstate); | |
19765 | if (PyErr_Occurred()) SWIG_fail; | |
19766 | } | |
19767 | resultobj = SWIG_Py_Void(); | |
19768 | { | |
19769 | if (temp2) | |
19770 | delete arg2; | |
19771 | } | |
19772 | return resultobj; | |
19773 | fail: | |
19774 | { | |
19775 | if (temp2) | |
19776 | delete arg2; | |
19777 | } | |
19778 | return NULL; | |
19779 | } | |
19780 | ||
19781 | ||
19782 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19783 | PyObject *resultobj = 0; | |
19784 | wxDC *arg1 = (wxDC *) 0 ; | |
19785 | wxString *arg2 = 0 ; | |
19786 | wxPoint *arg3 = 0 ; | |
19787 | double arg4 ; | |
19788 | void *argp1 = 0 ; | |
19789 | int res1 = 0 ; | |
19790 | bool temp2 = false ; | |
19791 | wxPoint temp3 ; | |
19792 | double val4 ; | |
19793 | int ecode4 = 0 ; | |
19794 | PyObject * obj0 = 0 ; | |
19795 | PyObject * obj1 = 0 ; | |
19796 | PyObject * obj2 = 0 ; | |
19797 | PyObject * obj3 = 0 ; | |
19798 | char * kwnames[] = { | |
19799 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
19800 | }; | |
19801 | ||
19802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19804 | if (!SWIG_IsOK(res1)) { | |
19805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19806 | } | |
19807 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19808 | { | |
19809 | arg2 = wxString_in_helper(obj1); | |
19810 | if (arg2 == NULL) SWIG_fail; | |
19811 | temp2 = true; | |
19812 | } | |
19813 | { | |
19814 | arg3 = &temp3; | |
19815 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19816 | } | |
19817 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19818 | if (!SWIG_IsOK(ecode4)) { | |
19819 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
19820 | } | |
19821 | arg4 = static_cast< double >(val4); | |
19822 | { | |
19823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19824 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19825 | wxPyEndAllowThreads(__tstate); | |
19826 | if (PyErr_Occurred()) SWIG_fail; | |
19827 | } | |
19828 | resultobj = SWIG_Py_Void(); | |
19829 | { | |
19830 | if (temp2) | |
19831 | delete arg2; | |
19832 | } | |
19833 | return resultobj; | |
19834 | fail: | |
19835 | { | |
19836 | if (temp2) | |
19837 | delete arg2; | |
19838 | } | |
19839 | return NULL; | |
19840 | } | |
19841 | ||
19842 | ||
19843 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19844 | PyObject *resultobj = 0; | |
19845 | wxDC *arg1 = (wxDC *) 0 ; | |
19846 | int arg2 ; | |
19847 | int arg3 ; | |
19848 | int arg4 ; | |
19849 | int arg5 ; | |
19850 | wxDC *arg6 = (wxDC *) 0 ; | |
19851 | int arg7 ; | |
19852 | int arg8 ; | |
19853 | int arg9 = (int) wxCOPY ; | |
19854 | bool arg10 = (bool) false ; | |
19855 | int arg11 = (int) -1 ; | |
19856 | int arg12 = (int) -1 ; | |
19857 | bool result; | |
19858 | void *argp1 = 0 ; | |
19859 | int res1 = 0 ; | |
19860 | int val2 ; | |
19861 | int ecode2 = 0 ; | |
19862 | int val3 ; | |
19863 | int ecode3 = 0 ; | |
19864 | int val4 ; | |
19865 | int ecode4 = 0 ; | |
19866 | int val5 ; | |
19867 | int ecode5 = 0 ; | |
19868 | void *argp6 = 0 ; | |
19869 | int res6 = 0 ; | |
19870 | int val7 ; | |
19871 | int ecode7 = 0 ; | |
19872 | int val8 ; | |
19873 | int ecode8 = 0 ; | |
19874 | int val9 ; | |
19875 | int ecode9 = 0 ; | |
19876 | bool val10 ; | |
19877 | int ecode10 = 0 ; | |
19878 | int val11 ; | |
19879 | int ecode11 = 0 ; | |
19880 | int val12 ; | |
19881 | int ecode12 = 0 ; | |
19882 | PyObject * obj0 = 0 ; | |
19883 | PyObject * obj1 = 0 ; | |
19884 | PyObject * obj2 = 0 ; | |
19885 | PyObject * obj3 = 0 ; | |
19886 | PyObject * obj4 = 0 ; | |
19887 | PyObject * obj5 = 0 ; | |
19888 | PyObject * obj6 = 0 ; | |
19889 | PyObject * obj7 = 0 ; | |
19890 | PyObject * obj8 = 0 ; | |
19891 | PyObject * obj9 = 0 ; | |
19892 | PyObject * obj10 = 0 ; | |
19893 | PyObject * obj11 = 0 ; | |
19894 | char * kwnames[] = { | |
19895 | (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 | |
19896 | }; | |
19897 | ||
19898 | 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; | |
19899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19900 | if (!SWIG_IsOK(res1)) { | |
19901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19902 | } | |
19903 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19904 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19905 | if (!SWIG_IsOK(ecode2)) { | |
19906 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
19907 | } | |
19908 | arg2 = static_cast< int >(val2); | |
19909 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19910 | if (!SWIG_IsOK(ecode3)) { | |
19911 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
19912 | } | |
19913 | arg3 = static_cast< int >(val3); | |
19914 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19915 | if (!SWIG_IsOK(ecode4)) { | |
19916 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
19917 | } | |
19918 | arg4 = static_cast< int >(val4); | |
19919 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19920 | if (!SWIG_IsOK(ecode5)) { | |
19921 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
19922 | } | |
19923 | arg5 = static_cast< int >(val5); | |
19924 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19925 | if (!SWIG_IsOK(res6)) { | |
19926 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
19927 | } | |
19928 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
19929 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
19930 | if (!SWIG_IsOK(ecode7)) { | |
19931 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
19932 | } | |
19933 | arg7 = static_cast< int >(val7); | |
19934 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
19935 | if (!SWIG_IsOK(ecode8)) { | |
19936 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
19937 | } | |
19938 | arg8 = static_cast< int >(val8); | |
19939 | if (obj8) { | |
19940 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
19941 | if (!SWIG_IsOK(ecode9)) { | |
19942 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
19943 | } | |
19944 | arg9 = static_cast< int >(val9); | |
19945 | } | |
19946 | if (obj9) { | |
19947 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
19948 | if (!SWIG_IsOK(ecode10)) { | |
19949 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
19950 | } | |
19951 | arg10 = static_cast< bool >(val10); | |
19952 | } | |
19953 | if (obj10) { | |
19954 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
19955 | if (!SWIG_IsOK(ecode11)) { | |
19956 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
19957 | } | |
19958 | arg11 = static_cast< int >(val11); | |
19959 | } | |
19960 | if (obj11) { | |
19961 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
19962 | if (!SWIG_IsOK(ecode12)) { | |
19963 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
19964 | } | |
19965 | arg12 = static_cast< int >(val12); | |
19966 | } | |
19967 | { | |
19968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19969 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
19970 | wxPyEndAllowThreads(__tstate); | |
19971 | if (PyErr_Occurred()) SWIG_fail; | |
19972 | } | |
19973 | { | |
19974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19975 | } | |
19976 | return resultobj; | |
19977 | fail: | |
19978 | return NULL; | |
19979 | } | |
19980 | ||
19981 | ||
19982 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19983 | PyObject *resultobj = 0; | |
19984 | wxDC *arg1 = (wxDC *) 0 ; | |
19985 | wxPoint *arg2 = 0 ; | |
19986 | wxSize *arg3 = 0 ; | |
19987 | wxDC *arg4 = (wxDC *) 0 ; | |
19988 | wxPoint *arg5 = 0 ; | |
19989 | int arg6 = (int) wxCOPY ; | |
19990 | bool arg7 = (bool) false ; | |
19991 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
19992 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
19993 | bool result; | |
19994 | void *argp1 = 0 ; | |
19995 | int res1 = 0 ; | |
19996 | wxPoint temp2 ; | |
19997 | wxSize temp3 ; | |
19998 | void *argp4 = 0 ; | |
19999 | int res4 = 0 ; | |
20000 | wxPoint temp5 ; | |
20001 | int val6 ; | |
20002 | int ecode6 = 0 ; | |
20003 | bool val7 ; | |
20004 | int ecode7 = 0 ; | |
20005 | wxPoint temp8 ; | |
20006 | PyObject * obj0 = 0 ; | |
20007 | PyObject * obj1 = 0 ; | |
20008 | PyObject * obj2 = 0 ; | |
20009 | PyObject * obj3 = 0 ; | |
20010 | PyObject * obj4 = 0 ; | |
20011 | PyObject * obj5 = 0 ; | |
20012 | PyObject * obj6 = 0 ; | |
20013 | PyObject * obj7 = 0 ; | |
20014 | char * kwnames[] = { | |
20015 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
20016 | }; | |
20017 | ||
20018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20019 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20020 | if (!SWIG_IsOK(res1)) { | |
20021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20022 | } | |
20023 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20024 | { | |
20025 | arg2 = &temp2; | |
20026 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20027 | } | |
20028 | { | |
20029 | arg3 = &temp3; | |
20030 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
20031 | } | |
20032 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20033 | if (!SWIG_IsOK(res4)) { | |
20034 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
20035 | } | |
20036 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
20037 | { | |
20038 | arg5 = &temp5; | |
20039 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
20040 | } | |
20041 | if (obj5) { | |
20042 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20043 | if (!SWIG_IsOK(ecode6)) { | |
20044 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
20045 | } | |
20046 | arg6 = static_cast< int >(val6); | |
20047 | } | |
20048 | if (obj6) { | |
20049 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
20050 | if (!SWIG_IsOK(ecode7)) { | |
20051 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
20052 | } | |
20053 | arg7 = static_cast< bool >(val7); | |
20054 | } | |
20055 | if (obj7) { | |
093d3ff1 | 20056 | { |
0085ce49 RD |
20057 | arg8 = &temp8; |
20058 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 20059 | } |
0085ce49 RD |
20060 | } |
20061 | { | |
20062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20063 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
20064 | wxPyEndAllowThreads(__tstate); | |
20065 | if (PyErr_Occurred()) SWIG_fail; | |
20066 | } | |
20067 | { | |
20068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20069 | } | |
20070 | return resultobj; | |
20071 | fail: | |
20072 | return NULL; | |
20073 | } | |
20074 | ||
20075 | ||
cbfc9df6 RD |
20076 | SWIGINTERN PyObject *_wrap_DC_StretchBlit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20077 | PyObject *resultobj = 0; | |
20078 | wxDC *arg1 = (wxDC *) 0 ; | |
20079 | int arg2 ; | |
20080 | int arg3 ; | |
20081 | int arg4 ; | |
20082 | int arg5 ; | |
20083 | wxDC *arg6 = (wxDC *) 0 ; | |
20084 | int arg7 ; | |
20085 | int arg8 ; | |
20086 | int arg9 ; | |
20087 | int arg10 ; | |
20088 | int arg11 = (int) wxCOPY ; | |
20089 | bool arg12 = (bool) false ; | |
20090 | int arg13 = (int) wxDefaultCoord ; | |
20091 | int arg14 = (int) wxDefaultCoord ; | |
20092 | bool result; | |
20093 | void *argp1 = 0 ; | |
20094 | int res1 = 0 ; | |
20095 | int val2 ; | |
20096 | int ecode2 = 0 ; | |
20097 | int val3 ; | |
20098 | int ecode3 = 0 ; | |
20099 | int val4 ; | |
20100 | int ecode4 = 0 ; | |
20101 | int val5 ; | |
20102 | int ecode5 = 0 ; | |
20103 | void *argp6 = 0 ; | |
20104 | int res6 = 0 ; | |
20105 | int val7 ; | |
20106 | int ecode7 = 0 ; | |
20107 | int val8 ; | |
20108 | int ecode8 = 0 ; | |
20109 | int val9 ; | |
20110 | int ecode9 = 0 ; | |
20111 | int val10 ; | |
20112 | int ecode10 = 0 ; | |
20113 | int val11 ; | |
20114 | int ecode11 = 0 ; | |
20115 | bool val12 ; | |
20116 | int ecode12 = 0 ; | |
20117 | int val13 ; | |
20118 | int ecode13 = 0 ; | |
20119 | int val14 ; | |
20120 | int ecode14 = 0 ; | |
20121 | PyObject * obj0 = 0 ; | |
20122 | PyObject * obj1 = 0 ; | |
20123 | PyObject * obj2 = 0 ; | |
20124 | PyObject * obj3 = 0 ; | |
20125 | PyObject * obj4 = 0 ; | |
20126 | PyObject * obj5 = 0 ; | |
20127 | PyObject * obj6 = 0 ; | |
20128 | PyObject * obj7 = 0 ; | |
20129 | PyObject * obj8 = 0 ; | |
20130 | PyObject * obj9 = 0 ; | |
20131 | PyObject * obj10 = 0 ; | |
20132 | PyObject * obj11 = 0 ; | |
20133 | PyObject * obj12 = 0 ; | |
20134 | PyObject * obj13 = 0 ; | |
20135 | char * kwnames[] = { | |
20136 | (char *) "self",(char *) "dstX",(char *) "dstY",(char *) "dstWidth",(char *) "dstHeight",(char *) "source",(char *) "srcX",(char *) "srcY",(char *) "srcWidth",(char *) "srcHeight",(char *) "rop",(char *) "useMask",(char *) "srcMaskX",(char *) "srcMaskY", NULL | |
20137 | }; | |
20138 | ||
20139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOOO|OOOO:DC_StretchBlit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail; | |
20140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20141 | if (!SWIG_IsOK(res1)) { | |
20142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20143 | } | |
20144 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20145 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20146 | if (!SWIG_IsOK(ecode2)) { | |
20147 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_StretchBlit" "', expected argument " "2"" of type '" "int""'"); | |
20148 | } | |
20149 | arg2 = static_cast< int >(val2); | |
20150 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20151 | if (!SWIG_IsOK(ecode3)) { | |
20152 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_StretchBlit" "', expected argument " "3"" of type '" "int""'"); | |
20153 | } | |
20154 | arg3 = static_cast< int >(val3); | |
20155 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20156 | if (!SWIG_IsOK(ecode4)) { | |
20157 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_StretchBlit" "', expected argument " "4"" of type '" "int""'"); | |
20158 | } | |
20159 | arg4 = static_cast< int >(val4); | |
20160 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20161 | if (!SWIG_IsOK(ecode5)) { | |
20162 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_StretchBlit" "', expected argument " "5"" of type '" "int""'"); | |
20163 | } | |
20164 | arg5 = static_cast< int >(val5); | |
20165 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20166 | if (!SWIG_IsOK(res6)) { | |
20167 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_StretchBlit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
20168 | } | |
20169 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
20170 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
20171 | if (!SWIG_IsOK(ecode7)) { | |
20172 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlit" "', expected argument " "7"" of type '" "int""'"); | |
20173 | } | |
20174 | arg7 = static_cast< int >(val7); | |
20175 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
20176 | if (!SWIG_IsOK(ecode8)) { | |
20177 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlit" "', expected argument " "8"" of type '" "int""'"); | |
20178 | } | |
20179 | arg8 = static_cast< int >(val8); | |
20180 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
20181 | if (!SWIG_IsOK(ecode9)) { | |
20182 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_StretchBlit" "', expected argument " "9"" of type '" "int""'"); | |
20183 | } | |
20184 | arg9 = static_cast< int >(val9); | |
20185 | ecode10 = SWIG_AsVal_int(obj9, &val10); | |
20186 | if (!SWIG_IsOK(ecode10)) { | |
20187 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_StretchBlit" "', expected argument " "10"" of type '" "int""'"); | |
20188 | } | |
20189 | arg10 = static_cast< int >(val10); | |
20190 | if (obj10) { | |
20191 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
20192 | if (!SWIG_IsOK(ecode11)) { | |
20193 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_StretchBlit" "', expected argument " "11"" of type '" "int""'"); | |
20194 | } | |
20195 | arg11 = static_cast< int >(val11); | |
20196 | } | |
20197 | if (obj11) { | |
20198 | ecode12 = SWIG_AsVal_bool(obj11, &val12); | |
20199 | if (!SWIG_IsOK(ecode12)) { | |
20200 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_StretchBlit" "', expected argument " "12"" of type '" "bool""'"); | |
20201 | } | |
20202 | arg12 = static_cast< bool >(val12); | |
20203 | } | |
20204 | if (obj12) { | |
20205 | ecode13 = SWIG_AsVal_int(obj12, &val13); | |
20206 | if (!SWIG_IsOK(ecode13)) { | |
20207 | SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "DC_StretchBlit" "', expected argument " "13"" of type '" "int""'"); | |
20208 | } | |
20209 | arg13 = static_cast< int >(val13); | |
20210 | } | |
20211 | if (obj13) { | |
20212 | ecode14 = SWIG_AsVal_int(obj13, &val14); | |
20213 | if (!SWIG_IsOK(ecode14)) { | |
20214 | SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "DC_StretchBlit" "', expected argument " "14"" of type '" "int""'"); | |
20215 | } | |
20216 | arg14 = static_cast< int >(val14); | |
20217 | } | |
20218 | { | |
20219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20220 | result = (bool)(arg1)->StretchBlit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14); | |
20221 | wxPyEndAllowThreads(__tstate); | |
20222 | if (PyErr_Occurred()) SWIG_fail; | |
20223 | } | |
20224 | { | |
20225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20226 | } | |
20227 | return resultobj; | |
20228 | fail: | |
20229 | return NULL; | |
20230 | } | |
20231 | ||
20232 | ||
20233 | SWIGINTERN PyObject *_wrap_DC_StretchBlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20234 | PyObject *resultobj = 0; | |
20235 | wxDC *arg1 = (wxDC *) 0 ; | |
20236 | wxPoint *arg2 = 0 ; | |
20237 | wxSize *arg3 = 0 ; | |
20238 | wxDC *arg4 = (wxDC *) 0 ; | |
20239 | wxPoint *arg5 = 0 ; | |
20240 | wxSize *arg6 = 0 ; | |
20241 | int arg7 = (int) wxCOPY ; | |
20242 | bool arg8 = (bool) false ; | |
20243 | wxPoint const &arg9_defvalue = wxDefaultPosition ; | |
20244 | wxPoint *arg9 = (wxPoint *) &arg9_defvalue ; | |
20245 | bool result; | |
20246 | void *argp1 = 0 ; | |
20247 | int res1 = 0 ; | |
20248 | wxPoint temp2 ; | |
20249 | wxSize temp3 ; | |
20250 | void *argp4 = 0 ; | |
20251 | int res4 = 0 ; | |
20252 | wxPoint temp5 ; | |
20253 | wxSize temp6 ; | |
20254 | int val7 ; | |
20255 | int ecode7 = 0 ; | |
20256 | bool val8 ; | |
20257 | int ecode8 = 0 ; | |
20258 | wxPoint temp9 ; | |
20259 | PyObject * obj0 = 0 ; | |
20260 | PyObject * obj1 = 0 ; | |
20261 | PyObject * obj2 = 0 ; | |
20262 | PyObject * obj3 = 0 ; | |
20263 | PyObject * obj4 = 0 ; | |
20264 | PyObject * obj5 = 0 ; | |
20265 | PyObject * obj6 = 0 ; | |
20266 | PyObject * obj7 = 0 ; | |
20267 | PyObject * obj8 = 0 ; | |
20268 | char * kwnames[] = { | |
20269 | (char *) "self",(char *) "dstPt",(char *) "dstSize",(char *) "source",(char *) "srcPt",(char *) "srcSize",(char *) "rop",(char *) "useMask",(char *) "srcMaskPt", NULL | |
20270 | }; | |
20271 | ||
20272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOO:DC_StretchBlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; | |
20273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20274 | if (!SWIG_IsOK(res1)) { | |
20275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20276 | } | |
20277 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20278 | { | |
20279 | arg2 = &temp2; | |
20280 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20281 | } | |
20282 | { | |
20283 | arg3 = &temp3; | |
20284 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
20285 | } | |
20286 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20287 | if (!SWIG_IsOK(res4)) { | |
20288 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_StretchBlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
20289 | } | |
20290 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
20291 | { | |
20292 | arg5 = &temp5; | |
20293 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
20294 | } | |
20295 | { | |
20296 | arg6 = &temp6; | |
20297 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
20298 | } | |
20299 | if (obj6) { | |
20300 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
20301 | if (!SWIG_IsOK(ecode7)) { | |
20302 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlitPointSize" "', expected argument " "7"" of type '" "int""'"); | |
20303 | } | |
20304 | arg7 = static_cast< int >(val7); | |
20305 | } | |
20306 | if (obj7) { | |
20307 | ecode8 = SWIG_AsVal_bool(obj7, &val8); | |
20308 | if (!SWIG_IsOK(ecode8)) { | |
20309 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlitPointSize" "', expected argument " "8"" of type '" "bool""'"); | |
20310 | } | |
20311 | arg8 = static_cast< bool >(val8); | |
20312 | } | |
20313 | if (obj8) { | |
20314 | { | |
20315 | arg9 = &temp9; | |
20316 | if ( ! wxPoint_helper(obj8, &arg9)) SWIG_fail; | |
20317 | } | |
20318 | } | |
20319 | { | |
20320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20321 | result = (bool)(arg1)->StretchBlit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,(wxPoint const &)*arg9); | |
20322 | wxPyEndAllowThreads(__tstate); | |
20323 | if (PyErr_Occurred()) SWIG_fail; | |
20324 | } | |
20325 | { | |
20326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20327 | } | |
20328 | return resultobj; | |
20329 | fail: | |
20330 | return NULL; | |
20331 | } | |
20332 | ||
20333 | ||
8f514ab4 RD |
20334 | SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20335 | PyObject *resultobj = 0; | |
20336 | wxDC *arg1 = (wxDC *) 0 ; | |
20337 | wxRect *arg2 = (wxRect *) NULL ; | |
20338 | SwigValueWrapper<wxBitmap > result; | |
20339 | void *argp1 = 0 ; | |
20340 | int res1 = 0 ; | |
20341 | void *argp2 = 0 ; | |
20342 | int res2 = 0 ; | |
20343 | PyObject * obj0 = 0 ; | |
20344 | PyObject * obj1 = 0 ; | |
20345 | char * kwnames[] = { | |
20346 | (char *) "self",(char *) "subrect", NULL | |
20347 | }; | |
20348 | ||
20349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
20350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20351 | if (!SWIG_IsOK(res1)) { | |
20352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20353 | } | |
20354 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20355 | if (obj1) { | |
20356 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
20357 | if (!SWIG_IsOK(res2)) { | |
20358 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'"); | |
20359 | } | |
20360 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
20361 | } | |
20362 | { | |
20363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20364 | result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2); | |
20365 | wxPyEndAllowThreads(__tstate); | |
20366 | if (PyErr_Occurred()) SWIG_fail; | |
20367 | } | |
20368 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
20369 | return resultobj; | |
20370 | fail: | |
20371 | return NULL; | |
20372 | } | |
20373 | ||
20374 | ||
0085ce49 RD |
20375 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20376 | PyObject *resultobj = 0; | |
20377 | wxDC *arg1 = (wxDC *) 0 ; | |
20378 | int arg2 ; | |
20379 | int arg3 ; | |
20380 | int arg4 ; | |
20381 | int arg5 ; | |
20382 | void *argp1 = 0 ; | |
20383 | int res1 = 0 ; | |
20384 | int val2 ; | |
20385 | int ecode2 = 0 ; | |
20386 | int val3 ; | |
20387 | int ecode3 = 0 ; | |
20388 | int val4 ; | |
20389 | int ecode4 = 0 ; | |
20390 | int val5 ; | |
20391 | int ecode5 = 0 ; | |
20392 | PyObject * obj0 = 0 ; | |
20393 | PyObject * obj1 = 0 ; | |
20394 | PyObject * obj2 = 0 ; | |
20395 | PyObject * obj3 = 0 ; | |
20396 | PyObject * obj4 = 0 ; | |
20397 | char * kwnames[] = { | |
20398 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
20399 | }; | |
20400 | ||
20401 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20402 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20403 | if (!SWIG_IsOK(res1)) { | |
20404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20405 | } | |
20406 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20407 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20408 | if (!SWIG_IsOK(ecode2)) { | |
20409 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
20410 | } | |
20411 | arg2 = static_cast< int >(val2); | |
20412 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20413 | if (!SWIG_IsOK(ecode3)) { | |
20414 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
20415 | } | |
20416 | arg3 = static_cast< int >(val3); | |
20417 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20418 | if (!SWIG_IsOK(ecode4)) { | |
20419 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
20420 | } | |
20421 | arg4 = static_cast< int >(val4); | |
20422 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20423 | if (!SWIG_IsOK(ecode5)) { | |
20424 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
20425 | } | |
20426 | arg5 = static_cast< int >(val5); | |
20427 | { | |
20428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20429 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
20430 | wxPyEndAllowThreads(__tstate); | |
20431 | if (PyErr_Occurred()) SWIG_fail; | |
20432 | } | |
20433 | resultobj = SWIG_Py_Void(); | |
20434 | return resultobj; | |
20435 | fail: | |
20436 | return NULL; | |
20437 | } | |
20438 | ||
20439 | ||
20440 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20441 | PyObject *resultobj = 0; | |
20442 | wxDC *arg1 = (wxDC *) 0 ; | |
20443 | wxPoint *arg2 = 0 ; | |
20444 | wxSize *arg3 = 0 ; | |
20445 | void *argp1 = 0 ; | |
20446 | int res1 = 0 ; | |
20447 | wxPoint temp2 ; | |
20448 | wxSize temp3 ; | |
20449 | PyObject * obj0 = 0 ; | |
20450 | PyObject * obj1 = 0 ; | |
20451 | PyObject * obj2 = 0 ; | |
20452 | char * kwnames[] = { | |
20453 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
20454 | }; | |
20455 | ||
20456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20458 | if (!SWIG_IsOK(res1)) { | |
20459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20460 | } | |
20461 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20462 | { | |
20463 | arg2 = &temp2; | |
20464 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20465 | } | |
20466 | { | |
20467 | arg3 = &temp3; | |
20468 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
20469 | } | |
20470 | { | |
20471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20472 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
20473 | wxPyEndAllowThreads(__tstate); | |
20474 | if (PyErr_Occurred()) SWIG_fail; | |
20475 | } | |
20476 | resultobj = SWIG_Py_Void(); | |
20477 | return resultobj; | |
20478 | fail: | |
20479 | return NULL; | |
20480 | } | |
20481 | ||
20482 | ||
20483 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20484 | PyObject *resultobj = 0; | |
20485 | wxDC *arg1 = (wxDC *) 0 ; | |
20486 | wxRegion *arg2 = 0 ; | |
20487 | void *argp1 = 0 ; | |
20488 | int res1 = 0 ; | |
20489 | void *argp2 = 0 ; | |
20490 | int res2 = 0 ; | |
20491 | PyObject * obj0 = 0 ; | |
20492 | PyObject * obj1 = 0 ; | |
20493 | char * kwnames[] = { | |
20494 | (char *) "self",(char *) "region", NULL | |
20495 | }; | |
20496 | ||
20497 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
20498 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20499 | if (!SWIG_IsOK(res1)) { | |
20500 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20501 | } | |
20502 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20503 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
20504 | if (!SWIG_IsOK(res2)) { | |
20505 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20506 | } | |
20507 | if (!argp2) { | |
20508 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20509 | } | |
20510 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
20511 | { | |
20512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20513 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
20514 | wxPyEndAllowThreads(__tstate); | |
20515 | if (PyErr_Occurred()) SWIG_fail; | |
20516 | } | |
20517 | resultobj = SWIG_Py_Void(); | |
20518 | return resultobj; | |
20519 | fail: | |
20520 | return NULL; | |
20521 | } | |
20522 | ||
20523 | ||
20524 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20525 | PyObject *resultobj = 0; | |
20526 | wxDC *arg1 = (wxDC *) 0 ; | |
20527 | wxRect *arg2 = 0 ; | |
20528 | void *argp1 = 0 ; | |
20529 | int res1 = 0 ; | |
20530 | wxRect temp2 ; | |
20531 | PyObject * obj0 = 0 ; | |
20532 | PyObject * obj1 = 0 ; | |
20533 | char * kwnames[] = { | |
20534 | (char *) "self",(char *) "rect", NULL | |
20535 | }; | |
20536 | ||
20537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
20538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20539 | if (!SWIG_IsOK(res1)) { | |
20540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20541 | } | |
20542 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20543 | { | |
20544 | arg2 = &temp2; | |
20545 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20546 | } | |
20547 | { | |
20548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20549 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
20550 | wxPyEndAllowThreads(__tstate); | |
20551 | if (PyErr_Occurred()) SWIG_fail; | |
20552 | } | |
20553 | resultobj = SWIG_Py_Void(); | |
20554 | return resultobj; | |
20555 | fail: | |
20556 | return NULL; | |
20557 | } | |
20558 | ||
20559 | ||
20560 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20561 | PyObject *resultobj = 0; | |
20562 | wxDC *arg1 = (wxDC *) 0 ; | |
20563 | int arg2 ; | |
20564 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20565 | int arg4 = (int) 0 ; | |
20566 | int arg5 = (int) 0 ; | |
20567 | void *argp1 = 0 ; | |
20568 | int res1 = 0 ; | |
20569 | int val4 ; | |
20570 | int ecode4 = 0 ; | |
20571 | int val5 ; | |
20572 | int ecode5 = 0 ; | |
20573 | PyObject * obj0 = 0 ; | |
20574 | PyObject * obj1 = 0 ; | |
20575 | PyObject * obj2 = 0 ; | |
20576 | PyObject * obj3 = 0 ; | |
20577 | char * kwnames[] = { | |
20578 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
20579 | }; | |
20580 | ||
20581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20582 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20583 | if (!SWIG_IsOK(res1)) { | |
20584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20585 | } | |
20586 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20587 | { | |
20588 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20589 | if (arg3 == NULL) SWIG_fail; | |
20590 | } | |
20591 | if (obj2) { | |
20592 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20593 | if (!SWIG_IsOK(ecode4)) { | |
20594 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
20595 | } | |
20596 | arg4 = static_cast< int >(val4); | |
20597 | } | |
20598 | if (obj3) { | |
20599 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20600 | if (!SWIG_IsOK(ecode5)) { | |
20601 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
20602 | } | |
20603 | arg5 = static_cast< int >(val5); | |
20604 | } | |
20605 | { | |
20606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20607 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
20608 | wxPyEndAllowThreads(__tstate); | |
20609 | if (PyErr_Occurred()) SWIG_fail; | |
20610 | } | |
20611 | resultobj = SWIG_Py_Void(); | |
20612 | { | |
20613 | if (arg3) delete [] arg3; | |
20614 | } | |
20615 | return resultobj; | |
20616 | fail: | |
20617 | { | |
20618 | if (arg3) delete [] arg3; | |
20619 | } | |
20620 | return NULL; | |
20621 | } | |
20622 | ||
20623 | ||
20624 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20625 | PyObject *resultobj = 0; | |
20626 | wxDC *arg1 = (wxDC *) 0 ; | |
20627 | int arg2 ; | |
20628 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20629 | int arg4 = (int) 0 ; | |
20630 | int arg5 = (int) 0 ; | |
20631 | int arg6 = (int) wxODDEVEN_RULE ; | |
20632 | void *argp1 = 0 ; | |
20633 | int res1 = 0 ; | |
20634 | int val4 ; | |
20635 | int ecode4 = 0 ; | |
20636 | int val5 ; | |
20637 | int ecode5 = 0 ; | |
20638 | int val6 ; | |
20639 | int ecode6 = 0 ; | |
20640 | PyObject * obj0 = 0 ; | |
20641 | PyObject * obj1 = 0 ; | |
20642 | PyObject * obj2 = 0 ; | |
20643 | PyObject * obj3 = 0 ; | |
20644 | PyObject * obj4 = 0 ; | |
20645 | char * kwnames[] = { | |
20646 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
20647 | }; | |
20648 | ||
20649 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20650 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20651 | if (!SWIG_IsOK(res1)) { | |
20652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20653 | } | |
20654 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20655 | { | |
20656 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20657 | if (arg3 == NULL) SWIG_fail; | |
20658 | } | |
20659 | if (obj2) { | |
20660 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20661 | if (!SWIG_IsOK(ecode4)) { | |
20662 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
20663 | } | |
20664 | arg4 = static_cast< int >(val4); | |
20665 | } | |
20666 | if (obj3) { | |
20667 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20668 | if (!SWIG_IsOK(ecode5)) { | |
20669 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
20670 | } | |
20671 | arg5 = static_cast< int >(val5); | |
20672 | } | |
20673 | if (obj4) { | |
20674 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
20675 | if (!SWIG_IsOK(ecode6)) { | |
20676 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
20677 | } | |
20678 | arg6 = static_cast< int >(val6); | |
20679 | } | |
20680 | { | |
20681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20682 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
20683 | wxPyEndAllowThreads(__tstate); | |
20684 | if (PyErr_Occurred()) SWIG_fail; | |
20685 | } | |
20686 | resultobj = SWIG_Py_Void(); | |
20687 | { | |
20688 | if (arg3) delete [] arg3; | |
20689 | } | |
20690 | return resultobj; | |
20691 | fail: | |
20692 | { | |
20693 | if (arg3) delete [] arg3; | |
20694 | } | |
20695 | return NULL; | |
20696 | } | |
20697 | ||
20698 | ||
20699 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20700 | PyObject *resultobj = 0; | |
20701 | wxDC *arg1 = (wxDC *) 0 ; | |
20702 | wxString *arg2 = 0 ; | |
20703 | wxRect *arg3 = 0 ; | |
20704 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20705 | int arg5 = (int) -1 ; | |
20706 | void *argp1 = 0 ; | |
20707 | int res1 = 0 ; | |
20708 | bool temp2 = false ; | |
20709 | wxRect temp3 ; | |
20710 | int val4 ; | |
20711 | int ecode4 = 0 ; | |
20712 | int val5 ; | |
20713 | int ecode5 = 0 ; | |
20714 | PyObject * obj0 = 0 ; | |
20715 | PyObject * obj1 = 0 ; | |
20716 | PyObject * obj2 = 0 ; | |
20717 | PyObject * obj3 = 0 ; | |
20718 | PyObject * obj4 = 0 ; | |
20719 | char * kwnames[] = { | |
20720 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20721 | }; | |
20722 | ||
20723 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20724 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20725 | if (!SWIG_IsOK(res1)) { | |
20726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20727 | } | |
20728 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20729 | { | |
20730 | arg2 = wxString_in_helper(obj1); | |
20731 | if (arg2 == NULL) SWIG_fail; | |
20732 | temp2 = true; | |
20733 | } | |
20734 | { | |
20735 | arg3 = &temp3; | |
20736 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
20737 | } | |
20738 | if (obj3) { | |
20739 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20740 | if (!SWIG_IsOK(ecode4)) { | |
20741 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
20742 | } | |
20743 | arg4 = static_cast< int >(val4); | |
20744 | } | |
20745 | if (obj4) { | |
20746 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20747 | if (!SWIG_IsOK(ecode5)) { | |
20748 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
20749 | } | |
20750 | arg5 = static_cast< int >(val5); | |
20751 | } | |
20752 | { | |
20753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20754 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
20755 | wxPyEndAllowThreads(__tstate); | |
20756 | if (PyErr_Occurred()) SWIG_fail; | |
20757 | } | |
20758 | resultobj = SWIG_Py_Void(); | |
20759 | { | |
20760 | if (temp2) | |
20761 | delete arg2; | |
20762 | } | |
20763 | return resultobj; | |
20764 | fail: | |
20765 | { | |
20766 | if (temp2) | |
20767 | delete arg2; | |
20768 | } | |
20769 | return NULL; | |
20770 | } | |
20771 | ||
20772 | ||
20773 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20774 | PyObject *resultobj = 0; | |
20775 | wxDC *arg1 = (wxDC *) 0 ; | |
20776 | wxString *arg2 = 0 ; | |
20777 | wxBitmap *arg3 = 0 ; | |
20778 | wxRect *arg4 = 0 ; | |
20779 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20780 | int arg6 = (int) -1 ; | |
20781 | wxRect result; | |
20782 | void *argp1 = 0 ; | |
20783 | int res1 = 0 ; | |
20784 | bool temp2 = false ; | |
20785 | void *argp3 = 0 ; | |
20786 | int res3 = 0 ; | |
20787 | wxRect temp4 ; | |
20788 | int val5 ; | |
20789 | int ecode5 = 0 ; | |
20790 | int val6 ; | |
20791 | int ecode6 = 0 ; | |
20792 | PyObject * obj0 = 0 ; | |
20793 | PyObject * obj1 = 0 ; | |
20794 | PyObject * obj2 = 0 ; | |
20795 | PyObject * obj3 = 0 ; | |
20796 | PyObject * obj4 = 0 ; | |
20797 | PyObject * obj5 = 0 ; | |
20798 | char * kwnames[] = { | |
20799 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20800 | }; | |
20801 | ||
20802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20804 | if (!SWIG_IsOK(res1)) { | |
20805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20806 | } | |
20807 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20808 | { | |
20809 | arg2 = wxString_in_helper(obj1); | |
20810 | if (arg2 == NULL) SWIG_fail; | |
20811 | temp2 = true; | |
20812 | } | |
20813 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20814 | if (!SWIG_IsOK(res3)) { | |
20815 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20816 | } | |
20817 | if (!argp3) { | |
20818 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20819 | } | |
20820 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
20821 | { | |
20822 | arg4 = &temp4; | |
20823 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
20824 | } | |
20825 | if (obj4) { | |
20826 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20827 | if (!SWIG_IsOK(ecode5)) { | |
20828 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
20829 | } | |
20830 | arg5 = static_cast< int >(val5); | |
20831 | } | |
20832 | if (obj5) { | |
20833 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20834 | if (!SWIG_IsOK(ecode6)) { | |
20835 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
20836 | } | |
20837 | arg6 = static_cast< int >(val6); | |
20838 | } | |
20839 | { | |
20840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20841 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
20842 | wxPyEndAllowThreads(__tstate); | |
20843 | if (PyErr_Occurred()) SWIG_fail; | |
20844 | } | |
20845 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20846 | { | |
20847 | if (temp2) | |
20848 | delete arg2; | |
20849 | } | |
20850 | return resultobj; | |
20851 | fail: | |
20852 | { | |
20853 | if (temp2) | |
20854 | delete arg2; | |
20855 | } | |
20856 | return NULL; | |
20857 | } | |
20858 | ||
20859 | ||
20860 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20861 | PyObject *resultobj = 0; | |
20862 | wxDC *arg1 = (wxDC *) 0 ; | |
20863 | int arg2 ; | |
20864 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20865 | void *argp1 = 0 ; | |
20866 | int res1 = 0 ; | |
20867 | PyObject * obj0 = 0 ; | |
20868 | PyObject * obj1 = 0 ; | |
20869 | char * kwnames[] = { | |
20870 | (char *) "self",(char *) "points", NULL | |
20871 | }; | |
20872 | ||
20873 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
20874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20875 | if (!SWIG_IsOK(res1)) { | |
20876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20877 | } | |
20878 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20879 | { | |
20880 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20881 | if (arg3 == NULL) SWIG_fail; | |
20882 | } | |
20883 | { | |
20884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20885 | (arg1)->DrawSpline(arg2,arg3); | |
20886 | wxPyEndAllowThreads(__tstate); | |
20887 | if (PyErr_Occurred()) SWIG_fail; | |
20888 | } | |
20889 | resultobj = SWIG_Py_Void(); | |
20890 | { | |
20891 | if (arg3) delete [] arg3; | |
20892 | } | |
20893 | return resultobj; | |
20894 | fail: | |
20895 | { | |
20896 | if (arg3) delete [] arg3; | |
20897 | } | |
20898 | return NULL; | |
20899 | } | |
20900 | ||
20901 | ||
20902 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20903 | PyObject *resultobj = 0; | |
20904 | wxDC *arg1 = (wxDC *) 0 ; | |
20905 | void *argp1 = 0 ; | |
20906 | int res1 = 0 ; | |
20907 | PyObject *swig_obj[1] ; | |
20908 | ||
20909 | if (!args) SWIG_fail; | |
20910 | swig_obj[0] = args; | |
20911 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20912 | if (!SWIG_IsOK(res1)) { | |
20913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20914 | } | |
20915 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20916 | { | |
20917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20918 | (arg1)->Clear(); | |
20919 | wxPyEndAllowThreads(__tstate); | |
20920 | if (PyErr_Occurred()) SWIG_fail; | |
20921 | } | |
20922 | resultobj = SWIG_Py_Void(); | |
20923 | return resultobj; | |
20924 | fail: | |
20925 | return NULL; | |
20926 | } | |
20927 | ||
20928 | ||
20929 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20930 | PyObject *resultobj = 0; | |
20931 | wxDC *arg1 = (wxDC *) 0 ; | |
20932 | wxString *arg2 = 0 ; | |
20933 | bool result; | |
20934 | void *argp1 = 0 ; | |
20935 | int res1 = 0 ; | |
20936 | bool temp2 = false ; | |
20937 | PyObject * obj0 = 0 ; | |
20938 | PyObject * obj1 = 0 ; | |
20939 | char * kwnames[] = { | |
20940 | (char *) "self",(char *) "message", NULL | |
20941 | }; | |
20942 | ||
20943 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
20944 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20945 | if (!SWIG_IsOK(res1)) { | |
20946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20947 | } | |
20948 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20949 | { | |
20950 | arg2 = wxString_in_helper(obj1); | |
20951 | if (arg2 == NULL) SWIG_fail; | |
20952 | temp2 = true; | |
20953 | } | |
20954 | { | |
20955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20956 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
20957 | wxPyEndAllowThreads(__tstate); | |
20958 | if (PyErr_Occurred()) SWIG_fail; | |
20959 | } | |
20960 | { | |
20961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20962 | } | |
20963 | { | |
20964 | if (temp2) | |
20965 | delete arg2; | |
20966 | } | |
20967 | return resultobj; | |
20968 | fail: | |
20969 | { | |
20970 | if (temp2) | |
20971 | delete arg2; | |
20972 | } | |
20973 | return NULL; | |
20974 | } | |
20975 | ||
20976 | ||
20977 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20978 | PyObject *resultobj = 0; | |
20979 | wxDC *arg1 = (wxDC *) 0 ; | |
20980 | void *argp1 = 0 ; | |
20981 | int res1 = 0 ; | |
20982 | PyObject *swig_obj[1] ; | |
20983 | ||
20984 | if (!args) SWIG_fail; | |
20985 | swig_obj[0] = args; | |
20986 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20987 | if (!SWIG_IsOK(res1)) { | |
20988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20989 | } | |
20990 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20991 | { | |
20992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20993 | (arg1)->EndDoc(); | |
20994 | wxPyEndAllowThreads(__tstate); | |
20995 | if (PyErr_Occurred()) SWIG_fail; | |
20996 | } | |
20997 | resultobj = SWIG_Py_Void(); | |
20998 | return resultobj; | |
20999 | fail: | |
21000 | return NULL; | |
21001 | } | |
21002 | ||
21003 | ||
21004 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21005 | PyObject *resultobj = 0; | |
21006 | wxDC *arg1 = (wxDC *) 0 ; | |
21007 | void *argp1 = 0 ; | |
21008 | int res1 = 0 ; | |
21009 | PyObject *swig_obj[1] ; | |
21010 | ||
21011 | if (!args) SWIG_fail; | |
21012 | swig_obj[0] = args; | |
21013 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21014 | if (!SWIG_IsOK(res1)) { | |
21015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21016 | } | |
21017 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21018 | { | |
21019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21020 | (arg1)->StartPage(); | |
21021 | wxPyEndAllowThreads(__tstate); | |
21022 | if (PyErr_Occurred()) SWIG_fail; | |
21023 | } | |
21024 | resultobj = SWIG_Py_Void(); | |
21025 | return resultobj; | |
21026 | fail: | |
21027 | return NULL; | |
21028 | } | |
21029 | ||
21030 | ||
21031 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21032 | PyObject *resultobj = 0; | |
21033 | wxDC *arg1 = (wxDC *) 0 ; | |
21034 | void *argp1 = 0 ; | |
21035 | int res1 = 0 ; | |
21036 | PyObject *swig_obj[1] ; | |
21037 | ||
21038 | if (!args) SWIG_fail; | |
21039 | swig_obj[0] = args; | |
21040 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21041 | if (!SWIG_IsOK(res1)) { | |
21042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21043 | } | |
21044 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21045 | { | |
21046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21047 | (arg1)->EndPage(); | |
21048 | wxPyEndAllowThreads(__tstate); | |
21049 | if (PyErr_Occurred()) SWIG_fail; | |
21050 | } | |
21051 | resultobj = SWIG_Py_Void(); | |
21052 | return resultobj; | |
21053 | fail: | |
21054 | return NULL; | |
21055 | } | |
21056 | ||
21057 | ||
21058 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21059 | PyObject *resultobj = 0; | |
21060 | wxDC *arg1 = (wxDC *) 0 ; | |
21061 | wxFont *arg2 = 0 ; | |
21062 | void *argp1 = 0 ; | |
21063 | int res1 = 0 ; | |
21064 | void *argp2 = 0 ; | |
21065 | int res2 = 0 ; | |
21066 | PyObject * obj0 = 0 ; | |
21067 | PyObject * obj1 = 0 ; | |
21068 | char * kwnames[] = { | |
21069 | (char *) "self",(char *) "font", NULL | |
21070 | }; | |
21071 | ||
21072 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
21073 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21074 | if (!SWIG_IsOK(res1)) { | |
21075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21076 | } | |
21077 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21078 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
21079 | if (!SWIG_IsOK(res2)) { | |
21080 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
21081 | } | |
21082 | if (!argp2) { | |
21083 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
21084 | } | |
21085 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
21086 | { | |
21087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21088 | (arg1)->SetFont((wxFont const &)*arg2); | |
21089 | wxPyEndAllowThreads(__tstate); | |
21090 | if (PyErr_Occurred()) SWIG_fail; | |
21091 | } | |
21092 | resultobj = SWIG_Py_Void(); | |
21093 | return resultobj; | |
21094 | fail: | |
21095 | return NULL; | |
21096 | } | |
21097 | ||
21098 | ||
21099 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21100 | PyObject *resultobj = 0; | |
21101 | wxDC *arg1 = (wxDC *) 0 ; | |
21102 | wxPen *arg2 = 0 ; | |
21103 | void *argp1 = 0 ; | |
21104 | int res1 = 0 ; | |
21105 | void *argp2 = 0 ; | |
21106 | int res2 = 0 ; | |
21107 | PyObject * obj0 = 0 ; | |
21108 | PyObject * obj1 = 0 ; | |
21109 | char * kwnames[] = { | |
21110 | (char *) "self",(char *) "pen", NULL | |
21111 | }; | |
21112 | ||
21113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
21114 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21115 | if (!SWIG_IsOK(res1)) { | |
21116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21117 | } | |
21118 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21119 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
21120 | if (!SWIG_IsOK(res2)) { | |
21121 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
21122 | } | |
21123 | if (!argp2) { | |
21124 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
21125 | } | |
21126 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
21127 | { | |
21128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21129 | (arg1)->SetPen((wxPen const &)*arg2); | |
21130 | wxPyEndAllowThreads(__tstate); | |
21131 | if (PyErr_Occurred()) SWIG_fail; | |
21132 | } | |
21133 | resultobj = SWIG_Py_Void(); | |
21134 | return resultobj; | |
21135 | fail: | |
21136 | return NULL; | |
21137 | } | |
21138 | ||
21139 | ||
21140 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21141 | PyObject *resultobj = 0; | |
21142 | wxDC *arg1 = (wxDC *) 0 ; | |
21143 | wxBrush *arg2 = 0 ; | |
21144 | void *argp1 = 0 ; | |
21145 | int res1 = 0 ; | |
21146 | void *argp2 = 0 ; | |
21147 | int res2 = 0 ; | |
21148 | PyObject * obj0 = 0 ; | |
21149 | PyObject * obj1 = 0 ; | |
21150 | char * kwnames[] = { | |
21151 | (char *) "self",(char *) "brush", NULL | |
21152 | }; | |
21153 | ||
21154 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
21155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21156 | if (!SWIG_IsOK(res1)) { | |
21157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21158 | } | |
21159 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21160 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
21161 | if (!SWIG_IsOK(res2)) { | |
21162 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21163 | } | |
21164 | if (!argp2) { | |
21165 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21166 | } | |
21167 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
21168 | { | |
21169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21170 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
21171 | wxPyEndAllowThreads(__tstate); | |
21172 | if (PyErr_Occurred()) SWIG_fail; | |
21173 | } | |
21174 | resultobj = SWIG_Py_Void(); | |
21175 | return resultobj; | |
21176 | fail: | |
21177 | return NULL; | |
21178 | } | |
21179 | ||
21180 | ||
21181 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21182 | PyObject *resultobj = 0; | |
21183 | wxDC *arg1 = (wxDC *) 0 ; | |
21184 | wxBrush *arg2 = 0 ; | |
21185 | void *argp1 = 0 ; | |
21186 | int res1 = 0 ; | |
21187 | void *argp2 = 0 ; | |
21188 | int res2 = 0 ; | |
21189 | PyObject * obj0 = 0 ; | |
21190 | PyObject * obj1 = 0 ; | |
21191 | char * kwnames[] = { | |
21192 | (char *) "self",(char *) "brush", NULL | |
21193 | }; | |
21194 | ||
21195 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21196 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21197 | if (!SWIG_IsOK(res1)) { | |
21198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21199 | } | |
21200 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21201 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
21202 | if (!SWIG_IsOK(res2)) { | |
21203 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21204 | } | |
21205 | if (!argp2) { | |
21206 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21207 | } | |
21208 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
21209 | { | |
21210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21211 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
21212 | wxPyEndAllowThreads(__tstate); | |
21213 | if (PyErr_Occurred()) SWIG_fail; | |
21214 | } | |
21215 | resultobj = SWIG_Py_Void(); | |
21216 | return resultobj; | |
21217 | fail: | |
21218 | return NULL; | |
21219 | } | |
21220 | ||
21221 | ||
21222 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21223 | PyObject *resultobj = 0; | |
21224 | wxDC *arg1 = (wxDC *) 0 ; | |
21225 | int arg2 ; | |
21226 | void *argp1 = 0 ; | |
21227 | int res1 = 0 ; | |
21228 | int val2 ; | |
21229 | int ecode2 = 0 ; | |
21230 | PyObject * obj0 = 0 ; | |
21231 | PyObject * obj1 = 0 ; | |
21232 | char * kwnames[] = { | |
21233 | (char *) "self",(char *) "mode", NULL | |
21234 | }; | |
21235 | ||
21236 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
21237 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21238 | if (!SWIG_IsOK(res1)) { | |
21239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21240 | } | |
21241 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21242 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21243 | if (!SWIG_IsOK(ecode2)) { | |
21244 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
21245 | } | |
21246 | arg2 = static_cast< int >(val2); | |
21247 | { | |
21248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21249 | (arg1)->SetBackgroundMode(arg2); | |
21250 | wxPyEndAllowThreads(__tstate); | |
21251 | if (PyErr_Occurred()) SWIG_fail; | |
21252 | } | |
21253 | resultobj = SWIG_Py_Void(); | |
21254 | return resultobj; | |
21255 | fail: | |
21256 | return NULL; | |
21257 | } | |
21258 | ||
21259 | ||
21260 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21261 | PyObject *resultobj = 0; | |
21262 | wxDC *arg1 = (wxDC *) 0 ; | |
21263 | wxPalette *arg2 = 0 ; | |
21264 | void *argp1 = 0 ; | |
21265 | int res1 = 0 ; | |
21266 | void *argp2 = 0 ; | |
21267 | int res2 = 0 ; | |
21268 | PyObject * obj0 = 0 ; | |
21269 | PyObject * obj1 = 0 ; | |
21270 | char * kwnames[] = { | |
21271 | (char *) "self",(char *) "palette", NULL | |
21272 | }; | |
21273 | ||
21274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
21275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21276 | if (!SWIG_IsOK(res1)) { | |
21277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21278 | } | |
21279 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21280 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
21281 | if (!SWIG_IsOK(res2)) { | |
21282 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
21283 | } | |
21284 | if (!argp2) { | |
21285 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
21286 | } | |
21287 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
21288 | { | |
21289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21290 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
21291 | wxPyEndAllowThreads(__tstate); | |
21292 | if (PyErr_Occurred()) SWIG_fail; | |
21293 | } | |
21294 | resultobj = SWIG_Py_Void(); | |
21295 | return resultobj; | |
21296 | fail: | |
21297 | return NULL; | |
21298 | } | |
21299 | ||
21300 | ||
21301 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21302 | PyObject *resultobj = 0; | |
21303 | wxDC *arg1 = (wxDC *) 0 ; | |
21304 | void *argp1 = 0 ; | |
21305 | int res1 = 0 ; | |
21306 | PyObject *swig_obj[1] ; | |
21307 | ||
21308 | if (!args) SWIG_fail; | |
21309 | swig_obj[0] = args; | |
21310 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21311 | if (!SWIG_IsOK(res1)) { | |
21312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21313 | } | |
21314 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21315 | { | |
21316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21317 | (arg1)->DestroyClippingRegion(); | |
21318 | wxPyEndAllowThreads(__tstate); | |
21319 | if (PyErr_Occurred()) SWIG_fail; | |
21320 | } | |
21321 | resultobj = SWIG_Py_Void(); | |
21322 | return resultobj; | |
21323 | fail: | |
21324 | return NULL; | |
21325 | } | |
21326 | ||
21327 | ||
21328 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21329 | PyObject *resultobj = 0; | |
21330 | wxDC *arg1 = (wxDC *) 0 ; | |
21331 | int *arg2 = (int *) 0 ; | |
21332 | int *arg3 = (int *) 0 ; | |
21333 | int *arg4 = (int *) 0 ; | |
21334 | int *arg5 = (int *) 0 ; | |
21335 | void *argp1 = 0 ; | |
21336 | int res1 = 0 ; | |
21337 | int temp2 ; | |
21338 | int res2 = SWIG_TMPOBJ ; | |
21339 | int temp3 ; | |
21340 | int res3 = SWIG_TMPOBJ ; | |
21341 | int temp4 ; | |
21342 | int res4 = SWIG_TMPOBJ ; | |
21343 | int temp5 ; | |
21344 | int res5 = SWIG_TMPOBJ ; | |
21345 | PyObject *swig_obj[1] ; | |
21346 | ||
21347 | arg2 = &temp2; | |
21348 | arg3 = &temp3; | |
21349 | arg4 = &temp4; | |
21350 | arg5 = &temp5; | |
21351 | if (!args) SWIG_fail; | |
21352 | swig_obj[0] = args; | |
21353 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21354 | if (!SWIG_IsOK(res1)) { | |
21355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21356 | } | |
21357 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21358 | { | |
21359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21360 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
21361 | wxPyEndAllowThreads(__tstate); | |
21362 | if (PyErr_Occurred()) SWIG_fail; | |
21363 | } | |
21364 | resultobj = SWIG_Py_Void(); | |
21365 | if (SWIG_IsTmpObj(res2)) { | |
21366 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21367 | } else { | |
21368 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21369 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21370 | } | |
21371 | if (SWIG_IsTmpObj(res3)) { | |
21372 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21373 | } else { | |
21374 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21375 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21376 | } | |
21377 | if (SWIG_IsTmpObj(res4)) { | |
21378 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21379 | } else { | |
21380 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21381 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21382 | } | |
21383 | if (SWIG_IsTmpObj(res5)) { | |
21384 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21385 | } else { | |
21386 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21387 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21388 | } | |
21389 | return resultobj; | |
21390 | fail: | |
21391 | return NULL; | |
21392 | } | |
21393 | ||
21394 | ||
21395 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21396 | PyObject *resultobj = 0; | |
21397 | wxDC *arg1 = (wxDC *) 0 ; | |
21398 | wxRect result; | |
21399 | void *argp1 = 0 ; | |
21400 | int res1 = 0 ; | |
21401 | PyObject *swig_obj[1] ; | |
21402 | ||
21403 | if (!args) SWIG_fail; | |
21404 | swig_obj[0] = args; | |
21405 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21406 | if (!SWIG_IsOK(res1)) { | |
21407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21408 | } | |
21409 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21410 | { | |
21411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21412 | result = wxDC_GetClippingRect(arg1); | |
21413 | wxPyEndAllowThreads(__tstate); | |
21414 | if (PyErr_Occurred()) SWIG_fail; | |
21415 | } | |
21416 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
21417 | return resultobj; | |
21418 | fail: | |
21419 | return NULL; | |
21420 | } | |
21421 | ||
21422 | ||
21423 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21424 | PyObject *resultobj = 0; | |
21425 | wxDC *arg1 = (wxDC *) 0 ; | |
21426 | int result; | |
21427 | void *argp1 = 0 ; | |
21428 | int res1 = 0 ; | |
21429 | PyObject *swig_obj[1] ; | |
21430 | ||
21431 | if (!args) SWIG_fail; | |
21432 | swig_obj[0] = args; | |
21433 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21434 | if (!SWIG_IsOK(res1)) { | |
21435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21436 | } | |
21437 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21438 | { | |
21439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21440 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
21441 | wxPyEndAllowThreads(__tstate); | |
21442 | if (PyErr_Occurred()) SWIG_fail; | |
21443 | } | |
21444 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21445 | return resultobj; | |
21446 | fail: | |
21447 | return NULL; | |
21448 | } | |
21449 | ||
21450 | ||
21451 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21452 | PyObject *resultobj = 0; | |
21453 | wxDC *arg1 = (wxDC *) 0 ; | |
21454 | int result; | |
21455 | void *argp1 = 0 ; | |
21456 | int res1 = 0 ; | |
21457 | PyObject *swig_obj[1] ; | |
21458 | ||
21459 | if (!args) SWIG_fail; | |
21460 | swig_obj[0] = args; | |
21461 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21462 | if (!SWIG_IsOK(res1)) { | |
21463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21464 | } | |
21465 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21466 | { | |
21467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21468 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
21469 | wxPyEndAllowThreads(__tstate); | |
21470 | if (PyErr_Occurred()) SWIG_fail; | |
21471 | } | |
21472 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21473 | return resultobj; | |
21474 | fail: | |
21475 | return NULL; | |
21476 | } | |
21477 | ||
21478 | ||
21479 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21480 | PyObject *resultobj = 0; | |
21481 | wxDC *arg1 = (wxDC *) 0 ; | |
21482 | wxString *arg2 = 0 ; | |
21483 | int *arg3 = (int *) 0 ; | |
21484 | int *arg4 = (int *) 0 ; | |
21485 | void *argp1 = 0 ; | |
21486 | int res1 = 0 ; | |
21487 | bool temp2 = false ; | |
21488 | int temp3 ; | |
21489 | int res3 = SWIG_TMPOBJ ; | |
21490 | int temp4 ; | |
21491 | int res4 = SWIG_TMPOBJ ; | |
21492 | PyObject * obj0 = 0 ; | |
21493 | PyObject * obj1 = 0 ; | |
21494 | char * kwnames[] = { | |
21495 | (char *) "self",(char *) "string", NULL | |
21496 | }; | |
21497 | ||
21498 | arg3 = &temp3; | |
21499 | arg4 = &temp4; | |
21500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21502 | if (!SWIG_IsOK(res1)) { | |
21503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21504 | } | |
21505 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21506 | { | |
21507 | arg2 = wxString_in_helper(obj1); | |
21508 | if (arg2 == NULL) SWIG_fail; | |
21509 | temp2 = true; | |
21510 | } | |
21511 | { | |
21512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21513 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
21514 | wxPyEndAllowThreads(__tstate); | |
21515 | if (PyErr_Occurred()) SWIG_fail; | |
21516 | } | |
21517 | resultobj = SWIG_Py_Void(); | |
21518 | if (SWIG_IsTmpObj(res3)) { | |
21519 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21520 | } else { | |
21521 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21522 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21523 | } | |
21524 | if (SWIG_IsTmpObj(res4)) { | |
21525 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21526 | } else { | |
21527 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21528 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21529 | } | |
21530 | { | |
21531 | if (temp2) | |
21532 | delete arg2; | |
21533 | } | |
21534 | return resultobj; | |
21535 | fail: | |
21536 | { | |
21537 | if (temp2) | |
21538 | delete arg2; | |
21539 | } | |
21540 | return NULL; | |
21541 | } | |
21542 | ||
21543 | ||
21544 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21545 | PyObject *resultobj = 0; | |
21546 | wxDC *arg1 = (wxDC *) 0 ; | |
21547 | wxString *arg2 = 0 ; | |
21548 | int *arg3 = (int *) 0 ; | |
21549 | int *arg4 = (int *) 0 ; | |
21550 | int *arg5 = (int *) 0 ; | |
21551 | int *arg6 = (int *) 0 ; | |
21552 | wxFont *arg7 = (wxFont *) NULL ; | |
21553 | void *argp1 = 0 ; | |
21554 | int res1 = 0 ; | |
21555 | bool temp2 = false ; | |
21556 | int temp3 ; | |
21557 | int res3 = SWIG_TMPOBJ ; | |
21558 | int temp4 ; | |
21559 | int res4 = SWIG_TMPOBJ ; | |
21560 | int temp5 ; | |
21561 | int res5 = SWIG_TMPOBJ ; | |
21562 | int temp6 ; | |
21563 | int res6 = SWIG_TMPOBJ ; | |
21564 | void *argp7 = 0 ; | |
21565 | int res7 = 0 ; | |
21566 | PyObject * obj0 = 0 ; | |
21567 | PyObject * obj1 = 0 ; | |
21568 | PyObject * obj2 = 0 ; | |
21569 | char * kwnames[] = { | |
21570 | (char *) "self",(char *) "string",(char *) "font", NULL | |
21571 | }; | |
21572 | ||
21573 | arg3 = &temp3; | |
21574 | arg4 = &temp4; | |
21575 | arg5 = &temp5; | |
21576 | arg6 = &temp6; | |
21577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21579 | if (!SWIG_IsOK(res1)) { | |
21580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21581 | } | |
21582 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21583 | { | |
21584 | arg2 = wxString_in_helper(obj1); | |
21585 | if (arg2 == NULL) SWIG_fail; | |
21586 | temp2 = true; | |
21587 | } | |
21588 | if (obj2) { | |
21589 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21590 | if (!SWIG_IsOK(res7)) { | |
21591 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 21592 | } |
0085ce49 RD |
21593 | arg7 = reinterpret_cast< wxFont * >(argp7); |
21594 | } | |
21595 | { | |
21596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21597 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
21598 | wxPyEndAllowThreads(__tstate); | |
21599 | if (PyErr_Occurred()) SWIG_fail; | |
21600 | } | |
21601 | resultobj = SWIG_Py_Void(); | |
21602 | if (SWIG_IsTmpObj(res3)) { | |
21603 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21604 | } else { | |
21605 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21606 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21607 | } | |
21608 | if (SWIG_IsTmpObj(res4)) { | |
21609 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21610 | } else { | |
21611 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21612 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21613 | } | |
21614 | if (SWIG_IsTmpObj(res5)) { | |
21615 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21616 | } else { | |
21617 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21618 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21619 | } | |
21620 | if (SWIG_IsTmpObj(res6)) { | |
21621 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
21622 | } else { | |
21623 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21624 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
21625 | } | |
21626 | { | |
21627 | if (temp2) | |
21628 | delete arg2; | |
21629 | } | |
21630 | return resultobj; | |
21631 | fail: | |
21632 | { | |
21633 | if (temp2) | |
21634 | delete arg2; | |
21635 | } | |
21636 | return NULL; | |
21637 | } | |
21638 | ||
21639 | ||
21640 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21641 | PyObject *resultobj = 0; | |
21642 | wxDC *arg1 = (wxDC *) 0 ; | |
21643 | wxString *arg2 = 0 ; | |
21644 | int *arg3 = (int *) 0 ; | |
21645 | int *arg4 = (int *) 0 ; | |
21646 | int *arg5 = (int *) 0 ; | |
21647 | wxFont *arg6 = (wxFont *) NULL ; | |
21648 | void *argp1 = 0 ; | |
21649 | int res1 = 0 ; | |
21650 | bool temp2 = false ; | |
21651 | int temp3 ; | |
21652 | int res3 = SWIG_TMPOBJ ; | |
21653 | int temp4 ; | |
21654 | int res4 = SWIG_TMPOBJ ; | |
21655 | int temp5 ; | |
21656 | int res5 = SWIG_TMPOBJ ; | |
21657 | void *argp6 = 0 ; | |
21658 | int res6 = 0 ; | |
21659 | PyObject * obj0 = 0 ; | |
21660 | PyObject * obj1 = 0 ; | |
21661 | PyObject * obj2 = 0 ; | |
21662 | char * kwnames[] = { | |
21663 | (char *) "self",(char *) "text",(char *) "font", NULL | |
21664 | }; | |
21665 | ||
21666 | arg3 = &temp3; | |
21667 | arg4 = &temp4; | |
21668 | arg5 = &temp5; | |
21669 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21670 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21671 | if (!SWIG_IsOK(res1)) { | |
21672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21673 | } | |
21674 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21675 | { | |
21676 | arg2 = wxString_in_helper(obj1); | |
21677 | if (arg2 == NULL) SWIG_fail; | |
21678 | temp2 = true; | |
21679 | } | |
21680 | if (obj2) { | |
21681 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21682 | if (!SWIG_IsOK(res6)) { | |
21683 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 21684 | } |
0085ce49 RD |
21685 | arg6 = reinterpret_cast< wxFont * >(argp6); |
21686 | } | |
21687 | { | |
21688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21689 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
21690 | wxPyEndAllowThreads(__tstate); | |
21691 | if (PyErr_Occurred()) SWIG_fail; | |
21692 | } | |
21693 | resultobj = SWIG_Py_Void(); | |
21694 | if (SWIG_IsTmpObj(res3)) { | |
21695 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21696 | } else { | |
21697 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21698 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21699 | } | |
21700 | if (SWIG_IsTmpObj(res4)) { | |
21701 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21702 | } else { | |
21703 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21704 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21705 | } | |
21706 | if (SWIG_IsTmpObj(res5)) { | |
21707 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21708 | } else { | |
21709 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21710 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21711 | } | |
21712 | { | |
21713 | if (temp2) | |
21714 | delete arg2; | |
21715 | } | |
21716 | return resultobj; | |
21717 | fail: | |
21718 | { | |
21719 | if (temp2) | |
21720 | delete arg2; | |
21721 | } | |
21722 | return NULL; | |
21723 | } | |
21724 | ||
21725 | ||
21726 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21727 | PyObject *resultobj = 0; | |
21728 | wxDC *arg1 = (wxDC *) 0 ; | |
21729 | wxString *arg2 = 0 ; | |
21730 | wxArrayInt result; | |
21731 | void *argp1 = 0 ; | |
21732 | int res1 = 0 ; | |
21733 | bool temp2 = false ; | |
21734 | PyObject * obj0 = 0 ; | |
21735 | PyObject * obj1 = 0 ; | |
21736 | char * kwnames[] = { | |
21737 | (char *) "self",(char *) "text", NULL | |
21738 | }; | |
21739 | ||
21740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
21741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21742 | if (!SWIG_IsOK(res1)) { | |
21743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21744 | } | |
21745 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21746 | { | |
21747 | arg2 = wxString_in_helper(obj1); | |
21748 | if (arg2 == NULL) SWIG_fail; | |
21749 | temp2 = true; | |
21750 | } | |
21751 | { | |
21752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21753 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
21754 | wxPyEndAllowThreads(__tstate); | |
21755 | if (PyErr_Occurred()) SWIG_fail; | |
21756 | } | |
21757 | { | |
b39fe951 | 21758 | resultobj = wxArrayInt2PyList_helper(result); |
0085ce49 RD |
21759 | } |
21760 | { | |
21761 | if (temp2) | |
21762 | delete arg2; | |
21763 | } | |
21764 | return resultobj; | |
21765 | fail: | |
21766 | { | |
21767 | if (temp2) | |
21768 | delete arg2; | |
21769 | } | |
21770 | return NULL; | |
21771 | } | |
21772 | ||
21773 | ||
21774 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21775 | PyObject *resultobj = 0; | |
21776 | wxDC *arg1 = (wxDC *) 0 ; | |
21777 | wxSize result; | |
21778 | void *argp1 = 0 ; | |
21779 | int res1 = 0 ; | |
21780 | PyObject *swig_obj[1] ; | |
21781 | ||
21782 | if (!args) SWIG_fail; | |
21783 | swig_obj[0] = args; | |
21784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21785 | if (!SWIG_IsOK(res1)) { | |
21786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21787 | } | |
21788 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21789 | { | |
21790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21791 | result = (arg1)->GetSize(); | |
21792 | wxPyEndAllowThreads(__tstate); | |
21793 | if (PyErr_Occurred()) SWIG_fail; | |
21794 | } | |
21795 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21796 | return resultobj; | |
21797 | fail: | |
21798 | return NULL; | |
21799 | } | |
21800 | ||
21801 | ||
21802 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21803 | PyObject *resultobj = 0; | |
21804 | wxDC *arg1 = (wxDC *) 0 ; | |
21805 | int *arg2 = (int *) 0 ; | |
21806 | int *arg3 = (int *) 0 ; | |
21807 | void *argp1 = 0 ; | |
21808 | int res1 = 0 ; | |
21809 | int temp2 ; | |
21810 | int res2 = SWIG_TMPOBJ ; | |
21811 | int temp3 ; | |
21812 | int res3 = SWIG_TMPOBJ ; | |
21813 | PyObject *swig_obj[1] ; | |
21814 | ||
21815 | arg2 = &temp2; | |
21816 | arg3 = &temp3; | |
21817 | if (!args) SWIG_fail; | |
21818 | swig_obj[0] = args; | |
21819 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21820 | if (!SWIG_IsOK(res1)) { | |
21821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21822 | } | |
21823 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21824 | { | |
21825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21826 | (arg1)->GetSize(arg2,arg3); | |
21827 | wxPyEndAllowThreads(__tstate); | |
21828 | if (PyErr_Occurred()) SWIG_fail; | |
21829 | } | |
21830 | resultobj = SWIG_Py_Void(); | |
21831 | if (SWIG_IsTmpObj(res2)) { | |
21832 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21833 | } else { | |
21834 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21835 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21836 | } | |
21837 | if (SWIG_IsTmpObj(res3)) { | |
21838 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21839 | } else { | |
21840 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21841 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21842 | } | |
21843 | return resultobj; | |
21844 | fail: | |
21845 | return NULL; | |
21846 | } | |
21847 | ||
21848 | ||
21849 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21850 | PyObject *resultobj = 0; | |
21851 | wxDC *arg1 = (wxDC *) 0 ; | |
21852 | wxSize result; | |
21853 | void *argp1 = 0 ; | |
21854 | int res1 = 0 ; | |
21855 | PyObject *swig_obj[1] ; | |
21856 | ||
21857 | if (!args) SWIG_fail; | |
21858 | swig_obj[0] = args; | |
21859 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21860 | if (!SWIG_IsOK(res1)) { | |
21861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21862 | } | |
21863 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21864 | { | |
21865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21866 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
21867 | wxPyEndAllowThreads(__tstate); | |
21868 | if (PyErr_Occurred()) SWIG_fail; | |
21869 | } | |
21870 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21871 | return resultobj; | |
21872 | fail: | |
21873 | return NULL; | |
21874 | } | |
21875 | ||
21876 | ||
21877 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21878 | PyObject *resultobj = 0; | |
21879 | wxDC *arg1 = (wxDC *) 0 ; | |
21880 | int *arg2 = (int *) 0 ; | |
21881 | int *arg3 = (int *) 0 ; | |
21882 | void *argp1 = 0 ; | |
21883 | int res1 = 0 ; | |
21884 | int temp2 ; | |
21885 | int res2 = SWIG_TMPOBJ ; | |
21886 | int temp3 ; | |
21887 | int res3 = SWIG_TMPOBJ ; | |
21888 | PyObject *swig_obj[1] ; | |
21889 | ||
21890 | arg2 = &temp2; | |
21891 | arg3 = &temp3; | |
21892 | if (!args) SWIG_fail; | |
21893 | swig_obj[0] = args; | |
21894 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21895 | if (!SWIG_IsOK(res1)) { | |
21896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21897 | } | |
21898 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21899 | { | |
21900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21901 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
21902 | wxPyEndAllowThreads(__tstate); | |
21903 | if (PyErr_Occurred()) SWIG_fail; | |
21904 | } | |
21905 | resultobj = SWIG_Py_Void(); | |
21906 | if (SWIG_IsTmpObj(res2)) { | |
21907 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21908 | } else { | |
21909 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21910 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21911 | } | |
21912 | if (SWIG_IsTmpObj(res3)) { | |
21913 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21914 | } else { | |
21915 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21916 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21917 | } | |
21918 | return resultobj; | |
21919 | fail: | |
21920 | return NULL; | |
21921 | } | |
21922 | ||
21923 | ||
21924 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21925 | PyObject *resultobj = 0; | |
21926 | wxDC *arg1 = (wxDC *) 0 ; | |
21927 | int arg2 ; | |
21928 | int result; | |
21929 | void *argp1 = 0 ; | |
21930 | int res1 = 0 ; | |
21931 | int val2 ; | |
21932 | int ecode2 = 0 ; | |
21933 | PyObject * obj0 = 0 ; | |
21934 | PyObject * obj1 = 0 ; | |
21935 | char * kwnames[] = { | |
21936 | (char *) "self",(char *) "x", NULL | |
21937 | }; | |
21938 | ||
21939 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21940 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21941 | if (!SWIG_IsOK(res1)) { | |
21942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21943 | } | |
21944 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21945 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21946 | if (!SWIG_IsOK(ecode2)) { | |
21947 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
21948 | } | |
21949 | arg2 = static_cast< int >(val2); | |
21950 | { | |
21951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21952 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
21953 | wxPyEndAllowThreads(__tstate); | |
21954 | if (PyErr_Occurred()) SWIG_fail; | |
21955 | } | |
21956 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21957 | return resultobj; | |
21958 | fail: | |
21959 | return NULL; | |
21960 | } | |
21961 | ||
21962 | ||
21963 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21964 | PyObject *resultobj = 0; | |
21965 | wxDC *arg1 = (wxDC *) 0 ; | |
21966 | int arg2 ; | |
21967 | int result; | |
21968 | void *argp1 = 0 ; | |
21969 | int res1 = 0 ; | |
21970 | int val2 ; | |
21971 | int ecode2 = 0 ; | |
21972 | PyObject * obj0 = 0 ; | |
21973 | PyObject * obj1 = 0 ; | |
21974 | char * kwnames[] = { | |
21975 | (char *) "self",(char *) "y", NULL | |
21976 | }; | |
21977 | ||
21978 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21979 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21980 | if (!SWIG_IsOK(res1)) { | |
21981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21982 | } | |
21983 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21984 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21985 | if (!SWIG_IsOK(ecode2)) { | |
21986 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
21987 | } | |
21988 | arg2 = static_cast< int >(val2); | |
21989 | { | |
21990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21991 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
21992 | wxPyEndAllowThreads(__tstate); | |
21993 | if (PyErr_Occurred()) SWIG_fail; | |
21994 | } | |
21995 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21996 | return resultobj; | |
21997 | fail: | |
21998 | return NULL; | |
21999 | } | |
22000 | ||
22001 | ||
22002 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22003 | PyObject *resultobj = 0; | |
22004 | wxDC *arg1 = (wxDC *) 0 ; | |
22005 | int arg2 ; | |
22006 | int result; | |
22007 | void *argp1 = 0 ; | |
22008 | int res1 = 0 ; | |
22009 | int val2 ; | |
22010 | int ecode2 = 0 ; | |
22011 | PyObject * obj0 = 0 ; | |
22012 | PyObject * obj1 = 0 ; | |
22013 | char * kwnames[] = { | |
22014 | (char *) "self",(char *) "x", NULL | |
22015 | }; | |
22016 | ||
22017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22018 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22019 | if (!SWIG_IsOK(res1)) { | |
22020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22021 | } | |
22022 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22023 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22024 | if (!SWIG_IsOK(ecode2)) { | |
22025 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
22026 | } | |
22027 | arg2 = static_cast< int >(val2); | |
22028 | { | |
22029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22030 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
22031 | wxPyEndAllowThreads(__tstate); | |
22032 | if (PyErr_Occurred()) SWIG_fail; | |
22033 | } | |
22034 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22035 | return resultobj; | |
22036 | fail: | |
22037 | return NULL; | |
22038 | } | |
22039 | ||
22040 | ||
22041 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22042 | PyObject *resultobj = 0; | |
22043 | wxDC *arg1 = (wxDC *) 0 ; | |
22044 | int arg2 ; | |
22045 | int result; | |
22046 | void *argp1 = 0 ; | |
22047 | int res1 = 0 ; | |
22048 | int val2 ; | |
22049 | int ecode2 = 0 ; | |
22050 | PyObject * obj0 = 0 ; | |
22051 | PyObject * obj1 = 0 ; | |
22052 | char * kwnames[] = { | |
22053 | (char *) "self",(char *) "y", NULL | |
22054 | }; | |
22055 | ||
22056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22058 | if (!SWIG_IsOK(res1)) { | |
22059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22060 | } | |
22061 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22062 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22063 | if (!SWIG_IsOK(ecode2)) { | |
22064 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
22065 | } | |
22066 | arg2 = static_cast< int >(val2); | |
22067 | { | |
22068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22069 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
22070 | wxPyEndAllowThreads(__tstate); | |
22071 | if (PyErr_Occurred()) SWIG_fail; | |
22072 | } | |
22073 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22074 | return resultobj; | |
22075 | fail: | |
22076 | return NULL; | |
22077 | } | |
22078 | ||
22079 | ||
22080 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22081 | PyObject *resultobj = 0; | |
22082 | wxDC *arg1 = (wxDC *) 0 ; | |
22083 | int arg2 ; | |
22084 | int result; | |
22085 | void *argp1 = 0 ; | |
22086 | int res1 = 0 ; | |
22087 | int val2 ; | |
22088 | int ecode2 = 0 ; | |
22089 | PyObject * obj0 = 0 ; | |
22090 | PyObject * obj1 = 0 ; | |
22091 | char * kwnames[] = { | |
22092 | (char *) "self",(char *) "x", NULL | |
22093 | }; | |
22094 | ||
22095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
22096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22097 | if (!SWIG_IsOK(res1)) { | |
22098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22099 | } | |
22100 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22101 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22102 | if (!SWIG_IsOK(ecode2)) { | |
22103 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
22104 | } | |
22105 | arg2 = static_cast< int >(val2); | |
22106 | { | |
22107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22108 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
22109 | wxPyEndAllowThreads(__tstate); | |
22110 | if (PyErr_Occurred()) SWIG_fail; | |
22111 | } | |
22112 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22113 | return resultobj; | |
22114 | fail: | |
22115 | return NULL; | |
22116 | } | |
22117 | ||
22118 | ||
22119 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22120 | PyObject *resultobj = 0; | |
22121 | wxDC *arg1 = (wxDC *) 0 ; | |
22122 | int arg2 ; | |
22123 | int result; | |
22124 | void *argp1 = 0 ; | |
22125 | int res1 = 0 ; | |
22126 | int val2 ; | |
22127 | int ecode2 = 0 ; | |
22128 | PyObject * obj0 = 0 ; | |
22129 | PyObject * obj1 = 0 ; | |
22130 | char * kwnames[] = { | |
22131 | (char *) "self",(char *) "y", NULL | |
22132 | }; | |
22133 | ||
22134 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
22135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22136 | if (!SWIG_IsOK(res1)) { | |
22137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22138 | } | |
22139 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22140 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22141 | if (!SWIG_IsOK(ecode2)) { | |
22142 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
22143 | } | |
22144 | arg2 = static_cast< int >(val2); | |
22145 | { | |
22146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22147 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
22148 | wxPyEndAllowThreads(__tstate); | |
22149 | if (PyErr_Occurred()) SWIG_fail; | |
22150 | } | |
22151 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22152 | return resultobj; | |
22153 | fail: | |
22154 | return NULL; | |
22155 | } | |
22156 | ||
22157 | ||
22158 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22159 | PyObject *resultobj = 0; | |
22160 | wxDC *arg1 = (wxDC *) 0 ; | |
22161 | int arg2 ; | |
22162 | int result; | |
22163 | void *argp1 = 0 ; | |
22164 | int res1 = 0 ; | |
22165 | int val2 ; | |
22166 | int ecode2 = 0 ; | |
22167 | PyObject * obj0 = 0 ; | |
22168 | PyObject * obj1 = 0 ; | |
22169 | char * kwnames[] = { | |
22170 | (char *) "self",(char *) "x", NULL | |
22171 | }; | |
22172 | ||
22173 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22175 | if (!SWIG_IsOK(res1)) { | |
22176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22177 | } | |
22178 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22179 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22180 | if (!SWIG_IsOK(ecode2)) { | |
22181 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
22182 | } | |
22183 | arg2 = static_cast< int >(val2); | |
22184 | { | |
22185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22186 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
22187 | wxPyEndAllowThreads(__tstate); | |
22188 | if (PyErr_Occurred()) SWIG_fail; | |
22189 | } | |
22190 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22191 | return resultobj; | |
22192 | fail: | |
22193 | return NULL; | |
22194 | } | |
22195 | ||
22196 | ||
22197 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22198 | PyObject *resultobj = 0; | |
22199 | wxDC *arg1 = (wxDC *) 0 ; | |
22200 | int arg2 ; | |
22201 | int result; | |
22202 | void *argp1 = 0 ; | |
22203 | int res1 = 0 ; | |
22204 | int val2 ; | |
22205 | int ecode2 = 0 ; | |
22206 | PyObject * obj0 = 0 ; | |
22207 | PyObject * obj1 = 0 ; | |
22208 | char * kwnames[] = { | |
22209 | (char *) "self",(char *) "y", NULL | |
22210 | }; | |
22211 | ||
22212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22214 | if (!SWIG_IsOK(res1)) { | |
22215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22216 | } | |
22217 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22218 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22219 | if (!SWIG_IsOK(ecode2)) { | |
22220 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
22221 | } | |
22222 | arg2 = static_cast< int >(val2); | |
22223 | { | |
22224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22225 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
22226 | wxPyEndAllowThreads(__tstate); | |
22227 | if (PyErr_Occurred()) SWIG_fail; | |
22228 | } | |
22229 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22230 | return resultobj; | |
22231 | fail: | |
22232 | return NULL; | |
22233 | } | |
22234 | ||
22235 | ||
22236 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22237 | PyObject *resultobj = 0; | |
22238 | wxDC *arg1 = (wxDC *) 0 ; | |
22239 | bool result; | |
22240 | void *argp1 = 0 ; | |
22241 | int res1 = 0 ; | |
22242 | PyObject *swig_obj[1] ; | |
22243 | ||
22244 | if (!args) SWIG_fail; | |
22245 | swig_obj[0] = args; | |
22246 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22247 | if (!SWIG_IsOK(res1)) { | |
22248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22249 | } | |
22250 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22251 | { | |
22252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22253 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
22254 | wxPyEndAllowThreads(__tstate); | |
22255 | if (PyErr_Occurred()) SWIG_fail; | |
22256 | } | |
22257 | { | |
22258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22259 | } | |
22260 | return resultobj; | |
22261 | fail: | |
22262 | return NULL; | |
22263 | } | |
22264 | ||
22265 | ||
22266 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22267 | PyObject *resultobj = 0; | |
22268 | wxDC *arg1 = (wxDC *) 0 ; | |
22269 | bool result; | |
22270 | void *argp1 = 0 ; | |
22271 | int res1 = 0 ; | |
22272 | PyObject *swig_obj[1] ; | |
22273 | ||
22274 | if (!args) SWIG_fail; | |
22275 | swig_obj[0] = args; | |
22276 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22277 | if (!SWIG_IsOK(res1)) { | |
22278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22279 | } | |
22280 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22281 | { | |
22282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22283 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
22284 | wxPyEndAllowThreads(__tstate); | |
22285 | if (PyErr_Occurred()) SWIG_fail; | |
22286 | } | |
22287 | { | |
22288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22289 | } | |
22290 | return resultobj; | |
22291 | fail: | |
22292 | return NULL; | |
22293 | } | |
22294 | ||
22295 | ||
22296 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22297 | PyObject *resultobj = 0; | |
22298 | wxDC *arg1 = (wxDC *) 0 ; | |
22299 | int result; | |
22300 | void *argp1 = 0 ; | |
22301 | int res1 = 0 ; | |
22302 | PyObject *swig_obj[1] ; | |
22303 | ||
22304 | if (!args) SWIG_fail; | |
22305 | swig_obj[0] = args; | |
22306 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22307 | if (!SWIG_IsOK(res1)) { | |
22308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22309 | } | |
22310 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22311 | { | |
22312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22313 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
22314 | wxPyEndAllowThreads(__tstate); | |
22315 | if (PyErr_Occurred()) SWIG_fail; | |
22316 | } | |
22317 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22318 | return resultobj; | |
22319 | fail: | |
22320 | return NULL; | |
22321 | } | |
22322 | ||
22323 | ||
22324 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22325 | PyObject *resultobj = 0; | |
22326 | wxDC *arg1 = (wxDC *) 0 ; | |
22327 | wxSize result; | |
22328 | void *argp1 = 0 ; | |
22329 | int res1 = 0 ; | |
22330 | PyObject *swig_obj[1] ; | |
22331 | ||
22332 | if (!args) SWIG_fail; | |
22333 | swig_obj[0] = args; | |
22334 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22335 | if (!SWIG_IsOK(res1)) { | |
22336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22337 | } | |
22338 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22339 | { | |
22340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22341 | result = ((wxDC const *)arg1)->GetPPI(); | |
22342 | wxPyEndAllowThreads(__tstate); | |
22343 | if (PyErr_Occurred()) SWIG_fail; | |
22344 | } | |
22345 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22346 | return resultobj; | |
22347 | fail: | |
22348 | return NULL; | |
22349 | } | |
22350 | ||
22351 | ||
b39fe951 | 22352 | SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
22353 | PyObject *resultobj = 0; |
22354 | wxDC *arg1 = (wxDC *) 0 ; | |
22355 | bool result; | |
22356 | void *argp1 = 0 ; | |
22357 | int res1 = 0 ; | |
22358 | PyObject *swig_obj[1] ; | |
22359 | ||
22360 | if (!args) SWIG_fail; | |
22361 | swig_obj[0] = args; | |
22362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22363 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 22364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'"); |
0085ce49 RD |
22365 | } |
22366 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22367 | { | |
22368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 22369 | result = (bool)((wxDC const *)arg1)->IsOk(); |
0085ce49 RD |
22370 | wxPyEndAllowThreads(__tstate); |
22371 | if (PyErr_Occurred()) SWIG_fail; | |
22372 | } | |
22373 | { | |
22374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22375 | } | |
22376 | return resultobj; | |
22377 | fail: | |
22378 | return NULL; | |
22379 | } | |
22380 | ||
22381 | ||
22382 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22383 | PyObject *resultobj = 0; | |
22384 | wxDC *arg1 = (wxDC *) 0 ; | |
22385 | int result; | |
22386 | void *argp1 = 0 ; | |
22387 | int res1 = 0 ; | |
22388 | PyObject *swig_obj[1] ; | |
22389 | ||
22390 | if (!args) SWIG_fail; | |
22391 | swig_obj[0] = args; | |
22392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22393 | if (!SWIG_IsOK(res1)) { | |
22394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22395 | } | |
22396 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22397 | { | |
22398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22399 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
22400 | wxPyEndAllowThreads(__tstate); | |
22401 | if (PyErr_Occurred()) SWIG_fail; | |
22402 | } | |
22403 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22404 | return resultobj; | |
22405 | fail: | |
22406 | return NULL; | |
22407 | } | |
22408 | ||
22409 | ||
22410 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22411 | PyObject *resultobj = 0; | |
22412 | wxDC *arg1 = (wxDC *) 0 ; | |
22413 | wxBrush *result = 0 ; | |
22414 | void *argp1 = 0 ; | |
22415 | int res1 = 0 ; | |
22416 | PyObject *swig_obj[1] ; | |
22417 | ||
22418 | if (!args) SWIG_fail; | |
22419 | swig_obj[0] = args; | |
22420 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22421 | if (!SWIG_IsOK(res1)) { | |
22422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22423 | } | |
22424 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22425 | { | |
22426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22427 | { |
0085ce49 RD |
22428 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
22429 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 22430 | } |
0085ce49 RD |
22431 | wxPyEndAllowThreads(__tstate); |
22432 | if (PyErr_Occurred()) SWIG_fail; | |
22433 | } | |
22434 | { | |
22435 | wxBrush* resultptr = new wxBrush(*result); | |
22436 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
22437 | } | |
22438 | return resultobj; | |
22439 | fail: | |
22440 | return NULL; | |
22441 | } | |
22442 | ||
22443 | ||
22444 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22445 | PyObject *resultobj = 0; | |
22446 | wxDC *arg1 = (wxDC *) 0 ; | |
22447 | wxBrush *result = 0 ; | |
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_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22457 | } | |
22458 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22459 | { | |
22460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22461 | { |
0085ce49 RD |
22462 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
22463 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 22464 | } |
0085ce49 RD |
22465 | wxPyEndAllowThreads(__tstate); |
22466 | if (PyErr_Occurred()) SWIG_fail; | |
22467 | } | |
22468 | { | |
22469 | wxBrush* resultptr = new wxBrush(*result); | |
22470 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
22471 | } | |
22472 | return resultobj; | |
22473 | fail: | |
22474 | return NULL; | |
22475 | } | |
22476 | ||
22477 | ||
22478 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22479 | PyObject *resultobj = 0; | |
22480 | wxDC *arg1 = (wxDC *) 0 ; | |
22481 | wxFont *result = 0 ; | |
22482 | void *argp1 = 0 ; | |
22483 | int res1 = 0 ; | |
22484 | PyObject *swig_obj[1] ; | |
22485 | ||
22486 | if (!args) SWIG_fail; | |
22487 | swig_obj[0] = args; | |
22488 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22489 | if (!SWIG_IsOK(res1)) { | |
22490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22491 | } | |
22492 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22493 | { | |
22494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22495 | { |
0085ce49 RD |
22496 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
22497 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 22498 | } |
0085ce49 RD |
22499 | wxPyEndAllowThreads(__tstate); |
22500 | if (PyErr_Occurred()) SWIG_fail; | |
22501 | } | |
22502 | { | |
22503 | wxFont* resultptr = new wxFont(*result); | |
22504 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
22505 | } | |
22506 | return resultobj; | |
22507 | fail: | |
22508 | return NULL; | |
22509 | } | |
22510 | ||
22511 | ||
22512 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22513 | PyObject *resultobj = 0; | |
22514 | wxDC *arg1 = (wxDC *) 0 ; | |
22515 | wxPen *result = 0 ; | |
22516 | void *argp1 = 0 ; | |
22517 | int res1 = 0 ; | |
22518 | PyObject *swig_obj[1] ; | |
22519 | ||
22520 | if (!args) SWIG_fail; | |
22521 | swig_obj[0] = args; | |
22522 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22523 | if (!SWIG_IsOK(res1)) { | |
22524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22525 | } | |
22526 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22527 | { | |
22528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22529 | { |
0085ce49 RD |
22530 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
22531 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 22532 | } |
0085ce49 RD |
22533 | wxPyEndAllowThreads(__tstate); |
22534 | if (PyErr_Occurred()) SWIG_fail; | |
22535 | } | |
22536 | { | |
22537 | wxPen* resultptr = new wxPen(*result); | |
22538 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
22539 | } | |
22540 | return resultobj; | |
22541 | fail: | |
22542 | return NULL; | |
22543 | } | |
22544 | ||
22545 | ||
22546 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22547 | PyObject *resultobj = 0; | |
22548 | wxDC *arg1 = (wxDC *) 0 ; | |
22549 | wxColour *result = 0 ; | |
22550 | void *argp1 = 0 ; | |
22551 | int res1 = 0 ; | |
22552 | PyObject *swig_obj[1] ; | |
22553 | ||
22554 | if (!args) SWIG_fail; | |
22555 | swig_obj[0] = args; | |
22556 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22557 | if (!SWIG_IsOK(res1)) { | |
22558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22559 | } | |
22560 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22561 | { | |
22562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22563 | { |
0085ce49 RD |
22564 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
22565 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22566 | } |
0085ce49 RD |
22567 | wxPyEndAllowThreads(__tstate); |
22568 | if (PyErr_Occurred()) SWIG_fail; | |
22569 | } | |
22570 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22571 | return resultobj; | |
22572 | fail: | |
22573 | return NULL; | |
22574 | } | |
22575 | ||
22576 | ||
22577 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22578 | PyObject *resultobj = 0; | |
22579 | wxDC *arg1 = (wxDC *) 0 ; | |
22580 | wxColour *result = 0 ; | |
22581 | void *argp1 = 0 ; | |
22582 | int res1 = 0 ; | |
22583 | PyObject *swig_obj[1] ; | |
22584 | ||
22585 | if (!args) SWIG_fail; | |
22586 | swig_obj[0] = args; | |
22587 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22588 | if (!SWIG_IsOK(res1)) { | |
22589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22590 | } | |
22591 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22592 | { | |
22593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22594 | { |
0085ce49 RD |
22595 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
22596 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22597 | } |
0085ce49 RD |
22598 | wxPyEndAllowThreads(__tstate); |
22599 | if (PyErr_Occurred()) SWIG_fail; | |
22600 | } | |
22601 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22602 | return resultobj; | |
22603 | fail: | |
22604 | return NULL; | |
22605 | } | |
22606 | ||
22607 | ||
22608 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22609 | PyObject *resultobj = 0; | |
22610 | wxDC *arg1 = (wxDC *) 0 ; | |
22611 | wxColour *arg2 = 0 ; | |
22612 | void *argp1 = 0 ; | |
22613 | int res1 = 0 ; | |
22614 | wxColour temp2 ; | |
22615 | PyObject * obj0 = 0 ; | |
22616 | PyObject * obj1 = 0 ; | |
22617 | char * kwnames[] = { | |
22618 | (char *) "self",(char *) "colour", NULL | |
22619 | }; | |
22620 | ||
22621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22622 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22623 | if (!SWIG_IsOK(res1)) { | |
22624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22625 | } | |
22626 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22627 | { | |
22628 | arg2 = &temp2; | |
22629 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22630 | } | |
22631 | { | |
22632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22633 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
22634 | wxPyEndAllowThreads(__tstate); | |
22635 | if (PyErr_Occurred()) SWIG_fail; | |
22636 | } | |
22637 | resultobj = SWIG_Py_Void(); | |
22638 | return resultobj; | |
22639 | fail: | |
22640 | return NULL; | |
22641 | } | |
22642 | ||
22643 | ||
22644 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22645 | PyObject *resultobj = 0; | |
22646 | wxDC *arg1 = (wxDC *) 0 ; | |
22647 | wxColour *arg2 = 0 ; | |
22648 | void *argp1 = 0 ; | |
22649 | int res1 = 0 ; | |
22650 | wxColour temp2 ; | |
22651 | PyObject * obj0 = 0 ; | |
22652 | PyObject * obj1 = 0 ; | |
22653 | char * kwnames[] = { | |
22654 | (char *) "self",(char *) "colour", NULL | |
22655 | }; | |
22656 | ||
22657 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22658 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22659 | if (!SWIG_IsOK(res1)) { | |
22660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22661 | } | |
22662 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22663 | { | |
22664 | arg2 = &temp2; | |
22665 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22666 | } | |
22667 | { | |
22668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22669 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
22670 | wxPyEndAllowThreads(__tstate); | |
22671 | if (PyErr_Occurred()) SWIG_fail; | |
22672 | } | |
22673 | resultobj = SWIG_Py_Void(); | |
22674 | return resultobj; | |
22675 | fail: | |
22676 | return NULL; | |
22677 | } | |
22678 | ||
22679 | ||
22680 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22681 | PyObject *resultobj = 0; | |
22682 | wxDC *arg1 = (wxDC *) 0 ; | |
22683 | int result; | |
22684 | void *argp1 = 0 ; | |
22685 | int res1 = 0 ; | |
22686 | PyObject *swig_obj[1] ; | |
22687 | ||
22688 | if (!args) SWIG_fail; | |
22689 | swig_obj[0] = args; | |
22690 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22691 | if (!SWIG_IsOK(res1)) { | |
22692 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22693 | } | |
22694 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22695 | { | |
22696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22697 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
22698 | wxPyEndAllowThreads(__tstate); | |
22699 | if (PyErr_Occurred()) SWIG_fail; | |
22700 | } | |
22701 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22702 | return resultobj; | |
22703 | fail: | |
22704 | return NULL; | |
22705 | } | |
22706 | ||
22707 | ||
22708 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22709 | PyObject *resultobj = 0; | |
22710 | wxDC *arg1 = (wxDC *) 0 ; | |
22711 | int arg2 ; | |
22712 | void *argp1 = 0 ; | |
22713 | int res1 = 0 ; | |
22714 | int val2 ; | |
22715 | int ecode2 = 0 ; | |
22716 | PyObject * obj0 = 0 ; | |
22717 | PyObject * obj1 = 0 ; | |
22718 | char * kwnames[] = { | |
22719 | (char *) "self",(char *) "mode", NULL | |
22720 | }; | |
22721 | ||
22722 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22724 | if (!SWIG_IsOK(res1)) { | |
22725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22726 | } | |
22727 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22728 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22729 | if (!SWIG_IsOK(ecode2)) { | |
22730 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
22731 | } | |
22732 | arg2 = static_cast< int >(val2); | |
22733 | { | |
22734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22735 | (arg1)->SetMapMode(arg2); | |
22736 | wxPyEndAllowThreads(__tstate); | |
22737 | if (PyErr_Occurred()) SWIG_fail; | |
22738 | } | |
22739 | resultobj = SWIG_Py_Void(); | |
22740 | return resultobj; | |
22741 | fail: | |
22742 | return NULL; | |
22743 | } | |
22744 | ||
22745 | ||
22746 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22747 | PyObject *resultobj = 0; | |
22748 | wxDC *arg1 = (wxDC *) 0 ; | |
22749 | double *arg2 = (double *) 0 ; | |
22750 | double *arg3 = (double *) 0 ; | |
22751 | void *argp1 = 0 ; | |
22752 | int res1 = 0 ; | |
22753 | double temp2 ; | |
22754 | int res2 = SWIG_TMPOBJ ; | |
22755 | double temp3 ; | |
22756 | int res3 = SWIG_TMPOBJ ; | |
22757 | PyObject *swig_obj[1] ; | |
22758 | ||
22759 | arg2 = &temp2; | |
22760 | arg3 = &temp3; | |
22761 | if (!args) SWIG_fail; | |
22762 | swig_obj[0] = args; | |
22763 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22764 | if (!SWIG_IsOK(res1)) { | |
22765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22766 | } | |
22767 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22768 | { | |
22769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22770 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
22771 | wxPyEndAllowThreads(__tstate); | |
22772 | if (PyErr_Occurred()) SWIG_fail; | |
22773 | } | |
22774 | resultobj = SWIG_Py_Void(); | |
22775 | if (SWIG_IsTmpObj(res2)) { | |
22776 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22777 | } else { | |
22778 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22779 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22780 | } | |
22781 | if (SWIG_IsTmpObj(res3)) { | |
22782 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22783 | } else { | |
22784 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22785 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22786 | } | |
22787 | return resultobj; | |
22788 | fail: | |
22789 | return NULL; | |
22790 | } | |
22791 | ||
22792 | ||
22793 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22794 | PyObject *resultobj = 0; | |
22795 | wxDC *arg1 = (wxDC *) 0 ; | |
22796 | double arg2 ; | |
22797 | double arg3 ; | |
22798 | void *argp1 = 0 ; | |
22799 | int res1 = 0 ; | |
22800 | double val2 ; | |
22801 | int ecode2 = 0 ; | |
22802 | double val3 ; | |
22803 | int ecode3 = 0 ; | |
22804 | PyObject * obj0 = 0 ; | |
22805 | PyObject * obj1 = 0 ; | |
22806 | PyObject * obj2 = 0 ; | |
22807 | char * kwnames[] = { | |
22808 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22809 | }; | |
22810 | ||
22811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22813 | if (!SWIG_IsOK(res1)) { | |
22814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22815 | } | |
22816 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22817 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22818 | if (!SWIG_IsOK(ecode2)) { | |
22819 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
22820 | } | |
22821 | arg2 = static_cast< double >(val2); | |
22822 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22823 | if (!SWIG_IsOK(ecode3)) { | |
22824 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
22825 | } | |
22826 | arg3 = static_cast< double >(val3); | |
22827 | { | |
22828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22829 | (arg1)->SetUserScale(arg2,arg3); | |
22830 | wxPyEndAllowThreads(__tstate); | |
22831 | if (PyErr_Occurred()) SWIG_fail; | |
22832 | } | |
22833 | resultobj = SWIG_Py_Void(); | |
22834 | return resultobj; | |
22835 | fail: | |
22836 | return NULL; | |
22837 | } | |
22838 | ||
22839 | ||
22840 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22841 | PyObject *resultobj = 0; | |
22842 | wxDC *arg1 = (wxDC *) 0 ; | |
22843 | double *arg2 = (double *) 0 ; | |
22844 | double *arg3 = (double *) 0 ; | |
22845 | void *argp1 = 0 ; | |
22846 | int res1 = 0 ; | |
22847 | double temp2 ; | |
22848 | int res2 = SWIG_TMPOBJ ; | |
22849 | double temp3 ; | |
22850 | int res3 = SWIG_TMPOBJ ; | |
22851 | PyObject *swig_obj[1] ; | |
22852 | ||
22853 | arg2 = &temp2; | |
22854 | arg3 = &temp3; | |
22855 | if (!args) SWIG_fail; | |
22856 | swig_obj[0] = args; | |
22857 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22858 | if (!SWIG_IsOK(res1)) { | |
22859 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22860 | } | |
22861 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22862 | { | |
22863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22864 | (arg1)->GetLogicalScale(arg2,arg3); | |
22865 | wxPyEndAllowThreads(__tstate); | |
22866 | if (PyErr_Occurred()) SWIG_fail; | |
22867 | } | |
22868 | resultobj = SWIG_Py_Void(); | |
22869 | if (SWIG_IsTmpObj(res2)) { | |
22870 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22871 | } else { | |
22872 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22873 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22874 | } | |
22875 | if (SWIG_IsTmpObj(res3)) { | |
22876 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22877 | } else { | |
22878 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22879 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22880 | } | |
22881 | return resultobj; | |
22882 | fail: | |
22883 | return NULL; | |
22884 | } | |
22885 | ||
22886 | ||
22887 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22888 | PyObject *resultobj = 0; | |
22889 | wxDC *arg1 = (wxDC *) 0 ; | |
22890 | double arg2 ; | |
22891 | double arg3 ; | |
22892 | void *argp1 = 0 ; | |
22893 | int res1 = 0 ; | |
22894 | double val2 ; | |
22895 | int ecode2 = 0 ; | |
22896 | double val3 ; | |
22897 | int ecode3 = 0 ; | |
22898 | PyObject * obj0 = 0 ; | |
22899 | PyObject * obj1 = 0 ; | |
22900 | PyObject * obj2 = 0 ; | |
22901 | char * kwnames[] = { | |
22902 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22903 | }; | |
22904 | ||
22905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22906 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22907 | if (!SWIG_IsOK(res1)) { | |
22908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22909 | } | |
22910 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22911 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22912 | if (!SWIG_IsOK(ecode2)) { | |
22913 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
22914 | } | |
22915 | arg2 = static_cast< double >(val2); | |
22916 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22917 | if (!SWIG_IsOK(ecode3)) { | |
22918 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
22919 | } | |
22920 | arg3 = static_cast< double >(val3); | |
22921 | { | |
22922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22923 | (arg1)->SetLogicalScale(arg2,arg3); | |
22924 | wxPyEndAllowThreads(__tstate); | |
22925 | if (PyErr_Occurred()) SWIG_fail; | |
22926 | } | |
22927 | resultobj = SWIG_Py_Void(); | |
22928 | return resultobj; | |
22929 | fail: | |
22930 | return NULL; | |
22931 | } | |
22932 | ||
22933 | ||
22934 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22935 | PyObject *resultobj = 0; | |
22936 | wxDC *arg1 = (wxDC *) 0 ; | |
22937 | wxPoint result; | |
22938 | void *argp1 = 0 ; | |
22939 | int res1 = 0 ; | |
22940 | PyObject *swig_obj[1] ; | |
22941 | ||
22942 | if (!args) SWIG_fail; | |
22943 | swig_obj[0] = args; | |
22944 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22945 | if (!SWIG_IsOK(res1)) { | |
22946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22947 | } | |
22948 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22949 | { | |
22950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22951 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
22952 | wxPyEndAllowThreads(__tstate); | |
22953 | if (PyErr_Occurred()) SWIG_fail; | |
22954 | } | |
22955 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22956 | return resultobj; | |
22957 | fail: | |
22958 | return NULL; | |
22959 | } | |
22960 | ||
22961 | ||
22962 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22963 | PyObject *resultobj = 0; | |
22964 | wxDC *arg1 = (wxDC *) 0 ; | |
22965 | int *arg2 = (int *) 0 ; | |
22966 | int *arg3 = (int *) 0 ; | |
22967 | void *argp1 = 0 ; | |
22968 | int res1 = 0 ; | |
22969 | int temp2 ; | |
22970 | int res2 = SWIG_TMPOBJ ; | |
22971 | int temp3 ; | |
22972 | int res3 = SWIG_TMPOBJ ; | |
22973 | PyObject *swig_obj[1] ; | |
22974 | ||
22975 | arg2 = &temp2; | |
22976 | arg3 = &temp3; | |
22977 | if (!args) SWIG_fail; | |
22978 | swig_obj[0] = args; | |
22979 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22980 | if (!SWIG_IsOK(res1)) { | |
22981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22982 | } | |
22983 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22984 | { | |
22985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22986 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
22987 | wxPyEndAllowThreads(__tstate); | |
22988 | if (PyErr_Occurred()) SWIG_fail; | |
22989 | } | |
22990 | resultobj = SWIG_Py_Void(); | |
22991 | if (SWIG_IsTmpObj(res2)) { | |
22992 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22993 | } else { | |
22994 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22995 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22996 | } | |
22997 | if (SWIG_IsTmpObj(res3)) { | |
22998 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22999 | } else { | |
23000 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23001 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23002 | } | |
23003 | return resultobj; | |
23004 | fail: | |
23005 | return NULL; | |
23006 | } | |
23007 | ||
23008 | ||
23009 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23010 | PyObject *resultobj = 0; | |
23011 | wxDC *arg1 = (wxDC *) 0 ; | |
23012 | int arg2 ; | |
23013 | int arg3 ; | |
23014 | void *argp1 = 0 ; | |
23015 | int res1 = 0 ; | |
23016 | int val2 ; | |
23017 | int ecode2 = 0 ; | |
23018 | int val3 ; | |
23019 | int ecode3 = 0 ; | |
23020 | PyObject * obj0 = 0 ; | |
23021 | PyObject * obj1 = 0 ; | |
23022 | PyObject * obj2 = 0 ; | |
23023 | char * kwnames[] = { | |
23024 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23025 | }; | |
23026 | ||
23027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23029 | if (!SWIG_IsOK(res1)) { | |
23030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23031 | } | |
23032 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23033 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23034 | if (!SWIG_IsOK(ecode2)) { | |
23035 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
23036 | } | |
23037 | arg2 = static_cast< int >(val2); | |
23038 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23039 | if (!SWIG_IsOK(ecode3)) { | |
23040 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
23041 | } | |
23042 | arg3 = static_cast< int >(val3); | |
23043 | { | |
23044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23045 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
23046 | wxPyEndAllowThreads(__tstate); | |
23047 | if (PyErr_Occurred()) SWIG_fail; | |
23048 | } | |
23049 | resultobj = SWIG_Py_Void(); | |
23050 | return resultobj; | |
23051 | fail: | |
23052 | return NULL; | |
23053 | } | |
23054 | ||
23055 | ||
23056 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23057 | PyObject *resultobj = 0; | |
23058 | wxDC *arg1 = (wxDC *) 0 ; | |
23059 | wxPoint *arg2 = 0 ; | |
23060 | void *argp1 = 0 ; | |
23061 | int res1 = 0 ; | |
23062 | wxPoint temp2 ; | |
23063 | PyObject * obj0 = 0 ; | |
23064 | PyObject * obj1 = 0 ; | |
23065 | char * kwnames[] = { | |
23066 | (char *) "self",(char *) "point", NULL | |
23067 | }; | |
23068 | ||
23069 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23070 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23071 | if (!SWIG_IsOK(res1)) { | |
23072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23073 | } | |
23074 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23075 | { | |
23076 | arg2 = &temp2; | |
23077 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23078 | } | |
23079 | { | |
23080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23081 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
23082 | wxPyEndAllowThreads(__tstate); | |
23083 | if (PyErr_Occurred()) SWIG_fail; | |
23084 | } | |
23085 | resultobj = SWIG_Py_Void(); | |
23086 | return resultobj; | |
23087 | fail: | |
23088 | return NULL; | |
23089 | } | |
23090 | ||
23091 | ||
23092 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23093 | PyObject *resultobj = 0; | |
23094 | wxDC *arg1 = (wxDC *) 0 ; | |
23095 | wxPoint result; | |
23096 | void *argp1 = 0 ; | |
23097 | int res1 = 0 ; | |
23098 | PyObject *swig_obj[1] ; | |
23099 | ||
23100 | if (!args) SWIG_fail; | |
23101 | swig_obj[0] = args; | |
23102 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23103 | if (!SWIG_IsOK(res1)) { | |
23104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23105 | } | |
23106 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23107 | { | |
23108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23109 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
23110 | wxPyEndAllowThreads(__tstate); | |
23111 | if (PyErr_Occurred()) SWIG_fail; | |
23112 | } | |
23113 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
23114 | return resultobj; | |
23115 | fail: | |
23116 | return NULL; | |
23117 | } | |
23118 | ||
23119 | ||
23120 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23121 | PyObject *resultobj = 0; | |
23122 | wxDC *arg1 = (wxDC *) 0 ; | |
23123 | int *arg2 = (int *) 0 ; | |
23124 | int *arg3 = (int *) 0 ; | |
23125 | void *argp1 = 0 ; | |
23126 | int res1 = 0 ; | |
23127 | int temp2 ; | |
23128 | int res2 = SWIG_TMPOBJ ; | |
23129 | int temp3 ; | |
23130 | int res3 = SWIG_TMPOBJ ; | |
23131 | PyObject *swig_obj[1] ; | |
23132 | ||
23133 | arg2 = &temp2; | |
23134 | arg3 = &temp3; | |
23135 | if (!args) SWIG_fail; | |
23136 | swig_obj[0] = args; | |
23137 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23138 | if (!SWIG_IsOK(res1)) { | |
23139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23140 | } | |
23141 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23142 | { | |
23143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23144 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
23145 | wxPyEndAllowThreads(__tstate); | |
23146 | if (PyErr_Occurred()) SWIG_fail; | |
23147 | } | |
23148 | resultobj = SWIG_Py_Void(); | |
23149 | if (SWIG_IsTmpObj(res2)) { | |
23150 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23151 | } else { | |
23152 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23153 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23154 | } | |
23155 | if (SWIG_IsTmpObj(res3)) { | |
23156 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23157 | } else { | |
23158 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23159 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23160 | } | |
23161 | return resultobj; | |
23162 | fail: | |
23163 | return NULL; | |
23164 | } | |
23165 | ||
23166 | ||
23167 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23168 | PyObject *resultobj = 0; | |
23169 | wxDC *arg1 = (wxDC *) 0 ; | |
23170 | int arg2 ; | |
23171 | int arg3 ; | |
23172 | void *argp1 = 0 ; | |
23173 | int res1 = 0 ; | |
23174 | int val2 ; | |
23175 | int ecode2 = 0 ; | |
23176 | int val3 ; | |
23177 | int ecode3 = 0 ; | |
23178 | PyObject * obj0 = 0 ; | |
23179 | PyObject * obj1 = 0 ; | |
23180 | PyObject * obj2 = 0 ; | |
23181 | char * kwnames[] = { | |
23182 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23183 | }; | |
23184 | ||
23185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23187 | if (!SWIG_IsOK(res1)) { | |
23188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23189 | } | |
23190 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23191 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23192 | if (!SWIG_IsOK(ecode2)) { | |
23193 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
23194 | } | |
23195 | arg2 = static_cast< int >(val2); | |
23196 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23197 | if (!SWIG_IsOK(ecode3)) { | |
23198 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
23199 | } | |
23200 | arg3 = static_cast< int >(val3); | |
23201 | { | |
23202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23203 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
23204 | wxPyEndAllowThreads(__tstate); | |
23205 | if (PyErr_Occurred()) SWIG_fail; | |
23206 | } | |
23207 | resultobj = SWIG_Py_Void(); | |
23208 | return resultobj; | |
23209 | fail: | |
23210 | return NULL; | |
23211 | } | |
23212 | ||
23213 | ||
23214 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23215 | PyObject *resultobj = 0; | |
23216 | wxDC *arg1 = (wxDC *) 0 ; | |
23217 | wxPoint *arg2 = 0 ; | |
23218 | void *argp1 = 0 ; | |
23219 | int res1 = 0 ; | |
23220 | wxPoint temp2 ; | |
23221 | PyObject * obj0 = 0 ; | |
23222 | PyObject * obj1 = 0 ; | |
23223 | char * kwnames[] = { | |
23224 | (char *) "self",(char *) "point", NULL | |
23225 | }; | |
23226 | ||
23227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23228 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23229 | if (!SWIG_IsOK(res1)) { | |
23230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23231 | } | |
23232 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23233 | { | |
23234 | arg2 = &temp2; | |
23235 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23236 | } | |
23237 | { | |
23238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23239 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
23240 | wxPyEndAllowThreads(__tstate); | |
23241 | if (PyErr_Occurred()) SWIG_fail; | |
23242 | } | |
23243 | resultobj = SWIG_Py_Void(); | |
23244 | return resultobj; | |
23245 | fail: | |
23246 | return NULL; | |
23247 | } | |
23248 | ||
23249 | ||
23250 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23251 | PyObject *resultobj = 0; | |
23252 | wxDC *arg1 = (wxDC *) 0 ; | |
23253 | bool arg2 ; | |
23254 | bool arg3 ; | |
23255 | void *argp1 = 0 ; | |
23256 | int res1 = 0 ; | |
23257 | bool val2 ; | |
23258 | int ecode2 = 0 ; | |
23259 | bool val3 ; | |
23260 | int ecode3 = 0 ; | |
23261 | PyObject * obj0 = 0 ; | |
23262 | PyObject * obj1 = 0 ; | |
23263 | PyObject * obj2 = 0 ; | |
23264 | char * kwnames[] = { | |
23265 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
23266 | }; | |
23267 | ||
23268 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23269 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23270 | if (!SWIG_IsOK(res1)) { | |
23271 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23272 | } | |
23273 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23274 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23275 | if (!SWIG_IsOK(ecode2)) { | |
23276 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
23277 | } | |
23278 | arg2 = static_cast< bool >(val2); | |
23279 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
23280 | if (!SWIG_IsOK(ecode3)) { | |
23281 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
23282 | } | |
23283 | arg3 = static_cast< bool >(val3); | |
23284 | { | |
23285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23286 | (arg1)->SetAxisOrientation(arg2,arg3); | |
23287 | wxPyEndAllowThreads(__tstate); | |
23288 | if (PyErr_Occurred()) SWIG_fail; | |
23289 | } | |
23290 | resultobj = SWIG_Py_Void(); | |
23291 | return resultobj; | |
23292 | fail: | |
23293 | return NULL; | |
23294 | } | |
23295 | ||
23296 | ||
23297 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23298 | PyObject *resultobj = 0; | |
23299 | wxDC *arg1 = (wxDC *) 0 ; | |
23300 | int result; | |
23301 | void *argp1 = 0 ; | |
23302 | int res1 = 0 ; | |
23303 | PyObject *swig_obj[1] ; | |
23304 | ||
23305 | if (!args) SWIG_fail; | |
23306 | swig_obj[0] = args; | |
23307 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23308 | if (!SWIG_IsOK(res1)) { | |
23309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23310 | } | |
23311 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23312 | { | |
23313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23314 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
23315 | wxPyEndAllowThreads(__tstate); | |
23316 | if (PyErr_Occurred()) SWIG_fail; | |
23317 | } | |
23318 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23319 | return resultobj; | |
23320 | fail: | |
23321 | return NULL; | |
23322 | } | |
23323 | ||
23324 | ||
23325 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23326 | PyObject *resultobj = 0; | |
23327 | wxDC *arg1 = (wxDC *) 0 ; | |
23328 | int arg2 ; | |
23329 | void *argp1 = 0 ; | |
23330 | int res1 = 0 ; | |
23331 | int val2 ; | |
23332 | int ecode2 = 0 ; | |
23333 | PyObject * obj0 = 0 ; | |
23334 | PyObject * obj1 = 0 ; | |
23335 | char * kwnames[] = { | |
23336 | (char *) "self",(char *) "function", NULL | |
23337 | }; | |
23338 | ||
23339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
23340 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23341 | if (!SWIG_IsOK(res1)) { | |
23342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23343 | } | |
23344 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23345 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23346 | if (!SWIG_IsOK(ecode2)) { | |
23347 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
23348 | } | |
23349 | arg2 = static_cast< int >(val2); | |
23350 | { | |
23351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23352 | (arg1)->SetLogicalFunction(arg2); | |
23353 | wxPyEndAllowThreads(__tstate); | |
23354 | if (PyErr_Occurred()) SWIG_fail; | |
23355 | } | |
23356 | resultobj = SWIG_Py_Void(); | |
23357 | return resultobj; | |
23358 | fail: | |
23359 | return NULL; | |
23360 | } | |
23361 | ||
23362 | ||
23363 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23364 | PyObject *resultobj = 0; | |
23365 | wxDC *arg1 = (wxDC *) 0 ; | |
23366 | void *argp1 = 0 ; | |
23367 | int res1 = 0 ; | |
23368 | PyObject *swig_obj[1] ; | |
23369 | ||
23370 | if (!args) SWIG_fail; | |
23371 | swig_obj[0] = args; | |
23372 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23373 | if (!SWIG_IsOK(res1)) { | |
23374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23375 | } | |
23376 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23377 | { | |
23378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23379 | (arg1)->ComputeScaleAndOrigin(); | |
23380 | wxPyEndAllowThreads(__tstate); | |
23381 | if (PyErr_Occurred()) SWIG_fail; | |
23382 | } | |
23383 | resultobj = SWIG_Py_Void(); | |
23384 | return resultobj; | |
23385 | fail: | |
23386 | return NULL; | |
23387 | } | |
23388 | ||
23389 | ||
23390 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23391 | PyObject *resultobj = 0; | |
23392 | wxDC *arg1 = (wxDC *) 0 ; | |
23393 | int arg2 ; | |
23394 | int arg3 ; | |
23395 | void *argp1 = 0 ; | |
23396 | int res1 = 0 ; | |
23397 | int val2 ; | |
23398 | int ecode2 = 0 ; | |
23399 | int val3 ; | |
23400 | int ecode3 = 0 ; | |
23401 | PyObject * obj0 = 0 ; | |
23402 | PyObject * obj1 = 0 ; | |
23403 | PyObject * obj2 = 0 ; | |
23404 | char * kwnames[] = { | |
23405 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23406 | }; | |
23407 | ||
23408 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23409 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23410 | if (!SWIG_IsOK(res1)) { | |
23411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23412 | } | |
23413 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23414 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23415 | if (!SWIG_IsOK(ecode2)) { | |
23416 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
23417 | } | |
23418 | arg2 = static_cast< int >(val2); | |
23419 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23420 | if (!SWIG_IsOK(ecode3)) { | |
23421 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
23422 | } | |
23423 | arg3 = static_cast< int >(val3); | |
23424 | { | |
23425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23426 | (arg1)->CalcBoundingBox(arg2,arg3); | |
23427 | wxPyEndAllowThreads(__tstate); | |
23428 | if (PyErr_Occurred()) SWIG_fail; | |
23429 | } | |
23430 | resultobj = SWIG_Py_Void(); | |
23431 | return resultobj; | |
23432 | fail: | |
23433 | return NULL; | |
23434 | } | |
23435 | ||
23436 | ||
23437 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23438 | PyObject *resultobj = 0; | |
23439 | wxDC *arg1 = (wxDC *) 0 ; | |
23440 | wxPoint *arg2 = 0 ; | |
23441 | void *argp1 = 0 ; | |
23442 | int res1 = 0 ; | |
23443 | wxPoint temp2 ; | |
23444 | PyObject * obj0 = 0 ; | |
23445 | PyObject * obj1 = 0 ; | |
23446 | char * kwnames[] = { | |
23447 | (char *) "self",(char *) "point", NULL | |
23448 | }; | |
23449 | ||
23450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23452 | if (!SWIG_IsOK(res1)) { | |
23453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23454 | } | |
23455 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23456 | { | |
23457 | arg2 = &temp2; | |
23458 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23459 | } | |
23460 | { | |
23461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23462 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
23463 | wxPyEndAllowThreads(__tstate); | |
23464 | if (PyErr_Occurred()) SWIG_fail; | |
23465 | } | |
23466 | resultobj = SWIG_Py_Void(); | |
23467 | return resultobj; | |
23468 | fail: | |
23469 | return NULL; | |
23470 | } | |
23471 | ||
23472 | ||
23473 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23474 | PyObject *resultobj = 0; | |
23475 | wxDC *arg1 = (wxDC *) 0 ; | |
23476 | void *argp1 = 0 ; | |
23477 | int res1 = 0 ; | |
23478 | PyObject *swig_obj[1] ; | |
23479 | ||
23480 | if (!args) SWIG_fail; | |
23481 | swig_obj[0] = args; | |
23482 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23483 | if (!SWIG_IsOK(res1)) { | |
23484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23485 | } | |
23486 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23487 | { | |
23488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23489 | (arg1)->ResetBoundingBox(); | |
23490 | wxPyEndAllowThreads(__tstate); | |
23491 | if (PyErr_Occurred()) SWIG_fail; | |
23492 | } | |
23493 | resultobj = SWIG_Py_Void(); | |
23494 | return resultobj; | |
23495 | fail: | |
23496 | return NULL; | |
23497 | } | |
23498 | ||
23499 | ||
23500 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23501 | PyObject *resultobj = 0; | |
23502 | wxDC *arg1 = (wxDC *) 0 ; | |
23503 | int result; | |
23504 | void *argp1 = 0 ; | |
23505 | int res1 = 0 ; | |
23506 | PyObject *swig_obj[1] ; | |
23507 | ||
23508 | if (!args) SWIG_fail; | |
23509 | swig_obj[0] = args; | |
23510 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23511 | if (!SWIG_IsOK(res1)) { | |
23512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23513 | } | |
23514 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23515 | { | |
23516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23517 | result = (int)((wxDC const *)arg1)->MinX(); | |
23518 | wxPyEndAllowThreads(__tstate); | |
23519 | if (PyErr_Occurred()) SWIG_fail; | |
23520 | } | |
23521 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23522 | return resultobj; | |
23523 | fail: | |
23524 | return NULL; | |
23525 | } | |
23526 | ||
23527 | ||
23528 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23529 | PyObject *resultobj = 0; | |
23530 | wxDC *arg1 = (wxDC *) 0 ; | |
23531 | int result; | |
23532 | void *argp1 = 0 ; | |
23533 | int res1 = 0 ; | |
23534 | PyObject *swig_obj[1] ; | |
23535 | ||
23536 | if (!args) SWIG_fail; | |
23537 | swig_obj[0] = args; | |
23538 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23539 | if (!SWIG_IsOK(res1)) { | |
23540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23541 | } | |
23542 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23543 | { | |
23544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23545 | result = (int)((wxDC const *)arg1)->MaxX(); | |
23546 | wxPyEndAllowThreads(__tstate); | |
23547 | if (PyErr_Occurred()) SWIG_fail; | |
23548 | } | |
23549 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23550 | return resultobj; | |
23551 | fail: | |
23552 | return NULL; | |
23553 | } | |
23554 | ||
23555 | ||
23556 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23557 | PyObject *resultobj = 0; | |
23558 | wxDC *arg1 = (wxDC *) 0 ; | |
23559 | int result; | |
23560 | void *argp1 = 0 ; | |
23561 | int res1 = 0 ; | |
23562 | PyObject *swig_obj[1] ; | |
23563 | ||
23564 | if (!args) SWIG_fail; | |
23565 | swig_obj[0] = args; | |
23566 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23567 | if (!SWIG_IsOK(res1)) { | |
23568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23569 | } | |
23570 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23571 | { | |
23572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23573 | result = (int)((wxDC const *)arg1)->MinY(); | |
23574 | wxPyEndAllowThreads(__tstate); | |
23575 | if (PyErr_Occurred()) SWIG_fail; | |
23576 | } | |
23577 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23578 | return resultobj; | |
23579 | fail: | |
23580 | return NULL; | |
23581 | } | |
23582 | ||
23583 | ||
23584 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23585 | PyObject *resultobj = 0; | |
23586 | wxDC *arg1 = (wxDC *) 0 ; | |
23587 | int result; | |
23588 | void *argp1 = 0 ; | |
23589 | int res1 = 0 ; | |
23590 | PyObject *swig_obj[1] ; | |
23591 | ||
23592 | if (!args) SWIG_fail; | |
23593 | swig_obj[0] = args; | |
23594 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23595 | if (!SWIG_IsOK(res1)) { | |
23596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23597 | } | |
23598 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23599 | { | |
23600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23601 | result = (int)((wxDC const *)arg1)->MaxY(); | |
23602 | wxPyEndAllowThreads(__tstate); | |
23603 | if (PyErr_Occurred()) SWIG_fail; | |
23604 | } | |
23605 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23606 | return resultobj; | |
23607 | fail: | |
23608 | return NULL; | |
23609 | } | |
23610 | ||
23611 | ||
23612 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23613 | PyObject *resultobj = 0; | |
23614 | wxDC *arg1 = (wxDC *) 0 ; | |
23615 | int *arg2 = (int *) 0 ; | |
23616 | int *arg3 = (int *) 0 ; | |
23617 | int *arg4 = (int *) 0 ; | |
23618 | int *arg5 = (int *) 0 ; | |
23619 | void *argp1 = 0 ; | |
23620 | int res1 = 0 ; | |
23621 | int temp2 ; | |
23622 | int res2 = SWIG_TMPOBJ ; | |
23623 | int temp3 ; | |
23624 | int res3 = SWIG_TMPOBJ ; | |
23625 | int temp4 ; | |
23626 | int res4 = SWIG_TMPOBJ ; | |
23627 | int temp5 ; | |
23628 | int res5 = SWIG_TMPOBJ ; | |
23629 | PyObject *swig_obj[1] ; | |
23630 | ||
23631 | arg2 = &temp2; | |
23632 | arg3 = &temp3; | |
23633 | arg4 = &temp4; | |
23634 | arg5 = &temp5; | |
23635 | if (!args) SWIG_fail; | |
23636 | swig_obj[0] = args; | |
23637 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23638 | if (!SWIG_IsOK(res1)) { | |
23639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23640 | } | |
23641 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23642 | { | |
23643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23644 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
23645 | wxPyEndAllowThreads(__tstate); | |
23646 | if (PyErr_Occurred()) SWIG_fail; | |
23647 | } | |
23648 | resultobj = SWIG_Py_Void(); | |
23649 | if (SWIG_IsTmpObj(res2)) { | |
23650 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23651 | } else { | |
23652 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23653 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23654 | } | |
23655 | if (SWIG_IsTmpObj(res3)) { | |
23656 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23657 | } else { | |
23658 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23659 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23660 | } | |
23661 | if (SWIG_IsTmpObj(res4)) { | |
23662 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
23663 | } else { | |
23664 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23665 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
23666 | } | |
23667 | if (SWIG_IsTmpObj(res5)) { | |
23668 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
23669 | } else { | |
23670 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23671 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
23672 | } | |
23673 | return resultobj; | |
23674 | fail: | |
23675 | return NULL; | |
23676 | } | |
23677 | ||
23678 | ||
b39fe951 RD |
23679 | SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23680 | PyObject *resultobj = 0; | |
23681 | wxDC *arg1 = (wxDC *) 0 ; | |
23682 | wxLayoutDirection result; | |
23683 | void *argp1 = 0 ; | |
23684 | int res1 = 0 ; | |
23685 | PyObject *swig_obj[1] ; | |
23686 | ||
23687 | if (!args) SWIG_fail; | |
23688 | swig_obj[0] = args; | |
23689 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23690 | if (!SWIG_IsOK(res1)) { | |
23691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23692 | } | |
23693 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23694 | { | |
23695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23696 | result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection(); | |
23697 | wxPyEndAllowThreads(__tstate); | |
23698 | if (PyErr_Occurred()) SWIG_fail; | |
23699 | } | |
23700 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23701 | return resultobj; | |
23702 | fail: | |
23703 | return NULL; | |
23704 | } | |
23705 | ||
23706 | ||
23707 | SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23708 | PyObject *resultobj = 0; | |
23709 | wxDC *arg1 = (wxDC *) 0 ; | |
23710 | wxLayoutDirection arg2 ; | |
23711 | void *argp1 = 0 ; | |
23712 | int res1 = 0 ; | |
23713 | int val2 ; | |
23714 | int ecode2 = 0 ; | |
23715 | PyObject * obj0 = 0 ; | |
23716 | PyObject * obj1 = 0 ; | |
23717 | char * kwnames[] = { | |
23718 | (char *) "self",(char *) "dir", NULL | |
23719 | }; | |
23720 | ||
23721 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail; | |
23722 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23723 | if (!SWIG_IsOK(res1)) { | |
23724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23725 | } | |
23726 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23727 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23728 | if (!SWIG_IsOK(ecode2)) { | |
23729 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'"); | |
23730 | } | |
23731 | arg2 = static_cast< wxLayoutDirection >(val2); | |
23732 | { | |
23733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23734 | (arg1)->SetLayoutDirection(arg2); | |
23735 | wxPyEndAllowThreads(__tstate); | |
23736 | if (PyErr_Occurred()) SWIG_fail; | |
23737 | } | |
23738 | resultobj = SWIG_Py_Void(); | |
23739 | return resultobj; | |
23740 | fail: | |
23741 | return NULL; | |
23742 | } | |
23743 | ||
23744 | ||
0085ce49 RD |
23745 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23746 | PyObject *resultobj = 0; | |
23747 | wxDC *arg1 = (wxDC *) 0 ; | |
23748 | PyObject *arg2 = (PyObject *) 0 ; | |
23749 | PyObject *arg3 = (PyObject *) 0 ; | |
23750 | PyObject *arg4 = (PyObject *) 0 ; | |
23751 | PyObject *result = 0 ; | |
23752 | void *argp1 = 0 ; | |
23753 | int res1 = 0 ; | |
23754 | PyObject * obj0 = 0 ; | |
23755 | PyObject * obj1 = 0 ; | |
23756 | PyObject * obj2 = 0 ; | |
23757 | PyObject * obj3 = 0 ; | |
23758 | char * kwnames[] = { | |
23759 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23760 | }; | |
23761 | ||
23762 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23763 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23764 | if (!SWIG_IsOK(res1)) { | |
23765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23766 | } | |
23767 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23768 | arg2 = obj1; | |
23769 | arg3 = obj2; | |
23770 | arg4 = obj3; | |
23771 | { | |
23772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23773 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
23774 | wxPyEndAllowThreads(__tstate); | |
23775 | if (PyErr_Occurred()) SWIG_fail; | |
23776 | } | |
23777 | resultobj = result; | |
23778 | return resultobj; | |
23779 | fail: | |
23780 | return NULL; | |
23781 | } | |
23782 | ||
23783 | ||
23784 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23785 | PyObject *resultobj = 0; | |
23786 | wxDC *arg1 = (wxDC *) 0 ; | |
23787 | PyObject *arg2 = (PyObject *) 0 ; | |
23788 | PyObject *arg3 = (PyObject *) 0 ; | |
23789 | PyObject *arg4 = (PyObject *) 0 ; | |
23790 | PyObject *result = 0 ; | |
23791 | void *argp1 = 0 ; | |
23792 | int res1 = 0 ; | |
23793 | PyObject * obj0 = 0 ; | |
23794 | PyObject * obj1 = 0 ; | |
23795 | PyObject * obj2 = 0 ; | |
23796 | PyObject * obj3 = 0 ; | |
23797 | char * kwnames[] = { | |
23798 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23799 | }; | |
23800 | ||
23801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23803 | if (!SWIG_IsOK(res1)) { | |
23804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23805 | } | |
23806 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23807 | arg2 = obj1; | |
23808 | arg3 = obj2; | |
23809 | arg4 = obj3; | |
23810 | { | |
23811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23812 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
23813 | wxPyEndAllowThreads(__tstate); | |
23814 | if (PyErr_Occurred()) SWIG_fail; | |
23815 | } | |
23816 | resultobj = result; | |
23817 | return resultobj; | |
23818 | fail: | |
23819 | return NULL; | |
23820 | } | |
23821 | ||
23822 | ||
23823 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23824 | PyObject *resultobj = 0; | |
23825 | wxDC *arg1 = (wxDC *) 0 ; | |
23826 | PyObject *arg2 = (PyObject *) 0 ; | |
23827 | PyObject *arg3 = (PyObject *) 0 ; | |
23828 | PyObject *arg4 = (PyObject *) 0 ; | |
23829 | PyObject *result = 0 ; | |
23830 | void *argp1 = 0 ; | |
23831 | int res1 = 0 ; | |
23832 | PyObject * obj0 = 0 ; | |
23833 | PyObject * obj1 = 0 ; | |
23834 | PyObject * obj2 = 0 ; | |
23835 | PyObject * obj3 = 0 ; | |
23836 | char * kwnames[] = { | |
23837 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23838 | }; | |
23839 | ||
23840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23841 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23842 | if (!SWIG_IsOK(res1)) { | |
23843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23844 | } | |
23845 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23846 | arg2 = obj1; | |
23847 | arg3 = obj2; | |
23848 | arg4 = obj3; | |
23849 | { | |
23850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23851 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
23852 | wxPyEndAllowThreads(__tstate); | |
23853 | if (PyErr_Occurred()) SWIG_fail; | |
23854 | } | |
23855 | resultobj = result; | |
23856 | return resultobj; | |
23857 | fail: | |
23858 | return NULL; | |
23859 | } | |
23860 | ||
23861 | ||
23862 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23863 | PyObject *resultobj = 0; | |
23864 | wxDC *arg1 = (wxDC *) 0 ; | |
23865 | PyObject *arg2 = (PyObject *) 0 ; | |
23866 | PyObject *arg3 = (PyObject *) 0 ; | |
23867 | PyObject *arg4 = (PyObject *) 0 ; | |
23868 | PyObject *result = 0 ; | |
23869 | void *argp1 = 0 ; | |
23870 | int res1 = 0 ; | |
23871 | PyObject * obj0 = 0 ; | |
23872 | PyObject * obj1 = 0 ; | |
23873 | PyObject * obj2 = 0 ; | |
23874 | PyObject * obj3 = 0 ; | |
23875 | char * kwnames[] = { | |
23876 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23877 | }; | |
23878 | ||
23879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23881 | if (!SWIG_IsOK(res1)) { | |
23882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23883 | } | |
23884 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23885 | arg2 = obj1; | |
23886 | arg3 = obj2; | |
23887 | arg4 = obj3; | |
23888 | { | |
23889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23890 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
23891 | wxPyEndAllowThreads(__tstate); | |
23892 | if (PyErr_Occurred()) SWIG_fail; | |
23893 | } | |
23894 | resultobj = result; | |
23895 | return resultobj; | |
23896 | fail: | |
23897 | return NULL; | |
23898 | } | |
23899 | ||
23900 | ||
23901 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23902 | PyObject *resultobj = 0; | |
23903 | wxDC *arg1 = (wxDC *) 0 ; | |
23904 | PyObject *arg2 = (PyObject *) 0 ; | |
23905 | PyObject *arg3 = (PyObject *) 0 ; | |
23906 | PyObject *arg4 = (PyObject *) 0 ; | |
23907 | PyObject *result = 0 ; | |
23908 | void *argp1 = 0 ; | |
23909 | int res1 = 0 ; | |
23910 | PyObject * obj0 = 0 ; | |
23911 | PyObject * obj1 = 0 ; | |
23912 | PyObject * obj2 = 0 ; | |
23913 | PyObject * obj3 = 0 ; | |
23914 | char * kwnames[] = { | |
23915 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23916 | }; | |
23917 | ||
23918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23920 | if (!SWIG_IsOK(res1)) { | |
23921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23922 | } | |
23923 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23924 | arg2 = obj1; | |
23925 | arg3 = obj2; | |
23926 | arg4 = obj3; | |
23927 | { | |
23928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23929 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
23930 | wxPyEndAllowThreads(__tstate); | |
23931 | if (PyErr_Occurred()) SWIG_fail; | |
23932 | } | |
23933 | resultobj = result; | |
23934 | return resultobj; | |
23935 | fail: | |
23936 | return NULL; | |
23937 | } | |
23938 | ||
23939 | ||
23940 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23941 | PyObject *resultobj = 0; | |
23942 | wxDC *arg1 = (wxDC *) 0 ; | |
23943 | PyObject *arg2 = (PyObject *) 0 ; | |
23944 | PyObject *arg3 = (PyObject *) 0 ; | |
23945 | PyObject *arg4 = (PyObject *) 0 ; | |
23946 | PyObject *arg5 = (PyObject *) 0 ; | |
23947 | PyObject *result = 0 ; | |
23948 | void *argp1 = 0 ; | |
23949 | int res1 = 0 ; | |
23950 | PyObject * obj0 = 0 ; | |
23951 | PyObject * obj1 = 0 ; | |
23952 | PyObject * obj2 = 0 ; | |
23953 | PyObject * obj3 = 0 ; | |
23954 | PyObject * obj4 = 0 ; | |
23955 | char * kwnames[] = { | |
23956 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
23957 | }; | |
23958 | ||
23959 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
23960 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23961 | if (!SWIG_IsOK(res1)) { | |
23962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23963 | } | |
23964 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23965 | arg2 = obj1; | |
23966 | arg3 = obj2; | |
23967 | arg4 = obj3; | |
23968 | arg5 = obj4; | |
23969 | { | |
23970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23971 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
23972 | wxPyEndAllowThreads(__tstate); | |
23973 | if (PyErr_Occurred()) SWIG_fail; | |
23974 | } | |
23975 | resultobj = result; | |
23976 | return resultobj; | |
23977 | fail: | |
23978 | return NULL; | |
23979 | } | |
23980 | ||
23981 | ||
23982 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23983 | PyObject *obj; | |
23984 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23985 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
23986 | return SWIG_Py_Void(); | |
23987 | } | |
23988 | ||
70d7cb34 RD |
23989 | SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
23990 | PyObject *resultobj = 0; | |
23991 | wxDC *arg1 = 0 ; | |
23992 | wxColour *arg2 = 0 ; | |
23993 | wxDCTextColourChanger *result = 0 ; | |
23994 | void *argp1 = 0 ; | |
23995 | int res1 = 0 ; | |
23996 | wxColour temp2 ; | |
23997 | PyObject * obj0 = 0 ; | |
23998 | PyObject * obj1 = 0 ; | |
23999 | char * kwnames[] = { | |
24000 | (char *) "dc",(char *) "col", NULL | |
24001 | }; | |
24002 | ||
24003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
24004 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24005 | if (!SWIG_IsOK(res1)) { | |
24006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24007 | } | |
24008 | if (!argp1) { | |
24009 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24010 | } | |
24011 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24012 | { | |
24013 | arg2 = &temp2; | |
24014 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24015 | } | |
24016 | { | |
24017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24018 | result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2); | |
24019 | wxPyEndAllowThreads(__tstate); | |
24020 | if (PyErr_Occurred()) SWIG_fail; | |
24021 | } | |
24022 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 ); | |
24023 | return resultobj; | |
24024 | fail: | |
24025 | return NULL; | |
24026 | } | |
24027 | ||
24028 | ||
24029 | SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24030 | PyObject *resultobj = 0; | |
24031 | wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ; | |
24032 | void *argp1 = 0 ; | |
24033 | int res1 = 0 ; | |
24034 | PyObject *swig_obj[1] ; | |
24035 | ||
24036 | if (!args) SWIG_fail; | |
24037 | swig_obj[0] = args; | |
24038 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 ); | |
24039 | if (!SWIG_IsOK(res1)) { | |
24040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'"); | |
24041 | } | |
24042 | arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1); | |
24043 | { | |
24044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24045 | delete arg1; | |
24046 | ||
24047 | wxPyEndAllowThreads(__tstate); | |
24048 | if (PyErr_Occurred()) SWIG_fail; | |
24049 | } | |
24050 | resultobj = SWIG_Py_Void(); | |
24051 | return resultobj; | |
24052 | fail: | |
24053 | return NULL; | |
24054 | } | |
24055 | ||
24056 | ||
24057 | SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24058 | PyObject *obj; | |
24059 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24060 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj)); | |
24061 | return SWIG_Py_Void(); | |
24062 | } | |
24063 | ||
24064 | SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24065 | return SWIG_Python_InitShadowInstance(args); | |
24066 | } | |
24067 | ||
24068 | SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24069 | PyObject *resultobj = 0; | |
24070 | wxDC *arg1 = 0 ; | |
24071 | wxPen *arg2 = 0 ; | |
24072 | wxDCPenChanger *result = 0 ; | |
24073 | void *argp1 = 0 ; | |
24074 | int res1 = 0 ; | |
24075 | void *argp2 = 0 ; | |
24076 | int res2 = 0 ; | |
24077 | PyObject * obj0 = 0 ; | |
24078 | PyObject * obj1 = 0 ; | |
24079 | char * kwnames[] = { | |
24080 | (char *) "dc",(char *) "pen", NULL | |
24081 | }; | |
24082 | ||
24083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
24084 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24085 | if (!SWIG_IsOK(res1)) { | |
24086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24087 | } | |
24088 | if (!argp1) { | |
24089 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24090 | } | |
24091 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24092 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
24093 | if (!SWIG_IsOK(res2)) { | |
24094 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
24095 | } | |
24096 | if (!argp2) { | |
24097 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
24098 | } | |
24099 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
24100 | { | |
24101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24102 | result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2); | |
24103 | wxPyEndAllowThreads(__tstate); | |
24104 | if (PyErr_Occurred()) SWIG_fail; | |
24105 | } | |
24106 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 ); | |
24107 | return resultobj; | |
24108 | fail: | |
24109 | return NULL; | |
24110 | } | |
24111 | ||
24112 | ||
24113 | SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24114 | PyObject *resultobj = 0; | |
24115 | wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ; | |
24116 | void *argp1 = 0 ; | |
24117 | int res1 = 0 ; | |
24118 | PyObject *swig_obj[1] ; | |
24119 | ||
24120 | if (!args) SWIG_fail; | |
24121 | swig_obj[0] = args; | |
24122 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 ); | |
24123 | if (!SWIG_IsOK(res1)) { | |
24124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'"); | |
24125 | } | |
24126 | arg1 = reinterpret_cast< wxDCPenChanger * >(argp1); | |
24127 | { | |
24128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24129 | delete arg1; | |
24130 | ||
24131 | wxPyEndAllowThreads(__tstate); | |
24132 | if (PyErr_Occurred()) SWIG_fail; | |
24133 | } | |
24134 | resultobj = SWIG_Py_Void(); | |
24135 | return resultobj; | |
24136 | fail: | |
24137 | return NULL; | |
24138 | } | |
24139 | ||
24140 | ||
24141 | SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24142 | PyObject *obj; | |
24143 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24144 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj)); | |
24145 | return SWIG_Py_Void(); | |
24146 | } | |
24147 | ||
24148 | SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24149 | return SWIG_Python_InitShadowInstance(args); | |
24150 | } | |
24151 | ||
24152 | SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24153 | PyObject *resultobj = 0; | |
24154 | wxDC *arg1 = 0 ; | |
24155 | wxBrush *arg2 = 0 ; | |
24156 | wxDCBrushChanger *result = 0 ; | |
24157 | void *argp1 = 0 ; | |
24158 | int res1 = 0 ; | |
24159 | void *argp2 = 0 ; | |
24160 | int res2 = 0 ; | |
24161 | PyObject * obj0 = 0 ; | |
24162 | PyObject * obj1 = 0 ; | |
24163 | char * kwnames[] = { | |
24164 | (char *) "dc",(char *) "brush", NULL | |
24165 | }; | |
24166 | ||
24167 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
24168 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24169 | if (!SWIG_IsOK(res1)) { | |
24170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24171 | } | |
24172 | if (!argp1) { | |
24173 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24174 | } | |
24175 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24176 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
24177 | if (!SWIG_IsOK(res2)) { | |
24178 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
24179 | } | |
24180 | if (!argp2) { | |
24181 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
24182 | } | |
24183 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
24184 | { | |
24185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24186 | result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2); | |
24187 | wxPyEndAllowThreads(__tstate); | |
24188 | if (PyErr_Occurred()) SWIG_fail; | |
24189 | } | |
24190 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 ); | |
24191 | return resultobj; | |
24192 | fail: | |
24193 | return NULL; | |
24194 | } | |
24195 | ||
24196 | ||
24197 | SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24198 | PyObject *resultobj = 0; | |
24199 | wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ; | |
24200 | void *argp1 = 0 ; | |
24201 | int res1 = 0 ; | |
24202 | PyObject *swig_obj[1] ; | |
24203 | ||
24204 | if (!args) SWIG_fail; | |
24205 | swig_obj[0] = args; | |
24206 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 ); | |
24207 | if (!SWIG_IsOK(res1)) { | |
24208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'"); | |
24209 | } | |
24210 | arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1); | |
24211 | { | |
24212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24213 | delete arg1; | |
24214 | ||
24215 | wxPyEndAllowThreads(__tstate); | |
24216 | if (PyErr_Occurred()) SWIG_fail; | |
24217 | } | |
24218 | resultobj = SWIG_Py_Void(); | |
24219 | return resultobj; | |
24220 | fail: | |
24221 | return NULL; | |
24222 | } | |
24223 | ||
24224 | ||
24225 | SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24226 | PyObject *obj; | |
24227 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24228 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj)); | |
24229 | return SWIG_Py_Void(); | |
24230 | } | |
24231 | ||
24232 | SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24233 | return SWIG_Python_InitShadowInstance(args); | |
24234 | } | |
24235 | ||
24236 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24237 | PyObject *resultobj = 0; | |
24238 | wxDC *arg1 = 0 ; | |
24239 | wxRegion *arg2 = 0 ; | |
24240 | wxDCClipper *result = 0 ; | |
24241 | void *argp1 = 0 ; | |
24242 | int res1 = 0 ; | |
24243 | void *argp2 = 0 ; | |
24244 | int res2 = 0 ; | |
24245 | ||
24246 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
24247 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24248 | if (!SWIG_IsOK(res1)) { | |
24249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24250 | } | |
24251 | if (!argp1) { | |
24252 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24253 | } | |
24254 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24255 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
24256 | if (!SWIG_IsOK(res2)) { | |
24257 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
24258 | } | |
24259 | if (!argp2) { | |
24260 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
24261 | } | |
24262 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
24263 | { | |
24264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24265 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2); | |
24266 | wxPyEndAllowThreads(__tstate); | |
24267 | if (PyErr_Occurred()) SWIG_fail; | |
24268 | } | |
24269 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
24270 | return resultobj; | |
24271 | fail: | |
24272 | return NULL; | |
24273 | } | |
24274 | ||
24275 | ||
24276 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24277 | PyObject *resultobj = 0; | |
24278 | wxDC *arg1 = 0 ; | |
24279 | wxRect *arg2 = 0 ; | |
24280 | wxDCClipper *result = 0 ; | |
24281 | void *argp1 = 0 ; | |
24282 | int res1 = 0 ; | |
24283 | wxRect temp2 ; | |
24284 | ||
24285 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
24286 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24287 | if (!SWIG_IsOK(res1)) { | |
24288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24289 | } | |
24290 | if (!argp1) { | |
24291 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24292 | } | |
24293 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24294 | { | |
24295 | arg2 = &temp2; | |
24296 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
24297 | } | |
24298 | { | |
24299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24300 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2); | |
24301 | wxPyEndAllowThreads(__tstate); | |
24302 | if (PyErr_Occurred()) SWIG_fail; | |
24303 | } | |
24304 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
24305 | return resultobj; | |
24306 | fail: | |
24307 | return NULL; | |
24308 | } | |
24309 | ||
24310 | ||
24311 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24312 | PyObject *resultobj = 0; | |
24313 | wxDC *arg1 = 0 ; | |
24314 | int arg2 ; | |
24315 | int arg3 ; | |
24316 | int arg4 ; | |
24317 | int arg5 ; | |
24318 | wxDCClipper *result = 0 ; | |
24319 | void *argp1 = 0 ; | |
24320 | int res1 = 0 ; | |
24321 | int val2 ; | |
24322 | int ecode2 = 0 ; | |
24323 | int val3 ; | |
24324 | int ecode3 = 0 ; | |
24325 | int val4 ; | |
24326 | int ecode4 = 0 ; | |
24327 | int val5 ; | |
24328 | int ecode5 = 0 ; | |
24329 | ||
24330 | if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; | |
24331 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24332 | if (!SWIG_IsOK(res1)) { | |
24333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24334 | } | |
24335 | if (!argp1) { | |
24336 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24337 | } | |
24338 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24339 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
24340 | if (!SWIG_IsOK(ecode2)) { | |
24341 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'"); | |
24342 | } | |
24343 | arg2 = static_cast< int >(val2); | |
24344 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24345 | if (!SWIG_IsOK(ecode3)) { | |
24346 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'"); | |
24347 | } | |
24348 | arg3 = static_cast< int >(val3); | |
24349 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
24350 | if (!SWIG_IsOK(ecode4)) { | |
24351 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'"); | |
24352 | } | |
24353 | arg4 = static_cast< int >(val4); | |
24354 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
24355 | if (!SWIG_IsOK(ecode5)) { | |
24356 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'"); | |
24357 | } | |
24358 | arg5 = static_cast< int >(val5); | |
24359 | { | |
24360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24361 | result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5); | |
24362 | wxPyEndAllowThreads(__tstate); | |
24363 | if (PyErr_Occurred()) SWIG_fail; | |
24364 | } | |
24365 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
24366 | return resultobj; | |
24367 | fail: | |
24368 | return NULL; | |
24369 | } | |
24370 | ||
24371 | ||
24372 | SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) { | |
24373 | int argc; | |
24374 | PyObject *argv[6]; | |
24375 | ||
24376 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail; | |
24377 | --argc; | |
24378 | if (argc == 2) { | |
24379 | int _v = 0; | |
24380 | { | |
24381 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0); | |
24382 | _v = SWIG_CheckState(res); | |
24383 | } | |
24384 | if (!_v) goto check_1; | |
24385 | return _wrap_new_DCClipper__SWIG_0(self, argc, argv); | |
24386 | } | |
24387 | check_1: | |
24388 | ||
24389 | if (argc == 2) { | |
24390 | return _wrap_new_DCClipper__SWIG_1(self, argc, argv); | |
24391 | } | |
24392 | if (argc == 5) { | |
24393 | return _wrap_new_DCClipper__SWIG_2(self, argc, argv); | |
24394 | } | |
24395 | ||
24396 | fail: | |
24397 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'"); | |
24398 | return NULL; | |
24399 | } | |
24400 | ||
24401 | ||
24402 | SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24403 | PyObject *resultobj = 0; | |
24404 | wxDCClipper *arg1 = (wxDCClipper *) 0 ; | |
24405 | void *argp1 = 0 ; | |
24406 | int res1 = 0 ; | |
24407 | PyObject *swig_obj[1] ; | |
24408 | ||
24409 | if (!args) SWIG_fail; | |
24410 | swig_obj[0] = args; | |
24411 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 ); | |
24412 | if (!SWIG_IsOK(res1)) { | |
24413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'"); | |
24414 | } | |
24415 | arg1 = reinterpret_cast< wxDCClipper * >(argp1); | |
24416 | { | |
24417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24418 | delete arg1; | |
24419 | ||
24420 | wxPyEndAllowThreads(__tstate); | |
24421 | if (PyErr_Occurred()) SWIG_fail; | |
24422 | } | |
24423 | resultobj = SWIG_Py_Void(); | |
24424 | return resultobj; | |
24425 | fail: | |
24426 | return NULL; | |
24427 | } | |
24428 | ||
24429 | ||
24430 | SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24431 | PyObject *obj; | |
24432 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24433 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj)); | |
24434 | return SWIG_Py_Void(); | |
24435 | } | |
24436 | ||
24437 | SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24438 | return SWIG_Python_InitShadowInstance(args); | |
24439 | } | |
24440 | ||
24f6c4e8 RD |
24441 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24442 | PyObject *resultobj = 0; | |
24443 | wxScreenDC *result = 0 ; | |
24444 | ||
24445 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
24446 | { | |
24447 | if (!wxPyCheckForApp()) SWIG_fail; | |
24448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24449 | result = (wxScreenDC *)new wxScreenDC(); | |
24450 | wxPyEndAllowThreads(__tstate); | |
24451 | if (PyErr_Occurred()) SWIG_fail; | |
24452 | } | |
24453 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
24454 | return resultobj; | |
24455 | fail: | |
24456 | return NULL; | |
24457 | } | |
24458 | ||
24459 | ||
24460 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24461 | PyObject *resultobj = 0; | |
24462 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24463 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24464 | bool result; | |
24465 | void *argp1 = 0 ; | |
24466 | int res1 = 0 ; | |
24467 | void *argp2 = 0 ; | |
24468 | int res2 = 0 ; | |
24469 | PyObject * obj0 = 0 ; | |
24470 | PyObject * obj1 = 0 ; | |
24471 | char * kwnames[] = { | |
24472 | (char *) "self",(char *) "window", NULL | |
24473 | }; | |
24474 | ||
24475 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
24476 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24477 | if (!SWIG_IsOK(res1)) { | |
24478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24479 | } | |
24480 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24481 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24482 | if (!SWIG_IsOK(res2)) { | |
24483 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24484 | } | |
24485 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24486 | { | |
24487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24488 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24489 | wxPyEndAllowThreads(__tstate); | |
24490 | if (PyErr_Occurred()) SWIG_fail; | |
24491 | } | |
24492 | { | |
24493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24494 | } | |
24495 | return resultobj; | |
24496 | fail: | |
24497 | return NULL; | |
24498 | } | |
24499 | ||
24500 | ||
24501 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24502 | PyObject *resultobj = 0; | |
24503 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24504 | wxRect *arg2 = (wxRect *) NULL ; | |
24505 | bool result; | |
24506 | void *argp1 = 0 ; | |
24507 | int res1 = 0 ; | |
24508 | void *argp2 = 0 ; | |
24509 | int res2 = 0 ; | |
24510 | PyObject * obj0 = 0 ; | |
24511 | PyObject * obj1 = 0 ; | |
24512 | char * kwnames[] = { | |
24513 | (char *) "self",(char *) "rect", NULL | |
24514 | }; | |
24515 | ||
24516 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
24517 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24518 | if (!SWIG_IsOK(res1)) { | |
24519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24520 | } | |
24521 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24522 | if (obj1) { | |
24523 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
24524 | if (!SWIG_IsOK(res2)) { | |
24525 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
24526 | } | |
24527 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
24528 | } | |
24529 | { | |
24530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24531 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24532 | wxPyEndAllowThreads(__tstate); | |
24533 | if (PyErr_Occurred()) SWIG_fail; | |
24534 | } | |
24535 | { | |
24536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24537 | } | |
24538 | return resultobj; | |
24539 | fail: | |
24540 | return NULL; | |
24541 | } | |
24542 | ||
24543 | ||
24544 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24545 | PyObject *resultobj = 0; | |
24546 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24547 | bool result; | |
24548 | void *argp1 = 0 ; | |
24549 | int res1 = 0 ; | |
24550 | PyObject *swig_obj[1] ; | |
24551 | ||
24552 | if (!args) SWIG_fail; | |
24553 | swig_obj[0] = args; | |
24554 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24555 | if (!SWIG_IsOK(res1)) { | |
24556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24557 | } | |
24558 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24559 | { | |
24560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24561 | result = (bool)(arg1)->EndDrawingOnTop(); | |
24562 | wxPyEndAllowThreads(__tstate); | |
24563 | if (PyErr_Occurred()) SWIG_fail; | |
24564 | } | |
24565 | { | |
24566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24567 | } | |
24568 | return resultobj; | |
24569 | fail: | |
24570 | return NULL; | |
24571 | } | |
24572 | ||
24573 | ||
24574 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24575 | PyObject *obj; | |
24576 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24577 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
24578 | return SWIG_Py_Void(); | |
24579 | } | |
24580 | ||
24581 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24582 | return SWIG_Python_InitShadowInstance(args); | |
24583 | } | |
24584 | ||
24585 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24586 | PyObject *resultobj = 0; | |
24587 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24588 | wxWindowDC *result = 0 ; | |
24589 | void *argp1 = 0 ; | |
24590 | int res1 = 0 ; | |
24591 | PyObject * obj0 = 0 ; | |
24592 | char * kwnames[] = { | |
24593 | (char *) "win", NULL | |
24594 | }; | |
24595 | ||
24596 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
24597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24598 | if (!SWIG_IsOK(res1)) { | |
24599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24600 | } | |
24601 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24602 | { | |
24603 | if (!wxPyCheckForApp()) SWIG_fail; | |
24604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24605 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
24606 | wxPyEndAllowThreads(__tstate); | |
24607 | if (PyErr_Occurred()) SWIG_fail; | |
24608 | } | |
24609 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
24610 | return resultobj; | |
24611 | fail: | |
24612 | return NULL; | |
24613 | } | |
24614 | ||
24615 | ||
24616 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24617 | PyObject *obj; | |
24618 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24619 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
24620 | return SWIG_Py_Void(); | |
24621 | } | |
24622 | ||
24623 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24624 | return SWIG_Python_InitShadowInstance(args); | |
24625 | } | |
24626 | ||
24627 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24628 | PyObject *resultobj = 0; | |
24629 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24630 | wxClientDC *result = 0 ; | |
24631 | void *argp1 = 0 ; | |
24632 | int res1 = 0 ; | |
24633 | PyObject * obj0 = 0 ; | |
24634 | char * kwnames[] = { | |
24635 | (char *) "win", NULL | |
24636 | }; | |
24637 | ||
24638 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
24639 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24640 | if (!SWIG_IsOK(res1)) { | |
24641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24642 | } | |
24643 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24644 | { | |
24645 | if (!wxPyCheckForApp()) SWIG_fail; | |
24646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24647 | result = (wxClientDC *)new wxClientDC(arg1); | |
24648 | wxPyEndAllowThreads(__tstate); | |
24649 | if (PyErr_Occurred()) SWIG_fail; | |
24650 | } | |
24651 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
24652 | return resultobj; | |
24653 | fail: | |
24654 | return NULL; | |
24655 | } | |
24656 | ||
24657 | ||
24658 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24659 | PyObject *obj; | |
24660 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24661 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
24662 | return SWIG_Py_Void(); | |
24663 | } | |
24664 | ||
24665 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24666 | return SWIG_Python_InitShadowInstance(args); | |
24667 | } | |
24668 | ||
24669 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24670 | PyObject *resultobj = 0; | |
24671 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24672 | wxPaintDC *result = 0 ; | |
24673 | void *argp1 = 0 ; | |
24674 | int res1 = 0 ; | |
24675 | PyObject * obj0 = 0 ; | |
24676 | char * kwnames[] = { | |
24677 | (char *) "win", NULL | |
24678 | }; | |
24679 | ||
24680 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
24681 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24682 | if (!SWIG_IsOK(res1)) { | |
24683 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24684 | } | |
24685 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24686 | { | |
24687 | if (!wxPyCheckForApp()) SWIG_fail; | |
24688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24689 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
24690 | wxPyEndAllowThreads(__tstate); | |
24691 | if (PyErr_Occurred()) SWIG_fail; | |
24692 | } | |
24693 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
24694 | return resultobj; | |
24695 | fail: | |
24696 | return NULL; | |
24697 | } | |
24698 | ||
24699 | ||
24700 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24701 | PyObject *obj; | |
24702 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24703 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
24704 | return SWIG_Py_Void(); | |
24705 | } | |
24706 | ||
24707 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24708 | return SWIG_Python_InitShadowInstance(args); | |
24709 | } | |
24710 | ||
26c4d26f RD |
24711 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24712 | PyObject *resultobj = 0; | |
24713 | wxBitmap &arg1_defvalue = wxNullBitmap ; | |
24714 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24715 | wxMemoryDC *result = 0 ; | |
24716 | void *argp1 = 0 ; | |
24717 | int res1 = 0 ; | |
24718 | PyObject * obj0 = 0 ; | |
24719 | char * kwnames[] = { | |
24720 | (char *) "bitmap", NULL | |
24721 | }; | |
24722 | ||
24723 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail; | |
24724 | if (obj0) { | |
24725 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
24726 | if (!SWIG_IsOK(res1)) { | |
24727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24728 | } | |
24729 | if (!argp1) { | |
24730 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24731 | } | |
24732 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
24733 | } | |
24734 | { | |
24735 | if (!wxPyCheckForApp()) SWIG_fail; | |
24736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24737 | result = (wxMemoryDC *)new wxMemoryDC(*arg1); | |
24738 | wxPyEndAllowThreads(__tstate); | |
24739 | if (PyErr_Occurred()) SWIG_fail; | |
24740 | } | |
24741 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
24742 | return resultobj; | |
24743 | fail: | |
24744 | return NULL; | |
24745 | } | |
24746 | ||
24747 | ||
24748 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24749 | PyObject *resultobj = 0; | |
24750 | wxDC *arg1 = (wxDC *) 0 ; | |
24751 | wxMemoryDC *result = 0 ; | |
24752 | void *argp1 = 0 ; | |
24753 | int res1 = 0 ; | |
24754 | PyObject * obj0 = 0 ; | |
24755 | char * kwnames[] = { | |
24756 | (char *) "oldDC", NULL | |
24757 | }; | |
24758 | ||
24759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
24760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24761 | if (!SWIG_IsOK(res1)) { | |
24762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24763 | } | |
24764 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24765 | { | |
24766 | if (!wxPyCheckForApp()) SWIG_fail; | |
24767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24768 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
24769 | wxPyEndAllowThreads(__tstate); | |
24770 | if (PyErr_Occurred()) SWIG_fail; | |
24771 | } | |
24772 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
24773 | return resultobj; | |
24774 | fail: | |
24775 | return NULL; | |
24776 | } | |
24777 | ||
24778 | ||
24779 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24780 | PyObject *resultobj = 0; | |
24781 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24782 | wxBitmap *arg2 = 0 ; | |
24783 | void *argp1 = 0 ; | |
24784 | int res1 = 0 ; | |
24785 | void *argp2 = 0 ; | |
24786 | int res2 = 0 ; | |
24787 | PyObject * obj0 = 0 ; | |
24788 | PyObject * obj1 = 0 ; | |
24789 | char * kwnames[] = { | |
24790 | (char *) "self",(char *) "bitmap", NULL | |
24791 | }; | |
24792 | ||
24793 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
24794 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
24795 | if (!SWIG_IsOK(res1)) { | |
24796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
24797 | } | |
24798 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
24799 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
24800 | if (!SWIG_IsOK(res2)) { | |
24801 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
24802 | } | |
24803 | if (!argp2) { | |
24804 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
24805 | } | |
24806 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24807 | { | |
24808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24809 | (arg1)->SelectObject(*arg2); | |
24810 | wxPyEndAllowThreads(__tstate); | |
24811 | if (PyErr_Occurred()) SWIG_fail; | |
24812 | } | |
24813 | resultobj = SWIG_Py_Void(); | |
24814 | return resultobj; | |
24815 | fail: | |
24816 | return NULL; | |
24817 | } | |
24818 | ||
24819 | ||
24820 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24821 | PyObject *resultobj = 0; | |
24822 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24823 | wxBitmap *arg2 = 0 ; | |
24824 | void *argp1 = 0 ; | |
24825 | int res1 = 0 ; | |
24826 | void *argp2 = 0 ; | |
24827 | int res2 = 0 ; | |
24828 | PyObject * obj0 = 0 ; | |
24829 | PyObject * obj1 = 0 ; | |
24830 | char * kwnames[] = { | |
24831 | (char *) "self",(char *) "bmp", NULL | |
24832 | }; | |
24833 | ||
24834 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail; | |
24835 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
24836 | if (!SWIG_IsOK(res1)) { | |
24837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
24838 | } | |
24839 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
24840 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24841 | if (!SWIG_IsOK(res2)) { | |
24842 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
24843 | } | |
24844 | if (!argp2) { | |
24845 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
24846 | } | |
24847 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24848 | { | |
24849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24850 | (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2); | |
24851 | wxPyEndAllowThreads(__tstate); | |
24852 | if (PyErr_Occurred()) SWIG_fail; | |
24853 | } | |
24854 | resultobj = SWIG_Py_Void(); | |
24855 | return resultobj; | |
24856 | fail: | |
24857 | return NULL; | |
24858 | } | |
24859 | ||
24860 | ||
24861 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24862 | PyObject *obj; | |
24863 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24864 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
24865 | return SWIG_Py_Void(); | |
24866 | } | |
24867 | ||
24868 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24869 | return SWIG_Python_InitShadowInstance(args); | |
24870 | } | |
24871 | ||
0085ce49 RD |
24872 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24873 | PyObject *resultobj = 0; | |
24874 | wxDC *arg1 = (wxDC *) 0 ; | |
b6df5cf9 | 24875 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
0085ce49 RD |
24876 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
24877 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24878 | wxBufferedDC *result = 0 ; | |
24879 | void *argp1 = 0 ; | |
24880 | int res1 = 0 ; | |
24881 | void *argp2 = 0 ; | |
24882 | int res2 = 0 ; | |
24883 | int val3 ; | |
24884 | int ecode3 = 0 ; | |
24885 | ||
24886 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
24887 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24888 | if (!SWIG_IsOK(res1)) { | |
24889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24890 | } | |
24891 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24892 | if (swig_obj[1]) { | |
b6df5cf9 | 24893 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
0085ce49 | 24894 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 24895 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24896 | } |
0085ce49 | 24897 | if (!argp2) { |
b6df5cf9 | 24898 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 24899 | } |
0085ce49 RD |
24900 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24901 | } | |
24902 | if (swig_obj[2]) { | |
24903 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24904 | if (!SWIG_IsOK(ecode3)) { | |
24905 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24906 | } | |
24907 | arg3 = static_cast< int >(val3); | |
24908 | } | |
24909 | { | |
24910 | if (!wxPyCheckForApp()) SWIG_fail; | |
24911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 24912 | result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3); |
0085ce49 RD |
24913 | wxPyEndAllowThreads(__tstate); |
24914 | if (PyErr_Occurred()) SWIG_fail; | |
24915 | } | |
24916 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24917 | return resultobj; | |
24918 | fail: | |
24919 | return NULL; | |
24920 | } | |
24921 | ||
24922 | ||
24923 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24924 | PyObject *resultobj = 0; | |
24925 | wxDC *arg1 = (wxDC *) 0 ; | |
24926 | wxSize *arg2 = 0 ; | |
24927 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24928 | wxBufferedDC *result = 0 ; | |
24929 | void *argp1 = 0 ; | |
24930 | int res1 = 0 ; | |
24931 | wxSize temp2 ; | |
24932 | int val3 ; | |
24933 | int ecode3 = 0 ; | |
24934 | ||
24935 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
24936 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24937 | if (!SWIG_IsOK(res1)) { | |
24938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24939 | } | |
24940 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24941 | { | |
24942 | arg2 = &temp2; | |
24943 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
24944 | } | |
24945 | if (swig_obj[2]) { | |
24946 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24947 | if (!SWIG_IsOK(ecode3)) { | |
24948 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24949 | } | |
24950 | arg3 = static_cast< int >(val3); | |
24951 | } | |
24952 | { | |
24953 | if (!wxPyCheckForApp()) SWIG_fail; | |
24954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24955 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
24956 | wxPyEndAllowThreads(__tstate); | |
24957 | if (PyErr_Occurred()) SWIG_fail; | |
24958 | } | |
24959 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24960 | return resultobj; | |
24961 | fail: | |
24962 | return NULL; | |
24963 | } | |
24964 | ||
24965 | ||
24966 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
24967 | int argc; | |
8e99bda9 | 24968 | PyObject *argv[4]; |
0085ce49 | 24969 | |
8e99bda9 | 24970 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; |
0085ce49 RD |
24971 | --argc; |
24972 | if ((argc >= 1) && (argc <= 3)) { | |
24973 | int _v = 0; | |
24974 | if (argc > 1) { | |
24975 | { | |
b6df5cf9 RD |
24976 | void *vptr = 0; |
24977 | int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0); | |
0085ce49 RD |
24978 | _v = SWIG_CheckState(res); |
24979 | } | |
24980 | if (!_v) goto check_1; | |
093d3ff1 | 24981 | } |
0085ce49 RD |
24982 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
24983 | } | |
24984 | check_1: | |
24985 | ||
24986 | if ((argc >= 2) && (argc <= 3)) { | |
24987 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
24988 | } | |
24989 | ||
24990 | fail: | |
24991 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
24992 | return NULL; | |
24993 | } | |
24994 | ||
24995 | ||
24996 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24997 | PyObject *resultobj = 0; | |
24998 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24999 | void *argp1 = 0 ; | |
25000 | int res1 = 0 ; | |
25001 | PyObject *swig_obj[1] ; | |
25002 | ||
25003 | if (!args) SWIG_fail; | |
25004 | swig_obj[0] = args; | |
25005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
25006 | if (!SWIG_IsOK(res1)) { | |
25007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
25008 | } | |
25009 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25010 | { | |
25011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25012 | delete arg1; | |
25013 | ||
25014 | wxPyEndAllowThreads(__tstate); | |
25015 | if (PyErr_Occurred()) SWIG_fail; | |
25016 | } | |
25017 | resultobj = SWIG_Py_Void(); | |
25018 | return resultobj; | |
25019 | fail: | |
25020 | return NULL; | |
25021 | } | |
25022 | ||
25023 | ||
25024 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25025 | PyObject *resultobj = 0; | |
25026 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25027 | void *argp1 = 0 ; | |
25028 | int res1 = 0 ; | |
25029 | PyObject *swig_obj[1] ; | |
25030 | ||
25031 | if (!args) SWIG_fail; | |
25032 | swig_obj[0] = args; | |
25033 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
25034 | if (!SWIG_IsOK(res1)) { | |
25035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
25036 | } | |
25037 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25038 | { | |
25039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25040 | (arg1)->UnMask(); | |
25041 | wxPyEndAllowThreads(__tstate); | |
25042 | if (PyErr_Occurred()) SWIG_fail; | |
25043 | } | |
25044 | resultobj = SWIG_Py_Void(); | |
25045 | return resultobj; | |
25046 | fail: | |
25047 | return NULL; | |
25048 | } | |
25049 | ||
25050 | ||
b6df5cf9 RD |
25051 | SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25052 | PyObject *resultobj = 0; | |
25053 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25054 | int arg2 ; | |
25055 | void *argp1 = 0 ; | |
25056 | int res1 = 0 ; | |
25057 | int val2 ; | |
25058 | int ecode2 = 0 ; | |
25059 | PyObject * obj0 = 0 ; | |
25060 | PyObject * obj1 = 0 ; | |
25061 | char * kwnames[] = { | |
25062 | (char *) "self",(char *) "style", NULL | |
25063 | }; | |
25064 | ||
25065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
25066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
25067 | if (!SWIG_IsOK(res1)) { | |
25068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
25069 | } | |
25070 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25071 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25072 | if (!SWIG_IsOK(ecode2)) { | |
25073 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
25074 | } | |
25075 | arg2 = static_cast< int >(val2); | |
25076 | { | |
25077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25078 | (arg1)->SetStyle(arg2); | |
25079 | wxPyEndAllowThreads(__tstate); | |
25080 | if (PyErr_Occurred()) SWIG_fail; | |
25081 | } | |
25082 | resultobj = SWIG_Py_Void(); | |
25083 | return resultobj; | |
25084 | fail: | |
25085 | return NULL; | |
25086 | } | |
25087 | ||
25088 | ||
25089 | SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25090 | PyObject *resultobj = 0; | |
25091 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25092 | int result; | |
25093 | void *argp1 = 0 ; | |
25094 | int res1 = 0 ; | |
25095 | PyObject *swig_obj[1] ; | |
25096 | ||
25097 | if (!args) SWIG_fail; | |
25098 | swig_obj[0] = args; | |
25099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
25100 | if (!SWIG_IsOK(res1)) { | |
25101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'"); | |
25102 | } | |
25103 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25104 | { | |
25105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25106 | result = (int)((wxBufferedDC const *)arg1)->GetStyle(); | |
25107 | wxPyEndAllowThreads(__tstate); | |
25108 | if (PyErr_Occurred()) SWIG_fail; | |
25109 | } | |
25110 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25111 | return resultobj; | |
25112 | fail: | |
25113 | return NULL; | |
25114 | } | |
25115 | ||
25116 | ||
0085ce49 RD |
25117 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25118 | PyObject *obj; | |
25119 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25120 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
25121 | return SWIG_Py_Void(); | |
25122 | } | |
25123 | ||
25124 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25125 | return SWIG_Python_InitShadowInstance(args); | |
25126 | } | |
25127 | ||
25128 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25129 | PyObject *resultobj = 0; | |
25130 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b6df5cf9 | 25131 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
0085ce49 RD |
25132 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
25133 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
25134 | wxBufferedPaintDC *result = 0 ; | |
25135 | void *argp1 = 0 ; | |
25136 | int res1 = 0 ; | |
25137 | void *argp2 = 0 ; | |
25138 | int res2 = 0 ; | |
25139 | int val3 ; | |
25140 | int ecode3 = 0 ; | |
25141 | PyObject * obj0 = 0 ; | |
25142 | PyObject * obj1 = 0 ; | |
25143 | PyObject * obj2 = 0 ; | |
25144 | char * kwnames[] = { | |
25145 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
25146 | }; | |
25147 | ||
25148 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25149 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25150 | if (!SWIG_IsOK(res1)) { | |
25151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25152 | } | |
25153 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25154 | if (obj1) { | |
b6df5cf9 | 25155 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
0085ce49 | 25156 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 25157 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25158 | } |
0085ce49 | 25159 | if (!argp2) { |
b6df5cf9 | 25160 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25161 | } |
0085ce49 RD |
25162 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
25163 | } | |
25164 | if (obj2) { | |
25165 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25166 | if (!SWIG_IsOK(ecode3)) { | |
25167 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
25168 | } | |
25169 | arg3 = static_cast< int >(val3); | |
25170 | } | |
25171 | { | |
25172 | if (!wxPyCheckForApp()) SWIG_fail; | |
25173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 25174 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3); |
0085ce49 RD |
25175 | wxPyEndAllowThreads(__tstate); |
25176 | if (PyErr_Occurred()) SWIG_fail; | |
25177 | } | |
25178 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
25179 | return resultobj; | |
25180 | fail: | |
25181 | return NULL; | |
25182 | } | |
25183 | ||
25184 | ||
25185 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25186 | PyObject *obj; | |
25187 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25188 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
25189 | return SWIG_Py_Void(); | |
25190 | } | |
25191 | ||
25192 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25193 | return SWIG_Python_InitShadowInstance(args); | |
25194 | } | |
25195 | ||
24f6c4e8 | 25196 | SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
25197 | PyObject *resultobj = 0; |
25198 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24f6c4e8 | 25199 | wxAutoBufferedPaintDC *result = 0 ; |
0085ce49 RD |
25200 | void *argp1 = 0 ; |
25201 | int res1 = 0 ; | |
25202 | PyObject * obj0 = 0 ; | |
25203 | char * kwnames[] = { | |
25204 | (char *) "win", NULL | |
25205 | }; | |
25206 | ||
24f6c4e8 | 25207 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail; |
0085ce49 RD |
25208 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); |
25209 | if (!SWIG_IsOK(res1)) { | |
24f6c4e8 | 25210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); |
0085ce49 RD |
25211 | } |
25212 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25213 | { | |
0085ce49 | 25214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24f6c4e8 | 25215 | result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1); |
0085ce49 RD |
25216 | wxPyEndAllowThreads(__tstate); |
25217 | if (PyErr_Occurred()) SWIG_fail; | |
25218 | } | |
24f6c4e8 | 25219 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 ); |
0085ce49 RD |
25220 | return resultobj; |
25221 | fail: | |
25222 | return NULL; | |
25223 | } | |
25224 | ||
25225 | ||
24f6c4e8 | 25226 | SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
25227 | PyObject *obj; |
25228 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24f6c4e8 | 25229 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj)); |
0085ce49 RD |
25230 | return SWIG_Py_Void(); |
25231 | } | |
25232 | ||
24f6c4e8 | 25233 | SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
25234 | return SWIG_Python_InitShadowInstance(args); |
25235 | } | |
25236 | ||
8e99bda9 RD |
25237 | SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25238 | PyObject *resultobj = 0; | |
25239 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25240 | wxDC *result = 0 ; | |
25241 | void *argp1 = 0 ; | |
25242 | int res1 = 0 ; | |
25243 | PyObject * obj0 = 0 ; | |
25244 | char * kwnames[] = { | |
25245 | (char *) "window", NULL | |
25246 | }; | |
25247 | ||
25248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail; | |
25249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25250 | if (!SWIG_IsOK(res1)) { | |
25251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25252 | } | |
25253 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25254 | { | |
25255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25256 | result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1); | |
25257 | wxPyEndAllowThreads(__tstate); | |
25258 | if (PyErr_Occurred()) SWIG_fail; | |
25259 | } | |
25260 | { | |
25261 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
25262 | } | |
25263 | return resultobj; | |
25264 | fail: | |
25265 | return NULL; | |
25266 | } | |
25267 | ||
25268 | ||
0085ce49 RD |
25269 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25270 | PyObject *resultobj = 0; | |
25271 | wxDC *arg1 = 0 ; | |
25272 | bool arg2 ; | |
25273 | wxMirrorDC *result = 0 ; | |
25274 | void *argp1 = 0 ; | |
25275 | int res1 = 0 ; | |
25276 | bool val2 ; | |
25277 | int ecode2 = 0 ; | |
25278 | PyObject * obj0 = 0 ; | |
25279 | PyObject * obj1 = 0 ; | |
25280 | char * kwnames[] = { | |
25281 | (char *) "dc",(char *) "mirror", NULL | |
25282 | }; | |
25283 | ||
25284 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
25285 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
25286 | if (!SWIG_IsOK(res1)) { | |
25287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
25288 | } | |
25289 | if (!argp1) { | |
25290 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
25291 | } | |
25292 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
25293 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25294 | if (!SWIG_IsOK(ecode2)) { | |
25295 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
25296 | } | |
25297 | arg2 = static_cast< bool >(val2); | |
25298 | { | |
25299 | if (!wxPyCheckForApp()) SWIG_fail; | |
25300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25301 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
25302 | wxPyEndAllowThreads(__tstate); | |
25303 | if (PyErr_Occurred()) SWIG_fail; | |
25304 | } | |
25305 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
25306 | return resultobj; | |
25307 | fail: | |
25308 | return NULL; | |
25309 | } | |
25310 | ||
25311 | ||
25312 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25313 | PyObject *obj; | |
25314 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25315 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
25316 | return SWIG_Py_Void(); | |
25317 | } | |
25318 | ||
25319 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25320 | return SWIG_Python_InitShadowInstance(args); | |
25321 | } | |
25322 | ||
25323 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25324 | PyObject *resultobj = 0; | |
25325 | wxPrintData *arg1 = 0 ; | |
25326 | wxPostScriptDC *result = 0 ; | |
25327 | void *argp1 = 0 ; | |
25328 | int res1 = 0 ; | |
25329 | PyObject * obj0 = 0 ; | |
25330 | char * kwnames[] = { | |
25331 | (char *) "printData", NULL | |
25332 | }; | |
25333 | ||
25334 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
25335 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25336 | if (!SWIG_IsOK(res1)) { | |
25337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25338 | } | |
25339 | if (!argp1) { | |
25340 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25341 | } | |
25342 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25343 | { | |
25344 | if (!wxPyCheckForApp()) SWIG_fail; | |
25345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25346 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
25347 | wxPyEndAllowThreads(__tstate); | |
25348 | if (PyErr_Occurred()) SWIG_fail; | |
25349 | } | |
25350 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
25351 | return resultobj; | |
25352 | fail: | |
25353 | return NULL; | |
25354 | } | |
25355 | ||
25356 | ||
25357 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25358 | PyObject *resultobj = 0; | |
25359 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
25360 | wxPrintData *result = 0 ; | |
25361 | void *argp1 = 0 ; | |
25362 | int res1 = 0 ; | |
25363 | PyObject *swig_obj[1] ; | |
25364 | ||
25365 | if (!args) SWIG_fail; | |
25366 | swig_obj[0] = args; | |
25367 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
25368 | if (!SWIG_IsOK(res1)) { | |
25369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
25370 | } | |
25371 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
25372 | { | |
25373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 25374 | { |
0085ce49 RD |
25375 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
25376 | result = (wxPrintData *) &_result_ref; | |
e2950dbb | 25377 | } |
0085ce49 RD |
25378 | wxPyEndAllowThreads(__tstate); |
25379 | if (PyErr_Occurred()) SWIG_fail; | |
25380 | } | |
25381 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
25382 | return resultobj; | |
25383 | fail: | |
25384 | return NULL; | |
25385 | } | |
25386 | ||
25387 | ||
25388 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25389 | PyObject *resultobj = 0; | |
25390 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
25391 | wxPrintData *arg2 = 0 ; | |
25392 | void *argp1 = 0 ; | |
25393 | int res1 = 0 ; | |
25394 | void *argp2 = 0 ; | |
25395 | int res2 = 0 ; | |
25396 | PyObject * obj0 = 0 ; | |
25397 | PyObject * obj1 = 0 ; | |
25398 | char * kwnames[] = { | |
25399 | (char *) "self",(char *) "data", NULL | |
25400 | }; | |
25401 | ||
25402 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
25403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
25404 | if (!SWIG_IsOK(res1)) { | |
25405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
25406 | } | |
25407 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
25408 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25409 | if (!SWIG_IsOK(res2)) { | |
25410 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25411 | } | |
25412 | if (!argp2) { | |
25413 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25414 | } | |
25415 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
25416 | { | |
25417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25418 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
25419 | wxPyEndAllowThreads(__tstate); | |
25420 | if (PyErr_Occurred()) SWIG_fail; | |
25421 | } | |
25422 | resultobj = SWIG_Py_Void(); | |
25423 | return resultobj; | |
25424 | fail: | |
25425 | return NULL; | |
25426 | } | |
25427 | ||
25428 | ||
25429 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25430 | PyObject *resultobj = 0; | |
25431 | int arg1 ; | |
25432 | int val1 ; | |
25433 | int ecode1 = 0 ; | |
25434 | PyObject * obj0 = 0 ; | |
25435 | char * kwnames[] = { | |
25436 | (char *) "ppi", NULL | |
25437 | }; | |
25438 | ||
25439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
25440 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
25441 | if (!SWIG_IsOK(ecode1)) { | |
25442 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
25443 | } | |
25444 | arg1 = static_cast< int >(val1); | |
25445 | { | |
25446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25447 | wxPostScriptDC::SetResolution(arg1); | |
25448 | wxPyEndAllowThreads(__tstate); | |
25449 | if (PyErr_Occurred()) SWIG_fail; | |
25450 | } | |
25451 | resultobj = SWIG_Py_Void(); | |
25452 | return resultobj; | |
25453 | fail: | |
25454 | return NULL; | |
25455 | } | |
25456 | ||
25457 | ||
25458 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25459 | PyObject *resultobj = 0; | |
25460 | int result; | |
25461 | ||
25462 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
25463 | { | |
25464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25465 | result = (int)wxPostScriptDC::GetResolution(); | |
25466 | wxPyEndAllowThreads(__tstate); | |
25467 | if (PyErr_Occurred()) SWIG_fail; | |
25468 | } | |
25469 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25470 | return resultobj; | |
25471 | fail: | |
25472 | return NULL; | |
25473 | } | |
25474 | ||
25475 | ||
25476 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25477 | PyObject *obj; | |
25478 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25479 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
25480 | return SWIG_Py_Void(); | |
25481 | } | |
25482 | ||
25483 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25484 | return SWIG_Python_InitShadowInstance(args); | |
25485 | } | |
25486 | ||
25487 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25488 | PyObject *resultobj = 0; | |
25489 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25490 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25491 | wxMetaFile *result = 0 ; | |
25492 | bool temp1 = false ; | |
25493 | PyObject * obj0 = 0 ; | |
25494 | char * kwnames[] = { | |
25495 | (char *) "filename", NULL | |
25496 | }; | |
25497 | ||
25498 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
25499 | if (obj0) { | |
093d3ff1 | 25500 | { |
0085ce49 RD |
25501 | arg1 = wxString_in_helper(obj0); |
25502 | if (arg1 == NULL) SWIG_fail; | |
25503 | temp1 = true; | |
093d3ff1 | 25504 | } |
0085ce49 RD |
25505 | } |
25506 | { | |
25507 | if (!wxPyCheckForApp()) SWIG_fail; | |
25508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25509 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
25510 | wxPyEndAllowThreads(__tstate); | |
25511 | if (PyErr_Occurred()) SWIG_fail; | |
25512 | } | |
25513 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
25514 | { | |
25515 | if (temp1) | |
25516 | delete arg1; | |
25517 | } | |
25518 | return resultobj; | |
25519 | fail: | |
25520 | { | |
25521 | if (temp1) | |
25522 | delete arg1; | |
25523 | } | |
25524 | return NULL; | |
25525 | } | |
25526 | ||
25527 | ||
25528 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25529 | PyObject *obj; | |
25530 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25531 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
25532 | return SWIG_Py_Void(); | |
25533 | } | |
25534 | ||
25535 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25536 | return SWIG_Python_InitShadowInstance(args); | |
25537 | } | |
25538 | ||
25539 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25540 | PyObject *resultobj = 0; | |
25541 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25542 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25543 | int arg2 = (int) 0 ; | |
25544 | int arg3 = (int) 0 ; | |
25545 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25546 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25547 | wxMetaFileDC *result = 0 ; | |
25548 | bool temp1 = false ; | |
25549 | int val2 ; | |
25550 | int ecode2 = 0 ; | |
25551 | int val3 ; | |
25552 | int ecode3 = 0 ; | |
25553 | bool temp4 = false ; | |
25554 | PyObject * obj0 = 0 ; | |
25555 | PyObject * obj1 = 0 ; | |
25556 | PyObject * obj2 = 0 ; | |
25557 | PyObject * obj3 = 0 ; | |
25558 | char * kwnames[] = { | |
25559 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
25560 | }; | |
25561 | ||
25562 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
25563 | if (obj0) { | |
093d3ff1 | 25564 | { |
0085ce49 RD |
25565 | arg1 = wxString_in_helper(obj0); |
25566 | if (arg1 == NULL) SWIG_fail; | |
25567 | temp1 = true; | |
093d3ff1 | 25568 | } |
0085ce49 RD |
25569 | } |
25570 | if (obj1) { | |
25571 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25572 | if (!SWIG_IsOK(ecode2)) { | |
25573 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
25574 | } | |
25575 | arg2 = static_cast< int >(val2); | |
25576 | } | |
25577 | if (obj2) { | |
25578 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25579 | if (!SWIG_IsOK(ecode3)) { | |
25580 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
25581 | } | |
25582 | arg3 = static_cast< int >(val3); | |
25583 | } | |
25584 | if (obj3) { | |
093d3ff1 | 25585 | { |
0085ce49 RD |
25586 | arg4 = wxString_in_helper(obj3); |
25587 | if (arg4 == NULL) SWIG_fail; | |
25588 | temp4 = true; | |
093d3ff1 | 25589 | } |
0085ce49 RD |
25590 | } |
25591 | { | |
25592 | if (!wxPyCheckForApp()) SWIG_fail; | |
25593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25594 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
25595 | wxPyEndAllowThreads(__tstate); | |
25596 | if (PyErr_Occurred()) SWIG_fail; | |
25597 | } | |
25598 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
25599 | { | |
25600 | if (temp1) | |
25601 | delete arg1; | |
25602 | } | |
25603 | { | |
25604 | if (temp4) | |
25605 | delete arg4; | |
25606 | } | |
25607 | return resultobj; | |
25608 | fail: | |
25609 | { | |
25610 | if (temp1) | |
25611 | delete arg1; | |
25612 | } | |
25613 | { | |
25614 | if (temp4) | |
25615 | delete arg4; | |
25616 | } | |
25617 | return NULL; | |
25618 | } | |
25619 | ||
25620 | ||
25621 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25622 | PyObject *obj; | |
25623 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25624 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
25625 | return SWIG_Py_Void(); | |
25626 | } | |
25627 | ||
25628 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25629 | return SWIG_Python_InitShadowInstance(args); | |
25630 | } | |
25631 | ||
25632 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25633 | PyObject *resultobj = 0; | |
25634 | wxPrintData *arg1 = 0 ; | |
25635 | wxPrinterDC *result = 0 ; | |
25636 | void *argp1 = 0 ; | |
25637 | int res1 = 0 ; | |
25638 | PyObject * obj0 = 0 ; | |
25639 | char * kwnames[] = { | |
25640 | (char *) "printData", NULL | |
25641 | }; | |
25642 | ||
25643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
25644 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25645 | if (!SWIG_IsOK(res1)) { | |
25646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25647 | } | |
25648 | if (!argp1) { | |
25649 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25650 | } | |
25651 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25652 | { | |
25653 | if (!wxPyCheckForApp()) SWIG_fail; | |
25654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25655 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
25656 | wxPyEndAllowThreads(__tstate); | |
25657 | if (PyErr_Occurred()) SWIG_fail; | |
25658 | } | |
25659 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
25660 | return resultobj; | |
25661 | fail: | |
25662 | return NULL; | |
25663 | } | |
25664 | ||
25665 | ||
25666 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25667 | PyObject *obj; | |
25668 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25669 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
25670 | return SWIG_Py_Void(); | |
25671 | } | |
25672 | ||
25673 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25674 | return SWIG_Python_InitShadowInstance(args); | |
25675 | } | |
25676 | ||
a7830320 RD |
25677 | SWIGINTERN PyObject *SVGFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25678 | PyObject *obj; | |
25679 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25680 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSVGFileDC, SWIG_NewClientData(obj)); | |
25681 | return SWIG_Py_Void(); | |
25682 | } | |
25683 | ||
70d7cb34 RD |
25684 | SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25685 | PyObject *resultobj = 0; | |
25686 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ; | |
25687 | wxGraphicsObject *result = 0 ; | |
25688 | void *argp1 = 0 ; | |
25689 | int res1 = 0 ; | |
25690 | PyObject * obj0 = 0 ; | |
25691 | char * kwnames[] = { | |
25692 | (char *) "renderer", NULL | |
25693 | }; | |
25694 | ||
25695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail; | |
25696 | if (obj0) { | |
25697 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
25698 | if (!SWIG_IsOK(res1)) { | |
25699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
25700 | } | |
25701 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
25702 | } | |
25703 | { | |
25704 | result = (wxGraphicsObject *)new wxGraphicsObject(arg1); | |
25705 | if (PyErr_Occurred()) SWIG_fail; | |
25706 | } | |
25707 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 ); | |
25708 | return resultobj; | |
25709 | fail: | |
25710 | return NULL; | |
25711 | } | |
25712 | ||
25713 | ||
25714 | SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25715 | PyObject *resultobj = 0; | |
25716 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25717 | void *argp1 = 0 ; | |
25718 | int res1 = 0 ; | |
25719 | PyObject *swig_obj[1] ; | |
25720 | ||
25721 | if (!args) SWIG_fail; | |
25722 | swig_obj[0] = args; | |
25723 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 ); | |
25724 | if (!SWIG_IsOK(res1)) { | |
25725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'"); | |
25726 | } | |
25727 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25728 | { | |
25729 | delete arg1; | |
25730 | ||
25731 | if (PyErr_Occurred()) SWIG_fail; | |
25732 | } | |
25733 | resultobj = SWIG_Py_Void(); | |
25734 | return resultobj; | |
25735 | fail: | |
25736 | return NULL; | |
25737 | } | |
25738 | ||
25739 | ||
25740 | SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25741 | PyObject *resultobj = 0; | |
25742 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25743 | bool result; | |
25744 | void *argp1 = 0 ; | |
25745 | int res1 = 0 ; | |
25746 | PyObject *swig_obj[1] ; | |
25747 | ||
25748 | if (!args) SWIG_fail; | |
25749 | swig_obj[0] = args; | |
25750 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
25751 | if (!SWIG_IsOK(res1)) { | |
25752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
25753 | } | |
25754 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25755 | { | |
25756 | result = (bool)((wxGraphicsObject const *)arg1)->IsNull(); | |
25757 | if (PyErr_Occurred()) SWIG_fail; | |
25758 | } | |
25759 | { | |
25760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25761 | } | |
25762 | return resultobj; | |
25763 | fail: | |
25764 | return NULL; | |
25765 | } | |
25766 | ||
25767 | ||
25768 | SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25769 | PyObject *resultobj = 0; | |
25770 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
25771 | wxGraphicsRenderer *result = 0 ; | |
25772 | void *argp1 = 0 ; | |
25773 | int res1 = 0 ; | |
25774 | PyObject *swig_obj[1] ; | |
25775 | ||
25776 | if (!args) SWIG_fail; | |
25777 | swig_obj[0] = args; | |
25778 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
25779 | if (!SWIG_IsOK(res1)) { | |
25780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
25781 | } | |
25782 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
25783 | { | |
25784 | result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer(); | |
25785 | if (PyErr_Occurred()) SWIG_fail; | |
25786 | } | |
25787 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
25788 | return resultobj; | |
25789 | fail: | |
25790 | return NULL; | |
25791 | } | |
25792 | ||
25793 | ||
25794 | SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25795 | PyObject *obj; | |
25796 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25797 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj)); | |
25798 | return SWIG_Py_Void(); | |
25799 | } | |
25800 | ||
25801 | SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25802 | return SWIG_Python_InitShadowInstance(args); | |
25803 | } | |
25804 | ||
25805 | SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25806 | PyObject *resultobj = 0; | |
25807 | wxGraphicsPen *result = 0 ; | |
25808 | ||
25809 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail; | |
25810 | { | |
25811 | result = (wxGraphicsPen *)new wxGraphicsPen(); | |
25812 | if (PyErr_Occurred()) SWIG_fail; | |
25813 | } | |
25814 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 ); | |
25815 | return resultobj; | |
25816 | fail: | |
25817 | return NULL; | |
25818 | } | |
25819 | ||
25820 | ||
25821 | SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25822 | PyObject *resultobj = 0; | |
25823 | wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ; | |
25824 | void *argp1 = 0 ; | |
25825 | int res1 = 0 ; | |
25826 | PyObject *swig_obj[1] ; | |
25827 | ||
25828 | if (!args) SWIG_fail; | |
25829 | swig_obj[0] = args; | |
25830 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 ); | |
25831 | if (!SWIG_IsOK(res1)) { | |
25832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'"); | |
25833 | } | |
25834 | arg1 = reinterpret_cast< wxGraphicsPen * >(argp1); | |
25835 | { | |
25836 | delete arg1; | |
25837 | ||
25838 | if (PyErr_Occurred()) SWIG_fail; | |
25839 | } | |
25840 | resultobj = SWIG_Py_Void(); | |
25841 | return resultobj; | |
25842 | fail: | |
25843 | return NULL; | |
25844 | } | |
25845 | ||
25846 | ||
25847 | SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25848 | PyObject *obj; | |
25849 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25850 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj)); | |
25851 | return SWIG_Py_Void(); | |
25852 | } | |
25853 | ||
25854 | SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25855 | return SWIG_Python_InitShadowInstance(args); | |
25856 | } | |
25857 | ||
25858 | SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25859 | PyObject *resultobj = 0; | |
25860 | wxGraphicsBrush *result = 0 ; | |
25861 | ||
25862 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail; | |
25863 | { | |
25864 | result = (wxGraphicsBrush *)new wxGraphicsBrush(); | |
25865 | if (PyErr_Occurred()) SWIG_fail; | |
25866 | } | |
25867 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 ); | |
25868 | return resultobj; | |
25869 | fail: | |
25870 | return NULL; | |
25871 | } | |
25872 | ||
25873 | ||
25874 | SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25875 | PyObject *resultobj = 0; | |
25876 | wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ; | |
25877 | void *argp1 = 0 ; | |
25878 | int res1 = 0 ; | |
25879 | PyObject *swig_obj[1] ; | |
25880 | ||
25881 | if (!args) SWIG_fail; | |
25882 | swig_obj[0] = args; | |
25883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 ); | |
25884 | if (!SWIG_IsOK(res1)) { | |
25885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'"); | |
25886 | } | |
25887 | arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1); | |
25888 | { | |
25889 | delete arg1; | |
25890 | ||
25891 | if (PyErr_Occurred()) SWIG_fail; | |
25892 | } | |
25893 | resultobj = SWIG_Py_Void(); | |
25894 | return resultobj; | |
25895 | fail: | |
25896 | return NULL; | |
25897 | } | |
25898 | ||
25899 | ||
25900 | SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25901 | PyObject *obj; | |
25902 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25903 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj)); | |
25904 | return SWIG_Py_Void(); | |
25905 | } | |
25906 | ||
25907 | SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25908 | return SWIG_Python_InitShadowInstance(args); | |
25909 | } | |
25910 | ||
25911 | SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25912 | PyObject *resultobj = 0; | |
25913 | wxGraphicsFont *result = 0 ; | |
25914 | ||
25915 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail; | |
25916 | { | |
25917 | result = (wxGraphicsFont *)new wxGraphicsFont(); | |
25918 | if (PyErr_Occurred()) SWIG_fail; | |
25919 | } | |
25920 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 ); | |
25921 | return resultobj; | |
25922 | fail: | |
25923 | return NULL; | |
25924 | } | |
25925 | ||
25926 | ||
25927 | SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25928 | PyObject *resultobj = 0; | |
25929 | wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ; | |
25930 | void *argp1 = 0 ; | |
25931 | int res1 = 0 ; | |
25932 | PyObject *swig_obj[1] ; | |
25933 | ||
25934 | if (!args) SWIG_fail; | |
25935 | swig_obj[0] = args; | |
25936 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 ); | |
25937 | if (!SWIG_IsOK(res1)) { | |
25938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'"); | |
25939 | } | |
25940 | arg1 = reinterpret_cast< wxGraphicsFont * >(argp1); | |
25941 | { | |
25942 | delete arg1; | |
25943 | ||
25944 | if (PyErr_Occurred()) SWIG_fail; | |
25945 | } | |
25946 | resultobj = SWIG_Py_Void(); | |
25947 | return resultobj; | |
25948 | fail: | |
25949 | return NULL; | |
25950 | } | |
25951 | ||
25952 | ||
25953 | SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25954 | PyObject *obj; | |
25955 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25956 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj)); | |
25957 | return SWIG_Py_Void(); | |
25958 | } | |
25959 | ||
25960 | SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25961 | return SWIG_Python_InitShadowInstance(args); | |
25962 | } | |
25963 | ||
5c8c7dd3 | 25964 | SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 25965 | PyObject *resultobj = 0; |
5c8c7dd3 | 25966 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
0085ce49 RD |
25967 | void *argp1 = 0 ; |
25968 | int res1 = 0 ; | |
25969 | PyObject *swig_obj[1] ; | |
25970 | ||
25971 | if (!args) SWIG_fail; | |
25972 | swig_obj[0] = args; | |
5c8c7dd3 | 25973 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 ); |
0085ce49 | 25974 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 25975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 25976 | } |
5c8c7dd3 | 25977 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
0085ce49 | 25978 | { |
0085ce49 RD |
25979 | delete arg1; |
25980 | ||
0085ce49 RD |
25981 | if (PyErr_Occurred()) SWIG_fail; |
25982 | } | |
25983 | resultobj = SWIG_Py_Void(); | |
25984 | return resultobj; | |
25985 | fail: | |
25986 | return NULL; | |
25987 | } | |
25988 | ||
25989 | ||
5c8c7dd3 | 25990 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 25991 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
25992 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
25993 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
25994 | void *argp1 = 0 ; |
25995 | int res1 = 0 ; | |
5c8c7dd3 RD |
25996 | void *argp2 = 0 ; |
25997 | int res2 = 0 ; | |
25998 | PyObject * obj0 = 0 ; | |
25999 | PyObject * obj1 = 0 ; | |
26000 | char * kwnames[] = { | |
26001 | (char *) "self",(char *) "t", NULL | |
26002 | }; | |
70d7cb34 | 26003 | |
5c8c7dd3 RD |
26004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail; |
26005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26006 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26008 | } |
5c8c7dd3 RD |
26009 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26010 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
26011 | if (!SWIG_IsOK(res2)) { | |
26012 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26013 | } | |
26014 | if (!argp2) { | |
26015 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26016 | } | |
26017 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 26018 | { |
5c8c7dd3 | 26019 | (arg1)->Concat((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
26020 | if (PyErr_Occurred()) SWIG_fail; |
26021 | } | |
5c8c7dd3 | 26022 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26023 | return resultobj; |
26024 | fail: | |
26025 | return NULL; | |
26026 | } | |
26027 | ||
26028 | ||
5c8c7dd3 | 26029 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26030 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26031 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26032 | wxDouble arg2 = (wxDouble) 1.0 ; | |
26033 | wxDouble arg3 = (wxDouble) 0.0 ; | |
26034 | wxDouble arg4 = (wxDouble) 0.0 ; | |
26035 | wxDouble arg5 = (wxDouble) 1.0 ; | |
26036 | wxDouble arg6 = (wxDouble) 0.0 ; | |
26037 | wxDouble arg7 = (wxDouble) 0.0 ; | |
70d7cb34 RD |
26038 | void *argp1 = 0 ; |
26039 | int res1 = 0 ; | |
5c8c7dd3 RD |
26040 | double val2 ; |
26041 | int ecode2 = 0 ; | |
26042 | double val3 ; | |
26043 | int ecode3 = 0 ; | |
26044 | double val4 ; | |
26045 | int ecode4 = 0 ; | |
26046 | double val5 ; | |
26047 | int ecode5 = 0 ; | |
26048 | double val6 ; | |
26049 | int ecode6 = 0 ; | |
26050 | double val7 ; | |
26051 | int ecode7 = 0 ; | |
26052 | PyObject * obj0 = 0 ; | |
26053 | PyObject * obj1 = 0 ; | |
26054 | PyObject * obj2 = 0 ; | |
26055 | PyObject * obj3 = 0 ; | |
26056 | PyObject * obj4 = 0 ; | |
26057 | PyObject * obj5 = 0 ; | |
26058 | PyObject * obj6 = 0 ; | |
26059 | char * kwnames[] = { | |
26060 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
26061 | }; | |
70d7cb34 | 26062 | |
5c8c7dd3 RD |
26063 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
26064 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26065 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26067 | } |
5c8c7dd3 RD |
26068 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26069 | if (obj1) { | |
26070 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26071 | if (!SWIG_IsOK(ecode2)) { | |
26072 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26073 | } | |
26074 | arg2 = static_cast< wxDouble >(val2); | |
26075 | } | |
26076 | if (obj2) { | |
26077 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26078 | if (!SWIG_IsOK(ecode3)) { | |
26079 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26080 | } | |
26081 | arg3 = static_cast< wxDouble >(val3); | |
26082 | } | |
26083 | if (obj3) { | |
26084 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26085 | if (!SWIG_IsOK(ecode4)) { | |
26086 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26087 | } | |
26088 | arg4 = static_cast< wxDouble >(val4); | |
26089 | } | |
26090 | if (obj4) { | |
26091 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26092 | if (!SWIG_IsOK(ecode5)) { | |
26093 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26094 | } | |
26095 | arg5 = static_cast< wxDouble >(val5); | |
26096 | } | |
26097 | if (obj5) { | |
26098 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
26099 | if (!SWIG_IsOK(ecode6)) { | |
26100 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26101 | } | |
26102 | arg6 = static_cast< wxDouble >(val6); | |
26103 | } | |
26104 | if (obj6) { | |
26105 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
26106 | if (!SWIG_IsOK(ecode7)) { | |
26107 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'"); | |
26108 | } | |
26109 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 RD |
26110 | } |
26111 | { | |
5c8c7dd3 | 26112 | (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26113 | if (PyErr_Occurred()) SWIG_fail; |
26114 | } | |
26115 | resultobj = SWIG_Py_Void(); | |
26116 | return resultobj; | |
26117 | fail: | |
26118 | return NULL; | |
26119 | } | |
26120 | ||
26121 | ||
248802d0 RD |
26122 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26123 | PyObject *resultobj = 0; | |
26124 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26125 | wxDouble *arg2 = (wxDouble *) 0 ; | |
26126 | wxDouble *arg3 = (wxDouble *) 0 ; | |
26127 | wxDouble *arg4 = (wxDouble *) 0 ; | |
26128 | wxDouble *arg5 = (wxDouble *) 0 ; | |
26129 | wxDouble *arg6 = (wxDouble *) 0 ; | |
26130 | wxDouble *arg7 = (wxDouble *) 0 ; | |
26131 | void *argp1 = 0 ; | |
26132 | int res1 = 0 ; | |
26133 | wxDouble temp2 ; | |
26134 | int res2 = SWIG_TMPOBJ ; | |
26135 | wxDouble temp3 ; | |
26136 | int res3 = SWIG_TMPOBJ ; | |
26137 | wxDouble temp4 ; | |
26138 | int res4 = SWIG_TMPOBJ ; | |
26139 | wxDouble temp5 ; | |
26140 | int res5 = SWIG_TMPOBJ ; | |
26141 | wxDouble temp6 ; | |
26142 | int res6 = SWIG_TMPOBJ ; | |
26143 | wxDouble temp7 ; | |
26144 | int res7 = SWIG_TMPOBJ ; | |
26145 | PyObject *swig_obj[1] ; | |
26146 | ||
26147 | arg2 = &temp2; | |
26148 | arg3 = &temp3; | |
26149 | arg4 = &temp4; | |
26150 | arg5 = &temp5; | |
26151 | arg6 = &temp6; | |
26152 | arg7 = &temp7; | |
26153 | if (!args) SWIG_fail; | |
26154 | swig_obj[0] = args; | |
26155 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26156 | if (!SWIG_IsOK(res1)) { | |
26157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); | |
26158 | } | |
26159 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26160 | { | |
26161 | (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7); | |
26162 | if (PyErr_Occurred()) SWIG_fail; | |
26163 | } | |
26164 | resultobj = SWIG_Py_Void(); | |
26165 | if (SWIG_IsTmpObj(res2)) { | |
26166 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26167 | } else { | |
26168 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26169 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26170 | } | |
26171 | if (SWIG_IsTmpObj(res3)) { | |
26172 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26173 | } else { | |
26174 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26175 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26176 | } | |
26177 | if (SWIG_IsTmpObj(res4)) { | |
26178 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
26179 | } else { | |
26180 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26181 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
26182 | } | |
26183 | if (SWIG_IsTmpObj(res5)) { | |
26184 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
26185 | } else { | |
26186 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26187 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
26188 | } | |
26189 | if (SWIG_IsTmpObj(res6)) { | |
26190 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
26191 | } else { | |
26192 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26193 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
26194 | } | |
26195 | if (SWIG_IsTmpObj(res7)) { | |
26196 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7))); | |
26197 | } else { | |
26198 | int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26199 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags)); | |
26200 | } | |
26201 | return resultobj; | |
26202 | fail: | |
26203 | return NULL; | |
26204 | } | |
26205 | ||
26206 | ||
5c8c7dd3 | 26207 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 26208 | PyObject *resultobj = 0; |
5c8c7dd3 | 26209 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
0085ce49 RD |
26210 | void *argp1 = 0 ; |
26211 | int res1 = 0 ; | |
5c8c7dd3 | 26212 | PyObject *swig_obj[1] ; |
0085ce49 | 26213 | |
5c8c7dd3 RD |
26214 | if (!args) SWIG_fail; |
26215 | swig_obj[0] = args; | |
26216 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
0085ce49 | 26217 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
0085ce49 | 26219 | } |
5c8c7dd3 | 26220 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
0085ce49 | 26221 | { |
5c8c7dd3 | 26222 | (arg1)->Invert(); |
0085ce49 RD |
26223 | if (PyErr_Occurred()) SWIG_fail; |
26224 | } | |
72ef6efb | 26225 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
26226 | return resultobj; |
26227 | fail: | |
26228 | return NULL; | |
26229 | } | |
26230 | ||
26231 | ||
5c8c7dd3 | 26232 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26233 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26234 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26235 | wxGraphicsMatrix *arg2 = 0 ; | |
26236 | bool result; | |
70d7cb34 RD |
26237 | void *argp1 = 0 ; |
26238 | int res1 = 0 ; | |
5c8c7dd3 RD |
26239 | void *argp2 = 0 ; |
26240 | int res2 = 0 ; | |
26241 | PyObject * obj0 = 0 ; | |
26242 | PyObject * obj1 = 0 ; | |
26243 | char * kwnames[] = { | |
26244 | (char *) "self",(char *) "t", NULL | |
26245 | }; | |
70d7cb34 | 26246 | |
5c8c7dd3 RD |
26247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; |
26248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26249 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
70d7cb34 | 26251 | } |
5c8c7dd3 RD |
26252 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26253 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
26254 | if (!SWIG_IsOK(res2)) { | |
26255 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26256 | } | |
26257 | if (!argp2) { | |
26258 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
70d7cb34 | 26259 | } |
5c8c7dd3 | 26260 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); |
70d7cb34 | 26261 | { |
5c8c7dd3 | 26262 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
26263 | if (PyErr_Occurred()) SWIG_fail; |
26264 | } | |
5c8c7dd3 RD |
26265 | { |
26266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26267 | } | |
70d7cb34 RD |
26268 | return resultobj; |
26269 | fail: | |
26270 | return NULL; | |
26271 | } | |
26272 | ||
26273 | ||
5c8c7dd3 RD |
26274 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26275 | PyObject *resultobj = 0; | |
26276 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26277 | bool result; | |
26278 | void *argp1 = 0 ; | |
26279 | int res1 = 0 ; | |
26280 | PyObject *swig_obj[1] ; | |
70d7cb34 | 26281 | |
5c8c7dd3 RD |
26282 | if (!args) SWIG_fail; |
26283 | swig_obj[0] = args; | |
26284 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26285 | if (!SWIG_IsOK(res1)) { | |
26286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
70d7cb34 | 26287 | } |
5c8c7dd3 RD |
26288 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26289 | { | |
26290 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity(); | |
26291 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 26292 | } |
5c8c7dd3 RD |
26293 | { |
26294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26295 | } | |
26296 | return resultobj; | |
70d7cb34 | 26297 | fail: |
70d7cb34 RD |
26298 | return NULL; |
26299 | } | |
26300 | ||
26301 | ||
5c8c7dd3 | 26302 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 26303 | PyObject *resultobj = 0; |
5c8c7dd3 | 26304 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
72ef6efb RD |
26305 | wxDouble arg2 ; |
26306 | wxDouble arg3 ; | |
0085ce49 RD |
26307 | void *argp1 = 0 ; |
26308 | int res1 = 0 ; | |
72ef6efb RD |
26309 | double val2 ; |
26310 | int ecode2 = 0 ; | |
26311 | double val3 ; | |
26312 | int ecode3 = 0 ; | |
5c8c7dd3 RD |
26313 | PyObject * obj0 = 0 ; |
26314 | PyObject * obj1 = 0 ; | |
26315 | PyObject * obj2 = 0 ; | |
26316 | char * kwnames[] = { | |
26317 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
26318 | }; | |
72ef6efb | 26319 | |
5c8c7dd3 RD |
26320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
26321 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 26322 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
72ef6efb | 26324 | } |
5c8c7dd3 RD |
26325 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26326 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
72ef6efb | 26327 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26328 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
26329 | } |
26330 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26331 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 26332 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26333 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
26334 | } |
26335 | arg3 = static_cast< wxDouble >(val3); | |
72ef6efb | 26336 | { |
5c8c7dd3 | 26337 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
26338 | if (PyErr_Occurred()) SWIG_fail; |
26339 | } | |
26340 | resultobj = SWIG_Py_Void(); | |
26341 | return resultobj; | |
26342 | fail: | |
26343 | return NULL; | |
26344 | } | |
26345 | ||
26346 | ||
5c8c7dd3 | 26347 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26348 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26349 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26350 | wxDouble arg2 ; | |
26351 | wxDouble arg3 ; | |
70d7cb34 RD |
26352 | void *argp1 = 0 ; |
26353 | int res1 = 0 ; | |
5c8c7dd3 RD |
26354 | double val2 ; |
26355 | int ecode2 = 0 ; | |
26356 | double val3 ; | |
26357 | int ecode3 = 0 ; | |
26358 | PyObject * obj0 = 0 ; | |
26359 | PyObject * obj1 = 0 ; | |
26360 | PyObject * obj2 = 0 ; | |
26361 | char * kwnames[] = { | |
26362 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
26363 | }; | |
70d7cb34 | 26364 | |
5c8c7dd3 RD |
26365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
26366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26367 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26369 | } |
5c8c7dd3 RD |
26370 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26371 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26372 | if (!SWIG_IsOK(ecode2)) { | |
26373 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26374 | } | |
26375 | arg2 = static_cast< wxDouble >(val2); | |
26376 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26377 | if (!SWIG_IsOK(ecode3)) { | |
26378 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26379 | } | |
26380 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26381 | { |
5c8c7dd3 | 26382 | (arg1)->Scale(arg2,arg3); |
70d7cb34 RD |
26383 | if (PyErr_Occurred()) SWIG_fail; |
26384 | } | |
26385 | resultobj = SWIG_Py_Void(); | |
26386 | return resultobj; | |
26387 | fail: | |
26388 | return NULL; | |
26389 | } | |
26390 | ||
26391 | ||
5c8c7dd3 | 26392 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26393 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26394 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26395 | wxDouble arg2 ; | |
70d7cb34 RD |
26396 | void *argp1 = 0 ; |
26397 | int res1 = 0 ; | |
5c8c7dd3 RD |
26398 | double val2 ; |
26399 | int ecode2 = 0 ; | |
70d7cb34 RD |
26400 | PyObject * obj0 = 0 ; |
26401 | PyObject * obj1 = 0 ; | |
26402 | char * kwnames[] = { | |
5c8c7dd3 | 26403 | (char *) "self",(char *) "angle", NULL |
70d7cb34 RD |
26404 | }; |
26405 | ||
5c8c7dd3 RD |
26406 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; |
26407 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26408 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26410 | } |
5c8c7dd3 RD |
26411 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26412 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26413 | if (!SWIG_IsOK(ecode2)) { | |
26414 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26415 | } | |
26416 | arg2 = static_cast< wxDouble >(val2); | |
70d7cb34 | 26417 | { |
5c8c7dd3 | 26418 | (arg1)->Rotate(arg2); |
70d7cb34 RD |
26419 | if (PyErr_Occurred()) SWIG_fail; |
26420 | } | |
26421 | resultobj = SWIG_Py_Void(); | |
26422 | return resultobj; | |
26423 | fail: | |
26424 | return NULL; | |
26425 | } | |
26426 | ||
26427 | ||
5c8c7dd3 | 26428 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 26429 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26430 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26431 | wxDouble *arg2 = (wxDouble *) 0 ; | |
26432 | wxDouble *arg3 = (wxDouble *) 0 ; | |
72ef6efb RD |
26433 | void *argp1 = 0 ; |
26434 | int res1 = 0 ; | |
5c8c7dd3 RD |
26435 | wxDouble temp2 ; |
26436 | int res2 = 0 ; | |
26437 | wxDouble temp3 ; | |
26438 | int res3 = 0 ; | |
26439 | PyObject * obj0 = 0 ; | |
26440 | PyObject * obj1 = 0 ; | |
26441 | PyObject * obj2 = 0 ; | |
26442 | char * kwnames[] = { | |
26443 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
26444 | }; | |
72ef6efb | 26445 | |
5c8c7dd3 RD |
26446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
26447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 26448 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 RD |
26449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
26450 | } | |
26451 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26452 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
26453 | double val; | |
26454 | int ecode = SWIG_AsVal_double(obj1, &val); | |
26455 | if (!SWIG_IsOK(ecode)) { | |
26456 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26457 | } | |
26458 | temp2 = static_cast< wxDouble >(val); | |
26459 | arg2 = &temp2; | |
26460 | res2 = SWIG_AddTmpMask(ecode); | |
26461 | } | |
26462 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
26463 | double val; | |
26464 | int ecode = SWIG_AsVal_double(obj2, &val); | |
26465 | if (!SWIG_IsOK(ecode)) { | |
26466 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26467 | } | |
26468 | temp3 = static_cast< wxDouble >(val); | |
26469 | arg3 = &temp3; | |
26470 | res3 = SWIG_AddTmpMask(ecode); | |
26471 | } | |
26472 | { | |
26473 | ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3); | |
26474 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb RD |
26475 | } |
26476 | resultobj = SWIG_Py_Void(); | |
5c8c7dd3 RD |
26477 | if (SWIG_IsTmpObj(res2)) { |
26478 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26479 | } else { | |
26480 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26481 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26482 | } | |
26483 | if (SWIG_IsTmpObj(res3)) { | |
26484 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26485 | } else { | |
26486 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26487 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26488 | } | |
72ef6efb RD |
26489 | return resultobj; |
26490 | fail: | |
26491 | return NULL; | |
26492 | } | |
26493 | ||
26494 | ||
5c8c7dd3 RD |
26495 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26496 | PyObject *resultobj = 0; | |
26497 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26498 | wxDouble *arg2 = (wxDouble *) 0 ; | |
26499 | wxDouble *arg3 = (wxDouble *) 0 ; | |
26500 | void *argp1 = 0 ; | |
26501 | int res1 = 0 ; | |
26502 | wxDouble temp2 ; | |
26503 | int res2 = 0 ; | |
26504 | wxDouble temp3 ; | |
26505 | int res3 = 0 ; | |
26506 | PyObject * obj0 = 0 ; | |
26507 | PyObject * obj1 = 0 ; | |
26508 | PyObject * obj2 = 0 ; | |
26509 | char * kwnames[] = { | |
26510 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
26511 | }; | |
26512 | ||
26513 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26514 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26515 | if (!SWIG_IsOK(res1)) { | |
26516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
26517 | } | |
26518 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26519 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
26520 | double val; | |
26521 | int ecode = SWIG_AsVal_double(obj1, &val); | |
26522 | if (!SWIG_IsOK(ecode)) { | |
26523 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26524 | } | |
26525 | temp2 = static_cast< wxDouble >(val); | |
26526 | arg2 = &temp2; | |
26527 | res2 = SWIG_AddTmpMask(ecode); | |
26528 | } | |
26529 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
26530 | double val; | |
26531 | int ecode = SWIG_AsVal_double(obj2, &val); | |
26532 | if (!SWIG_IsOK(ecode)) { | |
26533 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26534 | } | |
26535 | temp3 = static_cast< wxDouble >(val); | |
26536 | arg3 = &temp3; | |
26537 | res3 = SWIG_AddTmpMask(ecode); | |
26538 | } | |
26539 | { | |
26540 | ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3); | |
26541 | if (PyErr_Occurred()) SWIG_fail; | |
26542 | } | |
26543 | resultobj = SWIG_Py_Void(); | |
26544 | if (SWIG_IsTmpObj(res2)) { | |
26545 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26546 | } else { | |
26547 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26548 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26549 | } | |
26550 | if (SWIG_IsTmpObj(res3)) { | |
26551 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26552 | } else { | |
26553 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26554 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26555 | } | |
26556 | return resultobj; | |
26557 | fail: | |
26558 | return NULL; | |
26559 | } | |
26560 | ||
26561 | ||
26562 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26563 | PyObject *resultobj = 0; | |
26564 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26565 | void *result = 0 ; | |
26566 | void *argp1 = 0 ; | |
26567 | int res1 = 0 ; | |
26568 | PyObject *swig_obj[1] ; | |
26569 | ||
26570 | if (!args) SWIG_fail; | |
26571 | swig_obj[0] = args; | |
26572 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26573 | if (!SWIG_IsOK(res1)) { | |
26574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
26575 | } | |
26576 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26577 | { | |
26578 | result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix(); | |
26579 | if (PyErr_Occurred()) SWIG_fail; | |
26580 | } | |
26581 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
26582 | return resultobj; | |
26583 | fail: | |
26584 | return NULL; | |
26585 | } | |
26586 | ||
26587 | ||
26588 | SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26589 | PyObject *obj; | |
26590 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26591 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj)); | |
26592 | return SWIG_Py_Void(); | |
26593 | } | |
26594 | ||
26595 | SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
72ef6efb RD |
26596 | PyObject *resultobj = 0; |
26597 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
72ef6efb RD |
26598 | void *argp1 = 0 ; |
26599 | int res1 = 0 ; | |
26600 | PyObject *swig_obj[1] ; | |
26601 | ||
26602 | if (!args) SWIG_fail; | |
26603 | swig_obj[0] = args; | |
5c8c7dd3 | 26604 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 ); |
72ef6efb | 26605 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
72ef6efb RD |
26607 | } |
26608 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26609 | { | |
5c8c7dd3 RD |
26610 | delete arg1; |
26611 | ||
72ef6efb RD |
26612 | if (PyErr_Occurred()) SWIG_fail; |
26613 | } | |
5c8c7dd3 | 26614 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26615 | return resultobj; |
26616 | fail: | |
26617 | return NULL; | |
26618 | } | |
26619 | ||
26620 | ||
5c8c7dd3 | 26621 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26622 | PyObject *resultobj = 0; |
26623 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26624 | wxDouble arg2 ; | |
26625 | wxDouble arg3 ; | |
70d7cb34 RD |
26626 | void *argp1 = 0 ; |
26627 | int res1 = 0 ; | |
26628 | double val2 ; | |
26629 | int ecode2 = 0 ; | |
26630 | double val3 ; | |
26631 | int ecode3 = 0 ; | |
70d7cb34 | 26632 | |
5c8c7dd3 | 26633 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
70d7cb34 RD |
26634 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26635 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26637 | } |
26638 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26639 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
26640 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 26641 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26642 | } |
26643 | arg2 = static_cast< wxDouble >(val2); | |
26644 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
26645 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 26646 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26647 | } |
26648 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26649 | { |
5c8c7dd3 | 26650 | (arg1)->MoveToPoint(arg2,arg3); |
70d7cb34 RD |
26651 | if (PyErr_Occurred()) SWIG_fail; |
26652 | } | |
26653 | resultobj = SWIG_Py_Void(); | |
26654 | return resultobj; | |
26655 | fail: | |
26656 | return NULL; | |
26657 | } | |
26658 | ||
26659 | ||
5c8c7dd3 | 26660 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26661 | PyObject *resultobj = 0; |
26662 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26663 | wxPoint2D *arg2 = 0 ; | |
70d7cb34 RD |
26664 | void *argp1 = 0 ; |
26665 | int res1 = 0 ; | |
26666 | wxPoint2D temp2 ; | |
70d7cb34 | 26667 | |
5c8c7dd3 | 26668 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
70d7cb34 RD |
26669 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26670 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26672 | } |
26673 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
26674 | { | |
26675 | arg2 = &temp2; | |
26676 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26677 | } | |
70d7cb34 | 26678 | { |
5c8c7dd3 | 26679 | (arg1)->MoveToPoint((wxPoint2D const &)*arg2); |
70d7cb34 RD |
26680 | if (PyErr_Occurred()) SWIG_fail; |
26681 | } | |
26682 | resultobj = SWIG_Py_Void(); | |
26683 | return resultobj; | |
26684 | fail: | |
26685 | return NULL; | |
26686 | } | |
26687 | ||
26688 | ||
5c8c7dd3 | 26689 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) { |
70d7cb34 | 26690 | int argc; |
5c8c7dd3 | 26691 | PyObject *argv[4]; |
70d7cb34 | 26692 | |
5c8c7dd3 | 26693 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail; |
70d7cb34 | 26694 | --argc; |
5c8c7dd3 RD |
26695 | if (argc == 2) { |
26696 | return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26697 | } |
5c8c7dd3 RD |
26698 | if (argc == 3) { |
26699 | return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
26700 | } |
26701 | ||
26702 | fail: | |
5c8c7dd3 | 26703 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'"); |
70d7cb34 RD |
26704 | return NULL; |
26705 | } | |
26706 | ||
26707 | ||
5c8c7dd3 | 26708 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26709 | PyObject *resultobj = 0; |
26710 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26711 | wxDouble arg2 ; | |
26712 | wxDouble arg3 ; | |
70d7cb34 RD |
26713 | void *argp1 = 0 ; |
26714 | int res1 = 0 ; | |
26715 | double val2 ; | |
26716 | int ecode2 = 0 ; | |
26717 | double val3 ; | |
26718 | int ecode3 = 0 ; | |
70d7cb34 | 26719 | |
5c8c7dd3 RD |
26720 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
26721 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26722 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26724 | } |
26725 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26726 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 26727 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26728 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26729 | } |
26730 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26731 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 26732 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26733 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26734 | } |
26735 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26736 | { |
5c8c7dd3 | 26737 | (arg1)->AddLineToPoint(arg2,arg3); |
70d7cb34 RD |
26738 | if (PyErr_Occurred()) SWIG_fail; |
26739 | } | |
26740 | resultobj = SWIG_Py_Void(); | |
26741 | return resultobj; | |
26742 | fail: | |
26743 | return NULL; | |
26744 | } | |
26745 | ||
26746 | ||
5c8c7dd3 | 26747 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26748 | PyObject *resultobj = 0; |
26749 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26750 | wxPoint2D *arg2 = 0 ; |
70d7cb34 RD |
26751 | void *argp1 = 0 ; |
26752 | int res1 = 0 ; | |
5c8c7dd3 | 26753 | wxPoint2D temp2 ; |
70d7cb34 | 26754 | |
5c8c7dd3 RD |
26755 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
26756 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26757 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26759 | } |
26760 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26761 | { |
5c8c7dd3 RD |
26762 | arg2 = &temp2; |
26763 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26764 | } | |
26765 | { | |
26766 | (arg1)->AddLineToPoint((wxPoint2D const &)*arg2); | |
70d7cb34 RD |
26767 | if (PyErr_Occurred()) SWIG_fail; |
26768 | } | |
26769 | resultobj = SWIG_Py_Void(); | |
26770 | return resultobj; | |
26771 | fail: | |
26772 | return NULL; | |
26773 | } | |
26774 | ||
26775 | ||
5c8c7dd3 RD |
26776 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) { |
26777 | int argc; | |
26778 | PyObject *argv[4]; | |
70d7cb34 | 26779 | |
5c8c7dd3 RD |
26780 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail; |
26781 | --argc; | |
26782 | if (argc == 2) { | |
26783 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26784 | } |
5c8c7dd3 RD |
26785 | if (argc == 3) { |
26786 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 26787 | } |
5c8c7dd3 | 26788 | |
70d7cb34 | 26789 | fail: |
5c8c7dd3 | 26790 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'"); |
70d7cb34 RD |
26791 | return NULL; |
26792 | } | |
26793 | ||
26794 | ||
5c8c7dd3 | 26795 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26796 | PyObject *resultobj = 0; |
26797 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
26798 | wxDouble arg2 ; | |
26799 | wxDouble arg3 ; | |
26800 | wxDouble arg4 ; | |
26801 | wxDouble arg5 ; | |
26802 | wxDouble arg6 ; | |
5c8c7dd3 | 26803 | wxDouble arg7 ; |
70d7cb34 RD |
26804 | void *argp1 = 0 ; |
26805 | int res1 = 0 ; | |
26806 | double val2 ; | |
26807 | int ecode2 = 0 ; | |
26808 | double val3 ; | |
26809 | int ecode3 = 0 ; | |
26810 | double val4 ; | |
26811 | int ecode4 = 0 ; | |
26812 | double val5 ; | |
26813 | int ecode5 = 0 ; | |
26814 | double val6 ; | |
26815 | int ecode6 = 0 ; | |
5c8c7dd3 RD |
26816 | double val7 ; |
26817 | int ecode7 = 0 ; | |
70d7cb34 | 26818 | |
5c8c7dd3 RD |
26819 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
26820 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26821 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26822 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26823 | } |
26824 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26825 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 26826 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26827 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26828 | } |
26829 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26830 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 26831 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26832 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26833 | } |
26834 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 | 26835 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
70d7cb34 | 26836 | if (!SWIG_IsOK(ecode4)) { |
5c8c7dd3 | 26837 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26838 | } |
26839 | arg4 = static_cast< wxDouble >(val4); | |
5c8c7dd3 | 26840 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); |
70d7cb34 | 26841 | if (!SWIG_IsOK(ecode5)) { |
5c8c7dd3 | 26842 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26843 | } |
26844 | arg5 = static_cast< wxDouble >(val5); | |
5c8c7dd3 | 26845 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); |
70d7cb34 | 26846 | if (!SWIG_IsOK(ecode6)) { |
5c8c7dd3 | 26847 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); |
70d7cb34 RD |
26848 | } |
26849 | arg6 = static_cast< wxDouble >(val6); | |
5c8c7dd3 RD |
26850 | ecode7 = SWIG_AsVal_double(swig_obj[6], &val7); |
26851 | if (!SWIG_IsOK(ecode7)) { | |
26852 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'"); | |
26853 | } | |
26854 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 | 26855 | { |
5c8c7dd3 | 26856 | (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26857 | if (PyErr_Occurred()) SWIG_fail; |
26858 | } | |
26859 | resultobj = SWIG_Py_Void(); | |
26860 | return resultobj; | |
26861 | fail: | |
26862 | return NULL; | |
26863 | } | |
26864 | ||
26865 | ||
5c8c7dd3 | 26866 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
26867 | PyObject *resultobj = 0; |
26868 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
26869 | wxPoint2D *arg2 = 0 ; |
26870 | wxPoint2D *arg3 = 0 ; | |
26871 | wxPoint2D *arg4 = 0 ; | |
70d7cb34 RD |
26872 | void *argp1 = 0 ; |
26873 | int res1 = 0 ; | |
5c8c7dd3 RD |
26874 | wxPoint2D temp2 ; |
26875 | wxPoint2D temp3 ; | |
26876 | wxPoint2D temp4 ; | |
70d7cb34 | 26877 | |
5c8c7dd3 RD |
26878 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; |
26879 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26880 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26882 | } |
26883 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26884 | { |
5c8c7dd3 RD |
26885 | arg2 = &temp2; |
26886 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 26887 | } |
5c8c7dd3 RD |
26888 | { |
26889 | arg3 = &temp3; | |
26890 | if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail; | |
70d7cb34 | 26891 | } |
70d7cb34 | 26892 | { |
5c8c7dd3 RD |
26893 | arg4 = &temp4; |
26894 | if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail; | |
26895 | } | |
26896 | { | |
26897 | (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4); | |
70d7cb34 RD |
26898 | if (PyErr_Occurred()) SWIG_fail; |
26899 | } | |
26900 | resultobj = SWIG_Py_Void(); | |
26901 | return resultobj; | |
26902 | fail: | |
26903 | return NULL; | |
26904 | } | |
26905 | ||
26906 | ||
5c8c7dd3 RD |
26907 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) { |
26908 | int argc; | |
26909 | PyObject *argv[8]; | |
70d7cb34 | 26910 | |
5c8c7dd3 RD |
26911 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail; |
26912 | --argc; | |
26913 | if (argc == 4) { | |
26914 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 26915 | } |
5c8c7dd3 RD |
26916 | if (argc == 7) { |
26917 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 26918 | } |
5c8c7dd3 | 26919 | |
70d7cb34 | 26920 | fail: |
5c8c7dd3 | 26921 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'"); |
70d7cb34 RD |
26922 | return NULL; |
26923 | } | |
26924 | ||
26925 | ||
5c8c7dd3 | 26926 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 RD |
26927 | PyObject *resultobj = 0; |
26928 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26929 | wxGraphicsPath *arg2 = 0 ; |
70d7cb34 RD |
26930 | void *argp1 = 0 ; |
26931 | int res1 = 0 ; | |
5c8c7dd3 RD |
26932 | void *argp2 = 0 ; |
26933 | int res2 = 0 ; | |
70d7cb34 RD |
26934 | PyObject * obj0 = 0 ; |
26935 | PyObject * obj1 = 0 ; | |
26936 | char * kwnames[] = { | |
5c8c7dd3 | 26937 | (char *) "self",(char *) "path", NULL |
70d7cb34 RD |
26938 | }; |
26939 | ||
5c8c7dd3 | 26940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail; |
70d7cb34 RD |
26941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
26942 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 26943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26944 | } |
26945 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 26946 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
70d7cb34 | 26947 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
26948 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
26949 | } | |
26950 | if (!argp2) { | |
26951 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
70d7cb34 | 26952 | } |
5c8c7dd3 | 26953 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); |
70d7cb34 | 26954 | { |
5c8c7dd3 | 26955 | (arg1)->AddPath((wxGraphicsPath const &)*arg2); |
70d7cb34 RD |
26956 | if (PyErr_Occurred()) SWIG_fail; |
26957 | } | |
26958 | resultobj = SWIG_Py_Void(); | |
26959 | return resultobj; | |
26960 | fail: | |
26961 | return NULL; | |
26962 | } | |
26963 | ||
26964 | ||
5c8c7dd3 | 26965 | SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26966 | PyObject *resultobj = 0; |
26967 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
70d7cb34 RD |
26968 | void *argp1 = 0 ; |
26969 | int res1 = 0 ; | |
5c8c7dd3 | 26970 | PyObject *swig_obj[1] ; |
70d7cb34 | 26971 | |
5c8c7dd3 RD |
26972 | if (!args) SWIG_fail; |
26973 | swig_obj[0] = args; | |
26974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 26975 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
26977 | } |
26978 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 26979 | { |
5c8c7dd3 | 26980 | (arg1)->CloseSubpath(); |
70d7cb34 RD |
26981 | if (PyErr_Occurred()) SWIG_fail; |
26982 | } | |
26983 | resultobj = SWIG_Py_Void(); | |
26984 | return resultobj; | |
26985 | fail: | |
26986 | return NULL; | |
26987 | } | |
26988 | ||
26989 | ||
5c8c7dd3 | 26990 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
26991 | PyObject *resultobj = 0; |
26992 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 26993 | wxPoint2D result; |
70d7cb34 RD |
26994 | void *argp1 = 0 ; |
26995 | int res1 = 0 ; | |
26996 | PyObject *swig_obj[1] ; | |
26997 | ||
26998 | if (!args) SWIG_fail; | |
26999 | swig_obj[0] = args; | |
27000 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
27001 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 RD |
27003 | } |
27004 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27005 | { | |
5c8c7dd3 | 27006 | result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint(); |
70d7cb34 RD |
27007 | if (PyErr_Occurred()) SWIG_fail; |
27008 | } | |
5c8c7dd3 | 27009 | resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
27010 | return resultobj; |
27011 | fail: | |
27012 | return NULL; | |
27013 | } | |
27014 | ||
27015 | ||
5c8c7dd3 | 27016 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27017 | PyObject *resultobj = 0; |
27018 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27019 | wxDouble arg2 ; | |
27020 | wxDouble arg3 ; | |
5c8c7dd3 RD |
27021 | wxDouble arg4 ; |
27022 | wxDouble arg5 ; | |
27023 | wxDouble arg6 ; | |
89d1e2ee | 27024 | bool arg7 = (bool) true ; |
70d7cb34 RD |
27025 | void *argp1 = 0 ; |
27026 | int res1 = 0 ; | |
27027 | double val2 ; | |
27028 | int ecode2 = 0 ; | |
27029 | double val3 ; | |
27030 | int ecode3 = 0 ; | |
5c8c7dd3 | 27031 | double val4 ; |
70d7cb34 | 27032 | int ecode4 = 0 ; |
5c8c7dd3 RD |
27033 | double val5 ; |
27034 | int ecode5 = 0 ; | |
27035 | double val6 ; | |
27036 | int ecode6 = 0 ; | |
27037 | bool val7 ; | |
27038 | int ecode7 = 0 ; | |
70d7cb34 | 27039 | |
89d1e2ee | 27040 | if ((nobjs < 6) || (nobjs > 7)) SWIG_fail; |
70d7cb34 RD |
27041 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27042 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27044 | } |
27045 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27046 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
27047 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 27048 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27049 | } |
27050 | arg2 = static_cast< wxDouble >(val2); | |
27051 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
27052 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 27053 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27054 | } |
27055 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 RD |
27056 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
27057 | if (!SWIG_IsOK(ecode4)) { | |
27058 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27059 | } | |
27060 | arg4 = static_cast< wxDouble >(val4); | |
27061 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
27062 | if (!SWIG_IsOK(ecode5)) { | |
27063 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27064 | } | |
27065 | arg5 = static_cast< wxDouble >(val5); | |
27066 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); | |
27067 | if (!SWIG_IsOK(ecode6)) { | |
27068 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27069 | } | |
27070 | arg6 = static_cast< wxDouble >(val6); | |
89d1e2ee RD |
27071 | if (swig_obj[6]) { |
27072 | ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); | |
27073 | if (!SWIG_IsOK(ecode7)) { | |
27074 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'"); | |
27075 | } | |
27076 | arg7 = static_cast< bool >(val7); | |
27077 | } | |
70d7cb34 | 27078 | { |
5c8c7dd3 | 27079 | (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
27080 | if (PyErr_Occurred()) SWIG_fail; |
27081 | } | |
5c8c7dd3 | 27082 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27083 | return resultobj; |
27084 | fail: | |
27085 | return NULL; | |
27086 | } | |
27087 | ||
27088 | ||
5c8c7dd3 | 27089 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27090 | PyObject *resultobj = 0; |
27091 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
27092 | wxPoint2D *arg2 = 0 ; |
27093 | wxDouble arg3 ; | |
27094 | wxDouble arg4 ; | |
27095 | wxDouble arg5 ; | |
89d1e2ee | 27096 | bool arg6 = (bool) true ; |
70d7cb34 RD |
27097 | void *argp1 = 0 ; |
27098 | int res1 = 0 ; | |
5c8c7dd3 RD |
27099 | wxPoint2D temp2 ; |
27100 | double val3 ; | |
70d7cb34 | 27101 | int ecode3 = 0 ; |
5c8c7dd3 RD |
27102 | double val4 ; |
27103 | int ecode4 = 0 ; | |
27104 | double val5 ; | |
27105 | int ecode5 = 0 ; | |
27106 | bool val6 ; | |
27107 | int ecode6 = 0 ; | |
70d7cb34 | 27108 | |
89d1e2ee | 27109 | if ((nobjs < 5) || (nobjs > 6)) SWIG_fail; |
70d7cb34 RD |
27110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27111 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27113 | } |
27114 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27115 | { |
5c8c7dd3 RD |
27116 | arg2 = &temp2; |
27117 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 27118 | } |
5c8c7dd3 RD |
27119 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
27120 | if (!SWIG_IsOK(ecode3)) { | |
27121 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27122 | } | |
27123 | arg3 = static_cast< wxDouble >(val3); | |
27124 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); | |
27125 | if (!SWIG_IsOK(ecode4)) { | |
27126 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27127 | } | |
27128 | arg4 = static_cast< wxDouble >(val4); | |
27129 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
27130 | if (!SWIG_IsOK(ecode5)) { | |
27131 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27132 | } | |
27133 | arg5 = static_cast< wxDouble >(val5); | |
89d1e2ee RD |
27134 | if (swig_obj[5]) { |
27135 | ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); | |
27136 | if (!SWIG_IsOK(ecode6)) { | |
27137 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'"); | |
27138 | } | |
27139 | arg6 = static_cast< bool >(val6); | |
27140 | } | |
70d7cb34 | 27141 | { |
5c8c7dd3 RD |
27142 | (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6); |
27143 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 27144 | } |
5c8c7dd3 | 27145 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27146 | return resultobj; |
27147 | fail: | |
27148 | return NULL; | |
27149 | } | |
27150 | ||
27151 | ||
5c8c7dd3 | 27152 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) { |
70d7cb34 | 27153 | int argc; |
5c8c7dd3 | 27154 | PyObject *argv[8]; |
70d7cb34 | 27155 | |
5c8c7dd3 | 27156 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail; |
70d7cb34 | 27157 | --argc; |
89d1e2ee RD |
27158 | if ((argc >= 5) && (argc <= 6)) { |
27159 | int _v = 0; | |
27160 | { | |
27161 | { | |
27162 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2); | |
27163 | } | |
27164 | } | |
27165 | if (!_v) goto check_1; | |
27166 | if (argc > 5) { | |
27167 | { | |
27168 | { | |
27169 | int res = SWIG_AsVal_bool(argv[5], NULL); | |
27170 | _v = SWIG_CheckState(res); | |
27171 | } | |
27172 | } | |
27173 | if (!_v) goto check_1; | |
27174 | } | |
5c8c7dd3 | 27175 | return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv); |
70d7cb34 | 27176 | } |
89d1e2ee RD |
27177 | check_1: |
27178 | ||
27179 | if ((argc >= 6) && (argc <= 7)) { | |
5c8c7dd3 | 27180 | return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv); |
70d7cb34 RD |
27181 | } |
27182 | ||
27183 | fail: | |
5c8c7dd3 | 27184 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'"); |
70d7cb34 RD |
27185 | return NULL; |
27186 | } | |
27187 | ||
27188 | ||
5c8c7dd3 | 27189 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27190 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27191 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27192 | wxDouble arg2 ; | |
27193 | wxDouble arg3 ; | |
27194 | wxDouble arg4 ; | |
27195 | wxDouble arg5 ; | |
70d7cb34 RD |
27196 | void *argp1 = 0 ; |
27197 | int res1 = 0 ; | |
5c8c7dd3 RD |
27198 | double val2 ; |
27199 | int ecode2 = 0 ; | |
27200 | double val3 ; | |
27201 | int ecode3 = 0 ; | |
27202 | double val4 ; | |
27203 | int ecode4 = 0 ; | |
27204 | double val5 ; | |
27205 | int ecode5 = 0 ; | |
27206 | PyObject * obj0 = 0 ; | |
27207 | PyObject * obj1 = 0 ; | |
27208 | PyObject * obj2 = 0 ; | |
27209 | PyObject * obj3 = 0 ; | |
27210 | PyObject * obj4 = 0 ; | |
27211 | char * kwnames[] = { | |
27212 | (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL | |
27213 | }; | |
70d7cb34 | 27214 | |
5c8c7dd3 RD |
27215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27217 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27219 | } |
5c8c7dd3 RD |
27220 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27221 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27222 | if (!SWIG_IsOK(ecode2)) { | |
27223 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27224 | } | |
27225 | arg2 = static_cast< wxDouble >(val2); | |
27226 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27227 | if (!SWIG_IsOK(ecode3)) { | |
27228 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27229 | } | |
27230 | arg3 = static_cast< wxDouble >(val3); | |
27231 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27232 | if (!SWIG_IsOK(ecode4)) { | |
27233 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27234 | } | |
27235 | arg4 = static_cast< wxDouble >(val4); | |
27236 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27237 | if (!SWIG_IsOK(ecode5)) { | |
27238 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27239 | } | |
27240 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27241 | { |
5c8c7dd3 | 27242 | (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27243 | if (PyErr_Occurred()) SWIG_fail; |
27244 | } | |
27245 | resultobj = SWIG_Py_Void(); | |
27246 | return resultobj; | |
27247 | fail: | |
27248 | return NULL; | |
27249 | } | |
27250 | ||
27251 | ||
5c8c7dd3 | 27252 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27253 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27254 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27255 | wxDouble arg2 ; | |
27256 | wxDouble arg3 ; | |
27257 | wxDouble arg4 ; | |
27258 | wxDouble arg5 ; | |
70d7cb34 RD |
27259 | void *argp1 = 0 ; |
27260 | int res1 = 0 ; | |
5c8c7dd3 RD |
27261 | double val2 ; |
27262 | int ecode2 = 0 ; | |
27263 | double val3 ; | |
27264 | int ecode3 = 0 ; | |
27265 | double val4 ; | |
27266 | int ecode4 = 0 ; | |
27267 | double val5 ; | |
27268 | int ecode5 = 0 ; | |
70d7cb34 RD |
27269 | PyObject * obj0 = 0 ; |
27270 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27271 | PyObject * obj2 = 0 ; |
27272 | PyObject * obj3 = 0 ; | |
27273 | PyObject * obj4 = 0 ; | |
70d7cb34 | 27274 | char * kwnames[] = { |
5c8c7dd3 | 27275 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
70d7cb34 RD |
27276 | }; |
27277 | ||
5c8c7dd3 RD |
27278 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27280 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27282 | } |
5c8c7dd3 RD |
27283 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27284 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27285 | if (!SWIG_IsOK(ecode2)) { | |
27286 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27287 | } | |
27288 | arg2 = static_cast< wxDouble >(val2); | |
27289 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27290 | if (!SWIG_IsOK(ecode3)) { | |
27291 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27292 | } | |
27293 | arg3 = static_cast< wxDouble >(val3); | |
27294 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27295 | if (!SWIG_IsOK(ecode4)) { | |
27296 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27297 | } | |
27298 | arg4 = static_cast< wxDouble >(val4); | |
27299 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27300 | if (!SWIG_IsOK(ecode5)) { | |
27301 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27302 | } | |
27303 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27304 | { |
5c8c7dd3 | 27305 | (arg1)->AddRectangle(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27306 | if (PyErr_Occurred()) SWIG_fail; |
27307 | } | |
27308 | resultobj = SWIG_Py_Void(); | |
27309 | return resultobj; | |
27310 | fail: | |
27311 | return NULL; | |
27312 | } | |
27313 | ||
27314 | ||
5c8c7dd3 | 27315 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27316 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27317 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27318 | wxDouble arg2 ; | |
27319 | wxDouble arg3 ; | |
27320 | wxDouble arg4 ; | |
70d7cb34 RD |
27321 | void *argp1 = 0 ; |
27322 | int res1 = 0 ; | |
5c8c7dd3 RD |
27323 | double val2 ; |
27324 | int ecode2 = 0 ; | |
27325 | double val3 ; | |
27326 | int ecode3 = 0 ; | |
27327 | double val4 ; | |
27328 | int ecode4 = 0 ; | |
70d7cb34 RD |
27329 | PyObject * obj0 = 0 ; |
27330 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27331 | PyObject * obj2 = 0 ; |
27332 | PyObject * obj3 = 0 ; | |
70d7cb34 | 27333 | char * kwnames[] = { |
5c8c7dd3 | 27334 | (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL |
70d7cb34 RD |
27335 | }; |
27336 | ||
5c8c7dd3 RD |
27337 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
27338 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27339 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27341 | } |
5c8c7dd3 RD |
27342 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27343 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27344 | if (!SWIG_IsOK(ecode2)) { | |
27345 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27346 | } | |
27347 | arg2 = static_cast< wxDouble >(val2); | |
27348 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27349 | if (!SWIG_IsOK(ecode3)) { | |
27350 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27351 | } | |
27352 | arg3 = static_cast< wxDouble >(val3); | |
27353 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27354 | if (!SWIG_IsOK(ecode4)) { | |
27355 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27356 | } | |
27357 | arg4 = static_cast< wxDouble >(val4); | |
70d7cb34 | 27358 | { |
5c8c7dd3 | 27359 | (arg1)->AddCircle(arg2,arg3,arg4); |
70d7cb34 RD |
27360 | if (PyErr_Occurred()) SWIG_fail; |
27361 | } | |
27362 | resultobj = SWIG_Py_Void(); | |
27363 | return resultobj; | |
27364 | fail: | |
27365 | return NULL; | |
27366 | } | |
27367 | ||
27368 | ||
5c8c7dd3 | 27369 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27370 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27371 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27372 | wxDouble arg2 ; | |
27373 | wxDouble arg3 ; | |
27374 | wxDouble arg4 ; | |
27375 | wxDouble arg5 ; | |
27376 | wxDouble arg6 ; | |
70d7cb34 RD |
27377 | void *argp1 = 0 ; |
27378 | int res1 = 0 ; | |
27379 | double val2 ; | |
27380 | int ecode2 = 0 ; | |
27381 | double val3 ; | |
27382 | int ecode3 = 0 ; | |
27383 | double val4 ; | |
27384 | int ecode4 = 0 ; | |
27385 | double val5 ; | |
27386 | int ecode5 = 0 ; | |
27387 | double val6 ; | |
27388 | int ecode6 = 0 ; | |
70d7cb34 RD |
27389 | PyObject * obj0 = 0 ; |
27390 | PyObject * obj1 = 0 ; | |
27391 | PyObject * obj2 = 0 ; | |
27392 | PyObject * obj3 = 0 ; | |
27393 | PyObject * obj4 = 0 ; | |
27394 | PyObject * obj5 = 0 ; | |
70d7cb34 | 27395 | char * kwnames[] = { |
5c8c7dd3 | 27396 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL |
70d7cb34 RD |
27397 | }; |
27398 | ||
5c8c7dd3 RD |
27399 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
27400 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27401 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27403 | } |
5c8c7dd3 RD |
27404 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27405 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27406 | if (!SWIG_IsOK(ecode2)) { | |
27407 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27408 | } | |
27409 | arg2 = static_cast< wxDouble >(val2); | |
27410 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27411 | if (!SWIG_IsOK(ecode3)) { | |
27412 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27413 | } | |
27414 | arg3 = static_cast< wxDouble >(val3); | |
27415 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27416 | if (!SWIG_IsOK(ecode4)) { | |
27417 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27418 | } | |
27419 | arg4 = static_cast< wxDouble >(val4); | |
27420 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27421 | if (!SWIG_IsOK(ecode5)) { | |
27422 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27423 | } | |
27424 | arg5 = static_cast< wxDouble >(val5); | |
27425 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27426 | if (!SWIG_IsOK(ecode6)) { | |
27427 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27428 | } | |
27429 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 27430 | { |
5c8c7dd3 | 27431 | (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
27432 | if (PyErr_Occurred()) SWIG_fail; |
27433 | } | |
27434 | resultobj = SWIG_Py_Void(); | |
27435 | return resultobj; | |
27436 | fail: | |
27437 | return NULL; | |
27438 | } | |
27439 | ||
27440 | ||
5c8c7dd3 | 27441 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27442 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27443 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27444 | wxDouble arg2 ; | |
27445 | wxDouble arg3 ; | |
27446 | wxDouble arg4 ; | |
27447 | wxDouble arg5 ; | |
70d7cb34 RD |
27448 | void *argp1 = 0 ; |
27449 | int res1 = 0 ; | |
5c8c7dd3 RD |
27450 | double val2 ; |
27451 | int ecode2 = 0 ; | |
27452 | double val3 ; | |
27453 | int ecode3 = 0 ; | |
27454 | double val4 ; | |
27455 | int ecode4 = 0 ; | |
27456 | double val5 ; | |
27457 | int ecode5 = 0 ; | |
27458 | PyObject * obj0 = 0 ; | |
27459 | PyObject * obj1 = 0 ; | |
27460 | PyObject * obj2 = 0 ; | |
27461 | PyObject * obj3 = 0 ; | |
27462 | PyObject * obj4 = 0 ; | |
27463 | char * kwnames[] = { | |
27464 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27465 | }; | |
70d7cb34 | 27466 | |
5c8c7dd3 RD |
27467 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27469 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27470 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27471 | } |
5c8c7dd3 RD |
27472 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27473 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27474 | if (!SWIG_IsOK(ecode2)) { | |
27475 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27476 | } | |
27477 | arg2 = static_cast< wxDouble >(val2); | |
27478 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27479 | if (!SWIG_IsOK(ecode3)) { | |
27480 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27481 | } | |
27482 | arg3 = static_cast< wxDouble >(val3); | |
27483 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27484 | if (!SWIG_IsOK(ecode4)) { | |
27485 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27486 | } | |
27487 | arg4 = static_cast< wxDouble >(val4); | |
27488 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27489 | if (!SWIG_IsOK(ecode5)) { | |
27490 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27491 | } | |
27492 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27493 | { |
5c8c7dd3 | 27494 | (arg1)->AddEllipse(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27495 | if (PyErr_Occurred()) SWIG_fail; |
27496 | } | |
27497 | resultobj = SWIG_Py_Void(); | |
27498 | return resultobj; | |
27499 | fail: | |
27500 | return NULL; | |
27501 | } | |
27502 | ||
27503 | ||
5c8c7dd3 | 27504 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27505 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27506 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27507 | wxDouble arg2 ; | |
27508 | wxDouble arg3 ; | |
27509 | wxDouble arg4 ; | |
27510 | wxDouble arg5 ; | |
27511 | wxDouble arg6 ; | |
70d7cb34 RD |
27512 | void *argp1 = 0 ; |
27513 | int res1 = 0 ; | |
5c8c7dd3 RD |
27514 | double val2 ; |
27515 | int ecode2 = 0 ; | |
27516 | double val3 ; | |
27517 | int ecode3 = 0 ; | |
27518 | double val4 ; | |
27519 | int ecode4 = 0 ; | |
27520 | double val5 ; | |
27521 | int ecode5 = 0 ; | |
27522 | double val6 ; | |
27523 | int ecode6 = 0 ; | |
70d7cb34 RD |
27524 | PyObject * obj0 = 0 ; |
27525 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27526 | PyObject * obj2 = 0 ; |
27527 | PyObject * obj3 = 0 ; | |
27528 | PyObject * obj4 = 0 ; | |
27529 | PyObject * obj5 = 0 ; | |
70d7cb34 | 27530 | char * kwnames[] = { |
5c8c7dd3 | 27531 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
70d7cb34 RD |
27532 | }; |
27533 | ||
5c8c7dd3 RD |
27534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
27535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27536 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27538 | } |
5c8c7dd3 RD |
27539 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27540 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27541 | if (!SWIG_IsOK(ecode2)) { | |
27542 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27543 | } | |
27544 | arg2 = static_cast< wxDouble >(val2); | |
27545 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27546 | if (!SWIG_IsOK(ecode3)) { | |
27547 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27548 | } | |
27549 | arg3 = static_cast< wxDouble >(val3); | |
27550 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27551 | if (!SWIG_IsOK(ecode4)) { | |
27552 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27553 | } | |
27554 | arg4 = static_cast< wxDouble >(val4); | |
27555 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27556 | if (!SWIG_IsOK(ecode5)) { | |
27557 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27558 | } | |
27559 | arg5 = static_cast< wxDouble >(val5); | |
27560 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27561 | if (!SWIG_IsOK(ecode6)) { | |
27562 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27563 | } | |
27564 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 27565 | { |
5c8c7dd3 | 27566 | (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
27567 | if (PyErr_Occurred()) SWIG_fail; |
27568 | } | |
5c8c7dd3 | 27569 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27570 | return resultobj; |
27571 | fail: | |
27572 | return NULL; | |
27573 | } | |
27574 | ||
27575 | ||
5c8c7dd3 | 27576 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 27577 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27578 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27579 | void *result = 0 ; | |
70d7cb34 RD |
27580 | void *argp1 = 0 ; |
27581 | int res1 = 0 ; | |
27582 | PyObject *swig_obj[1] ; | |
27583 | ||
27584 | if (!args) SWIG_fail; | |
27585 | swig_obj[0] = args; | |
5c8c7dd3 | 27586 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
70d7cb34 | 27587 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27589 | } |
5c8c7dd3 | 27590 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 27591 | { |
5c8c7dd3 | 27592 | result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath(); |
70d7cb34 RD |
27593 | if (PyErr_Occurred()) SWIG_fail; |
27594 | } | |
5c8c7dd3 | 27595 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); |
70d7cb34 RD |
27596 | return resultobj; |
27597 | fail: | |
27598 | return NULL; | |
27599 | } | |
27600 | ||
27601 | ||
5c8c7dd3 | 27602 | SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27603 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27604 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27605 | void *arg2 = (void *) 0 ; | |
70d7cb34 RD |
27606 | void *argp1 = 0 ; |
27607 | int res1 = 0 ; | |
5c8c7dd3 | 27608 | int res2 ; |
70d7cb34 RD |
27609 | PyObject * obj0 = 0 ; |
27610 | PyObject * obj1 = 0 ; | |
70d7cb34 | 27611 | char * kwnames[] = { |
5c8c7dd3 | 27612 | (char *) "self",(char *) "p", NULL |
70d7cb34 RD |
27613 | }; |
27614 | ||
5c8c7dd3 RD |
27615 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail; |
27616 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27617 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 RD |
27618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
27619 | } | |
27620 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27621 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
27622 | if (!SWIG_IsOK(res2)) { | |
27623 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'"); | |
70d7cb34 | 27624 | } |
70d7cb34 | 27625 | { |
5c8c7dd3 | 27626 | ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2); |
70d7cb34 RD |
27627 | if (PyErr_Occurred()) SWIG_fail; |
27628 | } | |
27629 | resultobj = SWIG_Py_Void(); | |
27630 | return resultobj; | |
27631 | fail: | |
27632 | return NULL; | |
27633 | } | |
27634 | ||
27635 | ||
5c8c7dd3 | 27636 | SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27637 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27638 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27639 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
27640 | void *argp1 = 0 ; |
27641 | int res1 = 0 ; | |
5c8c7dd3 RD |
27642 | void *argp2 = 0 ; |
27643 | int res2 = 0 ; | |
70d7cb34 RD |
27644 | PyObject * obj0 = 0 ; |
27645 | PyObject * obj1 = 0 ; | |
70d7cb34 | 27646 | char * kwnames[] = { |
5c8c7dd3 | 27647 | (char *) "self",(char *) "matrix", NULL |
70d7cb34 RD |
27648 | }; |
27649 | ||
5c8c7dd3 RD |
27650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail; |
27651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27652 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27654 | } |
5c8c7dd3 RD |
27655 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27656 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
27657 | if (!SWIG_IsOK(res2)) { | |
27658 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27659 | } | |
27660 | if (!argp2) { | |
27661 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
27662 | } | |
27663 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 27664 | { |
5c8c7dd3 | 27665 | (arg1)->Transform((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
27666 | if (PyErr_Occurred()) SWIG_fail; |
27667 | } | |
27668 | resultobj = SWIG_Py_Void(); | |
27669 | return resultobj; | |
27670 | fail: | |
27671 | return NULL; | |
27672 | } | |
27673 | ||
27674 | ||
5c8c7dd3 | 27675 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 27676 | PyObject *resultobj = 0; |
5c8c7dd3 | 27677 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
4fe9ce47 | 27678 | wxRect2D result; |
70d7cb34 RD |
27679 | void *argp1 = 0 ; |
27680 | int res1 = 0 ; | |
5c8c7dd3 | 27681 | PyObject *swig_obj[1] ; |
70d7cb34 | 27682 | |
5c8c7dd3 RD |
27683 | if (!args) SWIG_fail; |
27684 | swig_obj[0] = args; | |
27685 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27686 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27688 | } |
5c8c7dd3 | 27689 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 27690 | { |
5c8c7dd3 | 27691 | result = ((wxGraphicsPath const *)arg1)->GetBox(); |
70d7cb34 RD |
27692 | if (PyErr_Occurred()) SWIG_fail; |
27693 | } | |
4fe9ce47 | 27694 | resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
27695 | return resultobj; |
27696 | fail: | |
27697 | return NULL; | |
27698 | } | |
27699 | ||
27700 | ||
5c8c7dd3 | 27701 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 27702 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27703 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27704 | wxDouble arg2 ; | |
27705 | wxDouble arg3 ; | |
27706 | int arg4 = (int) wxODDEVEN_RULE ; | |
27707 | bool result; | |
70d7cb34 RD |
27708 | void *argp1 = 0 ; |
27709 | int res1 = 0 ; | |
5c8c7dd3 RD |
27710 | double val2 ; |
27711 | int ecode2 = 0 ; | |
27712 | double val3 ; | |
27713 | int ecode3 = 0 ; | |
27714 | int val4 ; | |
27715 | int ecode4 = 0 ; | |
70d7cb34 | 27716 | |
5c8c7dd3 RD |
27717 | if ((nobjs < 3) || (nobjs > 4)) SWIG_fail; |
27718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27719 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27721 | } |
5c8c7dd3 RD |
27722 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27723 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
27724 | if (!SWIG_IsOK(ecode2)) { | |
27725 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27726 | } | |
27727 | arg2 = static_cast< wxDouble >(val2); | |
27728 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
27729 | if (!SWIG_IsOK(ecode3)) { | |
27730 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27731 | } | |
27732 | arg3 = static_cast< wxDouble >(val3); | |
27733 | if (swig_obj[3]) { | |
27734 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
27735 | if (!SWIG_IsOK(ecode4)) { | |
27736 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'"); | |
27737 | } | |
27738 | arg4 = static_cast< int >(val4); | |
70d7cb34 RD |
27739 | } |
27740 | { | |
5c8c7dd3 | 27741 | result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4); |
70d7cb34 RD |
27742 | if (PyErr_Occurred()) SWIG_fail; |
27743 | } | |
5c8c7dd3 RD |
27744 | { |
27745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
27746 | } |
27747 | return resultobj; | |
27748 | fail: | |
27749 | return NULL; | |
27750 | } | |
27751 | ||
27752 | ||
5c8c7dd3 | 27753 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 27754 | PyObject *resultobj = 0; |
5c8c7dd3 | 27755 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
4fe9ce47 | 27756 | wxPoint2D *arg2 = 0 ; |
5c8c7dd3 RD |
27757 | int arg3 = (int) wxODDEVEN_RULE ; |
27758 | bool result; | |
70d7cb34 RD |
27759 | void *argp1 = 0 ; |
27760 | int res1 = 0 ; | |
4fe9ce47 | 27761 | wxPoint2D temp2 ; |
5c8c7dd3 RD |
27762 | int val3 ; |
27763 | int ecode3 = 0 ; | |
70d7cb34 | 27764 | |
5c8c7dd3 RD |
27765 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
27766 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27767 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 27769 | } |
5c8c7dd3 | 27770 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
4fe9ce47 RD |
27771 | { |
27772 | arg2 = &temp2; | |
27773 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
5c8c7dd3 | 27774 | } |
5c8c7dd3 RD |
27775 | if (swig_obj[2]) { |
27776 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
27777 | if (!SWIG_IsOK(ecode3)) { | |
27778 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'"); | |
27779 | } | |
27780 | arg3 = static_cast< int >(val3); | |
70d7cb34 RD |
27781 | } |
27782 | { | |
4fe9ce47 | 27783 | result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3); |
70d7cb34 RD |
27784 | if (PyErr_Occurred()) SWIG_fail; |
27785 | } | |
5c8c7dd3 RD |
27786 | { |
27787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
27788 | } |
27789 | return resultobj; | |
27790 | fail: | |
27791 | return NULL; | |
27792 | } | |
27793 | ||
27794 | ||
5c8c7dd3 RD |
27795 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) { |
27796 | int argc; | |
27797 | PyObject *argv[5]; | |
70d7cb34 | 27798 | |
5c8c7dd3 RD |
27799 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail; |
27800 | --argc; | |
27801 | if ((argc >= 2) && (argc <= 3)) { | |
27802 | int _v = 0; | |
27803 | { | |
4fe9ce47 RD |
27804 | { |
27805 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2); | |
27806 | } | |
5c8c7dd3 RD |
27807 | } |
27808 | if (!_v) goto check_1; | |
27809 | if (argc > 2) { | |
27810 | { | |
27811 | { | |
27812 | int res = SWIG_AsVal_int(argv[2], NULL); | |
27813 | _v = SWIG_CheckState(res); | |
27814 | } | |
27815 | } | |
27816 | if (!_v) goto check_1; | |
27817 | } | |
27818 | return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv); | |
70d7cb34 | 27819 | } |
5c8c7dd3 RD |
27820 | check_1: |
27821 | ||
27822 | if ((argc >= 3) && (argc <= 4)) { | |
27823 | return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv); | |
70d7cb34 | 27824 | } |
5c8c7dd3 | 27825 | |
70d7cb34 | 27826 | fail: |
5c8c7dd3 | 27827 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'"); |
70d7cb34 RD |
27828 | return NULL; |
27829 | } | |
27830 | ||
27831 | ||
5c8c7dd3 | 27832 | SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
27833 | PyObject *obj; |
27834 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5c8c7dd3 | 27835 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj)); |
70d7cb34 RD |
27836 | return SWIG_Py_Void(); |
27837 | } | |
27838 | ||
5c8c7dd3 RD |
27839 | SWIGINTERN int NullGraphicsPen_set(PyObject *) { |
27840 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only."); | |
27841 | return 1; | |
27842 | } | |
27843 | ||
27844 | ||
27845 | SWIGINTERN PyObject *NullGraphicsPen_get(void) { | |
27846 | PyObject *pyobj = 0; | |
27847 | ||
27848 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 ); | |
27849 | return pyobj; | |
27850 | } | |
27851 | ||
27852 | ||
27853 | SWIGINTERN int NullGraphicsBrush_set(PyObject *) { | |
27854 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only."); | |
27855 | return 1; | |
27856 | } | |
27857 | ||
27858 | ||
27859 | SWIGINTERN PyObject *NullGraphicsBrush_get(void) { | |
27860 | PyObject *pyobj = 0; | |
27861 | ||
27862 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 ); | |
27863 | return pyobj; | |
27864 | } | |
27865 | ||
27866 | ||
27867 | SWIGINTERN int NullGraphicsFont_set(PyObject *) { | |
27868 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only."); | |
27869 | return 1; | |
27870 | } | |
27871 | ||
27872 | ||
27873 | SWIGINTERN PyObject *NullGraphicsFont_get(void) { | |
27874 | PyObject *pyobj = 0; | |
27875 | ||
27876 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 ); | |
27877 | return pyobj; | |
27878 | } | |
27879 | ||
27880 | ||
27881 | SWIGINTERN int NullGraphicsMatrix_set(PyObject *) { | |
27882 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only."); | |
27883 | return 1; | |
27884 | } | |
27885 | ||
27886 | ||
27887 | SWIGINTERN PyObject *NullGraphicsMatrix_get(void) { | |
27888 | PyObject *pyobj = 0; | |
27889 | ||
27890 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 ); | |
27891 | return pyobj; | |
27892 | } | |
27893 | ||
27894 | ||
27895 | SWIGINTERN int NullGraphicsPath_set(PyObject *) { | |
27896 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only."); | |
27897 | return 1; | |
27898 | } | |
27899 | ||
27900 | ||
27901 | SWIGINTERN PyObject *NullGraphicsPath_get(void) { | |
27902 | PyObject *pyobj = 0; | |
27903 | ||
27904 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 ); | |
27905 | return pyobj; | |
27906 | } | |
27907 | ||
27908 | ||
70d7cb34 RD |
27909 | SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27910 | PyObject *resultobj = 0; | |
27911 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27912 | void *argp1 = 0 ; | |
27913 | int res1 = 0 ; | |
27914 | PyObject *swig_obj[1] ; | |
27915 | ||
27916 | if (!args) SWIG_fail; | |
27917 | swig_obj[0] = args; | |
27918 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 ); | |
27919 | if (!SWIG_IsOK(res1)) { | |
27920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27921 | } | |
27922 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27923 | { | |
27924 | delete arg1; | |
27925 | ||
27926 | if (PyErr_Occurred()) SWIG_fail; | |
27927 | } | |
27928 | resultobj = SWIG_Py_Void(); | |
27929 | return resultobj; | |
27930 | fail: | |
27931 | return NULL; | |
27932 | } | |
27933 | ||
27934 | ||
27935 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27936 | PyObject *resultobj = 0; | |
27937 | wxWindowDC *arg1 = 0 ; | |
27938 | wxGraphicsContext *result = 0 ; | |
27939 | void *argp1 = 0 ; | |
27940 | int res1 = 0 ; | |
27941 | ||
27942 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
27943 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
27944 | if (!SWIG_IsOK(res1)) { | |
27945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27946 | } | |
27947 | if (!argp1) { | |
27948 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27949 | } | |
27950 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
27951 | { | |
27952 | result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1); | |
27953 | if (PyErr_Occurred()) SWIG_fail; | |
27954 | } | |
27955 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27956 | return resultobj; | |
27957 | fail: | |
27958 | return NULL; | |
27959 | } | |
27960 | ||
27961 | ||
27962 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27963 | PyObject *resultobj = 0; | |
27964 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27965 | wxGraphicsContext *result = 0 ; | |
27966 | void *argp1 = 0 ; | |
27967 | int res1 = 0 ; | |
27968 | ||
27969 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
27970 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27971 | if (!SWIG_IsOK(res1)) { | |
27972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
27973 | } | |
27974 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
27975 | { | |
27976 | result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1); | |
27977 | if (PyErr_Occurred()) SWIG_fail; | |
27978 | } | |
27979 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
27980 | return resultobj; | |
27981 | fail: | |
27982 | return NULL; | |
27983 | } | |
27984 | ||
27985 | ||
27986 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) { | |
27987 | int argc; | |
27988 | PyObject *argv[2]; | |
27989 | ||
27990 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail; | |
27991 | --argc; | |
27992 | if (argc == 1) { | |
27993 | int _v = 0; | |
27994 | { | |
27995 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
27996 | _v = SWIG_CheckState(res); | |
27997 | } | |
27998 | if (!_v) goto check_1; | |
27999 | return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv); | |
28000 | } | |
28001 | check_1: | |
28002 | ||
28003 | if (argc == 1) { | |
28004 | return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv); | |
28005 | } | |
28006 | ||
28007 | fail: | |
28008 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'"); | |
28009 | return NULL; | |
28010 | } | |
28011 | ||
28012 | ||
f89238b9 RD |
28013 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28014 | PyObject *resultobj = 0; | |
28015 | wxGraphicsContext *result = 0 ; | |
28016 | ||
28017 | if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail; | |
28018 | { | |
28019 | result = (wxGraphicsContext *)wxGraphicsContext::Create(); | |
28020 | if (PyErr_Occurred()) SWIG_fail; | |
28021 | } | |
28022 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28023 | return resultobj; | |
28024 | fail: | |
28025 | return NULL; | |
28026 | } | |
28027 | ||
28028 | ||
70d7cb34 RD |
28029 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28030 | PyObject *resultobj = 0; | |
28031 | void *arg1 = (void *) 0 ; | |
28032 | wxGraphicsContext *result = 0 ; | |
28033 | int res1 ; | |
28034 | PyObject * obj0 = 0 ; | |
28035 | char * kwnames[] = { | |
28036 | (char *) "context", NULL | |
28037 | }; | |
28038 | ||
28039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail; | |
28040 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
28041 | if (!SWIG_IsOK(res1)) { | |
28042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'"); | |
28043 | } | |
28044 | { | |
28045 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1); | |
28046 | if (PyErr_Occurred()) SWIG_fail; | |
28047 | } | |
28048 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28049 | return resultobj; | |
28050 | fail: | |
28051 | return NULL; | |
28052 | } | |
28053 | ||
28054 | ||
28055 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28056 | PyObject *resultobj = 0; | |
28057 | void *arg1 = (void *) 0 ; | |
28058 | wxGraphicsContext *result = 0 ; | |
28059 | int res1 ; | |
28060 | PyObject * obj0 = 0 ; | |
28061 | char * kwnames[] = { | |
28062 | (char *) "window", NULL | |
28063 | }; | |
28064 | ||
28065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail; | |
28066 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
28067 | if (!SWIG_IsOK(res1)) { | |
28068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'"); | |
28069 | } | |
28070 | { | |
28071 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1); | |
28072 | if (PyErr_Occurred()) SWIG_fail; | |
28073 | } | |
28074 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28075 | return resultobj; | |
28076 | fail: | |
28077 | return NULL; | |
28078 | } | |
28079 | ||
28080 | ||
28081 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28082 | PyObject *resultobj = 0; | |
28083 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 28084 | wxGraphicsPath result; |
70d7cb34 RD |
28085 | void *argp1 = 0 ; |
28086 | int res1 = 0 ; | |
28087 | PyObject *swig_obj[1] ; | |
28088 | ||
28089 | if (!args) SWIG_fail; | |
28090 | swig_obj[0] = args; | |
28091 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28092 | if (!SWIG_IsOK(res1)) { | |
28093 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28094 | } | |
28095 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28096 | { | |
5c8c7dd3 | 28097 | result = (arg1)->CreatePath(); |
70d7cb34 RD |
28098 | if (PyErr_Occurred()) SWIG_fail; |
28099 | } | |
5c8c7dd3 | 28100 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28101 | return resultobj; |
28102 | fail: | |
28103 | return NULL; | |
28104 | } | |
28105 | ||
28106 | ||
70d7cb34 | 28107 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28108 | PyObject *resultobj = 0; |
70d7cb34 RD |
28109 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28110 | wxPen *arg2 = 0 ; | |
28111 | wxGraphicsPen result; | |
72ef6efb RD |
28112 | void *argp1 = 0 ; |
28113 | int res1 = 0 ; | |
70d7cb34 RD |
28114 | void *argp2 = 0 ; |
28115 | int res2 = 0 ; | |
72ef6efb RD |
28116 | PyObject * obj0 = 0 ; |
28117 | PyObject * obj1 = 0 ; | |
72ef6efb | 28118 | char * kwnames[] = { |
70d7cb34 | 28119 | (char *) "self",(char *) "pen", NULL |
72ef6efb RD |
28120 | }; |
28121 | ||
70d7cb34 RD |
28122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; |
28123 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28124 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28126 | } |
70d7cb34 RD |
28127 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28128 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
28129 | if (!SWIG_IsOK(res2)) { | |
28130 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28131 | } | |
28132 | if (!argp2) { | |
28133 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28134 | } | |
28135 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
72ef6efb | 28136 | { |
70d7cb34 | 28137 | result = (arg1)->CreatePen((wxPen const &)*arg2); |
72ef6efb RD |
28138 | if (PyErr_Occurred()) SWIG_fail; |
28139 | } | |
70d7cb34 | 28140 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28141 | return resultobj; |
28142 | fail: | |
28143 | return NULL; | |
28144 | } | |
28145 | ||
28146 | ||
70d7cb34 | 28147 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28148 | PyObject *resultobj = 0; |
70d7cb34 RD |
28149 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28150 | wxBrush *arg2 = 0 ; | |
28151 | wxGraphicsBrush result; | |
72ef6efb RD |
28152 | void *argp1 = 0 ; |
28153 | int res1 = 0 ; | |
70d7cb34 RD |
28154 | void *argp2 = 0 ; |
28155 | int res2 = 0 ; | |
72ef6efb RD |
28156 | PyObject * obj0 = 0 ; |
28157 | PyObject * obj1 = 0 ; | |
72ef6efb | 28158 | char * kwnames[] = { |
70d7cb34 | 28159 | (char *) "self",(char *) "brush", NULL |
72ef6efb RD |
28160 | }; |
28161 | ||
70d7cb34 RD |
28162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; |
28163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28164 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28166 | } |
70d7cb34 RD |
28167 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28168 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
28169 | if (!SWIG_IsOK(res2)) { | |
28170 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28171 | } | |
28172 | if (!argp2) { | |
28173 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28174 | } | |
28175 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
72ef6efb | 28176 | { |
70d7cb34 | 28177 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); |
72ef6efb RD |
28178 | if (PyErr_Occurred()) SWIG_fail; |
28179 | } | |
70d7cb34 | 28180 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28181 | return resultobj; |
28182 | fail: | |
28183 | return NULL; | |
28184 | } | |
28185 | ||
28186 | ||
70d7cb34 | 28187 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28188 | PyObject *resultobj = 0; |
70d7cb34 | 28189 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
28190 | wxDouble arg2 ; |
28191 | wxDouble arg3 ; | |
28192 | wxDouble arg4 ; | |
28193 | wxDouble arg5 ; | |
70d7cb34 RD |
28194 | wxColour *arg6 = 0 ; |
28195 | wxColour *arg7 = 0 ; | |
28196 | wxGraphicsBrush result; | |
72ef6efb RD |
28197 | void *argp1 = 0 ; |
28198 | int res1 = 0 ; | |
28199 | double val2 ; | |
28200 | int ecode2 = 0 ; | |
28201 | double val3 ; | |
28202 | int ecode3 = 0 ; | |
28203 | double val4 ; | |
28204 | int ecode4 = 0 ; | |
28205 | double val5 ; | |
28206 | int ecode5 = 0 ; | |
70d7cb34 RD |
28207 | wxColour temp6 ; |
28208 | wxColour temp7 ; | |
72ef6efb RD |
28209 | PyObject * obj0 = 0 ; |
28210 | PyObject * obj1 = 0 ; | |
28211 | PyObject * obj2 = 0 ; | |
28212 | PyObject * obj3 = 0 ; | |
28213 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
28214 | PyObject * obj5 = 0 ; |
28215 | PyObject * obj6 = 0 ; | |
72ef6efb | 28216 | char * kwnames[] = { |
70d7cb34 | 28217 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
28218 | }; |
28219 | ||
70d7cb34 RD |
28220 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
28221 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28222 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28224 | } |
70d7cb34 | 28225 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
28226 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
28227 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 28228 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
28229 | } |
28230 | arg2 = static_cast< wxDouble >(val2); | |
28231 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28232 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 28233 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28234 | } |
28235 | arg3 = static_cast< wxDouble >(val3); | |
28236 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28237 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 28238 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
28239 | } |
28240 | arg4 = static_cast< wxDouble >(val4); | |
28241 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28242 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 28243 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
28244 | } |
28245 | arg5 = static_cast< wxDouble >(val5); | |
28246 | { | |
70d7cb34 RD |
28247 | arg6 = &temp6; |
28248 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
72ef6efb | 28249 | } |
70d7cb34 RD |
28250 | { |
28251 | arg7 = &temp7; | |
28252 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
72ef6efb | 28253 | } |
72ef6efb | 28254 | { |
70d7cb34 | 28255 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); |
72ef6efb RD |
28256 | if (PyErr_Occurred()) SWIG_fail; |
28257 | } | |
70d7cb34 | 28258 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28259 | return resultobj; |
28260 | fail: | |
28261 | return NULL; | |
28262 | } | |
28263 | ||
28264 | ||
70d7cb34 | 28265 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28266 | PyObject *resultobj = 0; |
70d7cb34 | 28267 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
28268 | wxDouble arg2 ; |
28269 | wxDouble arg3 ; | |
28270 | wxDouble arg4 ; | |
28271 | wxDouble arg5 ; | |
28272 | wxDouble arg6 ; | |
70d7cb34 RD |
28273 | wxColour *arg7 = 0 ; |
28274 | wxColour *arg8 = 0 ; | |
28275 | wxGraphicsBrush result; | |
72ef6efb RD |
28276 | void *argp1 = 0 ; |
28277 | int res1 = 0 ; | |
28278 | double val2 ; | |
28279 | int ecode2 = 0 ; | |
28280 | double val3 ; | |
28281 | int ecode3 = 0 ; | |
28282 | double val4 ; | |
28283 | int ecode4 = 0 ; | |
28284 | double val5 ; | |
28285 | int ecode5 = 0 ; | |
28286 | double val6 ; | |
28287 | int ecode6 = 0 ; | |
70d7cb34 RD |
28288 | wxColour temp7 ; |
28289 | wxColour temp8 ; | |
72ef6efb RD |
28290 | PyObject * obj0 = 0 ; |
28291 | PyObject * obj1 = 0 ; | |
28292 | PyObject * obj2 = 0 ; | |
28293 | PyObject * obj3 = 0 ; | |
28294 | PyObject * obj4 = 0 ; | |
28295 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
28296 | PyObject * obj6 = 0 ; |
28297 | PyObject * obj7 = 0 ; | |
72ef6efb | 28298 | char * kwnames[] = { |
70d7cb34 | 28299 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
28300 | }; |
28301 | ||
70d7cb34 RD |
28302 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
28303 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28304 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28306 | } |
70d7cb34 | 28307 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
28308 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
28309 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 28310 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
28311 | } |
28312 | arg2 = static_cast< wxDouble >(val2); | |
28313 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28314 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 28315 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28316 | } |
28317 | arg3 = static_cast< wxDouble >(val3); | |
28318 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28319 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 28320 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
28321 | } |
28322 | arg4 = static_cast< wxDouble >(val4); | |
28323 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28324 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 28325 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
28326 | } |
28327 | arg5 = static_cast< wxDouble >(val5); | |
28328 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28329 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 28330 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
28331 | } |
28332 | arg6 = static_cast< wxDouble >(val6); | |
28333 | { | |
70d7cb34 RD |
28334 | arg7 = &temp7; |
28335 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
28336 | } | |
28337 | { | |
28338 | arg8 = &temp8; | |
28339 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
28340 | } | |
28341 | { | |
28342 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
28343 | if (PyErr_Occurred()) SWIG_fail; |
28344 | } | |
70d7cb34 | 28345 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28346 | return resultobj; |
28347 | fail: | |
28348 | return NULL; | |
28349 | } | |
28350 | ||
28351 | ||
70d7cb34 | 28352 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28353 | PyObject *resultobj = 0; |
28354 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 RD |
28355 | wxFont *arg2 = 0 ; |
28356 | wxColour const &arg3_defvalue = *wxBLACK ; | |
28357 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
28358 | wxGraphicsFont result; | |
72ef6efb RD |
28359 | void *argp1 = 0 ; |
28360 | int res1 = 0 ; | |
70d7cb34 RD |
28361 | void *argp2 = 0 ; |
28362 | int res2 = 0 ; | |
28363 | wxColour temp3 ; | |
28364 | PyObject * obj0 = 0 ; | |
28365 | PyObject * obj1 = 0 ; | |
28366 | PyObject * obj2 = 0 ; | |
28367 | char * kwnames[] = { | |
28368 | (char *) "self",(char *) "font",(char *) "col", NULL | |
28369 | }; | |
72ef6efb | 28370 | |
70d7cb34 RD |
28371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
28372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28373 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28375 | } |
28376 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
28377 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
28378 | if (!SWIG_IsOK(res2)) { | |
28379 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 28380 | } |
70d7cb34 RD |
28381 | if (!argp2) { |
28382 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 28383 | } |
70d7cb34 RD |
28384 | arg2 = reinterpret_cast< wxFont * >(argp2); |
28385 | if (obj2) { | |
28386 | { | |
28387 | arg3 = &temp3; | |
28388 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
28389 | } | |
72ef6efb | 28390 | } |
72ef6efb | 28391 | { |
70d7cb34 | 28392 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
28393 | if (PyErr_Occurred()) SWIG_fail; |
28394 | } | |
70d7cb34 | 28395 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28396 | return resultobj; |
28397 | fail: | |
28398 | return NULL; | |
28399 | } | |
28400 | ||
28401 | ||
70d7cb34 | 28402 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0a27f394 | 28403 | PyObject *resultobj = 0; |
70d7cb34 RD |
28404 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28405 | wxDouble arg2 = (wxDouble) 1.0 ; | |
28406 | wxDouble arg3 = (wxDouble) 0.0 ; | |
28407 | wxDouble arg4 = (wxDouble) 0.0 ; | |
28408 | wxDouble arg5 = (wxDouble) 1.0 ; | |
28409 | wxDouble arg6 = (wxDouble) 0.0 ; | |
28410 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 28411 | wxGraphicsMatrix result; |
0a27f394 RD |
28412 | void *argp1 = 0 ; |
28413 | int res1 = 0 ; | |
70d7cb34 RD |
28414 | double val2 ; |
28415 | int ecode2 = 0 ; | |
28416 | double val3 ; | |
28417 | int ecode3 = 0 ; | |
28418 | double val4 ; | |
28419 | int ecode4 = 0 ; | |
28420 | double val5 ; | |
28421 | int ecode5 = 0 ; | |
28422 | double val6 ; | |
28423 | int ecode6 = 0 ; | |
28424 | double val7 ; | |
28425 | int ecode7 = 0 ; | |
28426 | PyObject * obj0 = 0 ; | |
28427 | PyObject * obj1 = 0 ; | |
28428 | PyObject * obj2 = 0 ; | |
28429 | PyObject * obj3 = 0 ; | |
28430 | PyObject * obj4 = 0 ; | |
28431 | PyObject * obj5 = 0 ; | |
28432 | PyObject * obj6 = 0 ; | |
28433 | char * kwnames[] = { | |
28434 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
28435 | }; | |
0a27f394 | 28436 | |
70d7cb34 RD |
28437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
28438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
0a27f394 | 28439 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
0a27f394 | 28441 | } |
70d7cb34 RD |
28442 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28443 | if (obj1) { | |
28444 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28445 | if (!SWIG_IsOK(ecode2)) { | |
28446 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28447 | } | |
28448 | arg2 = static_cast< wxDouble >(val2); | |
0a27f394 | 28449 | } |
70d7cb34 RD |
28450 | if (obj2) { |
28451 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28452 | if (!SWIG_IsOK(ecode3)) { | |
28453 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28454 | } | |
28455 | arg3 = static_cast< wxDouble >(val3); | |
0a27f394 | 28456 | } |
70d7cb34 RD |
28457 | if (obj3) { |
28458 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28459 | if (!SWIG_IsOK(ecode4)) { | |
28460 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28461 | } | |
28462 | arg4 = static_cast< wxDouble >(val4); | |
0a27f394 | 28463 | } |
70d7cb34 RD |
28464 | if (obj4) { |
28465 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28466 | if (!SWIG_IsOK(ecode5)) { | |
28467 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28468 | } | |
28469 | arg5 = static_cast< wxDouble >(val5); | |
0a27f394 | 28470 | } |
70d7cb34 RD |
28471 | if (obj5) { |
28472 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28473 | if (!SWIG_IsOK(ecode6)) { | |
28474 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
28475 | } | |
28476 | arg6 = static_cast< wxDouble >(val6); | |
0a27f394 | 28477 | } |
70d7cb34 RD |
28478 | if (obj6) { |
28479 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
28480 | if (!SWIG_IsOK(ecode7)) { | |
28481 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
28482 | } | |
28483 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 28484 | } |
72ef6efb | 28485 | { |
5c8c7dd3 | 28486 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
28487 | if (PyErr_Occurred()) SWIG_fail; |
28488 | } | |
5c8c7dd3 | 28489 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28490 | return resultobj; |
28491 | fail: | |
28492 | return NULL; | |
28493 | } | |
28494 | ||
28495 | ||
28496 | SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28497 | PyObject *resultobj = 0; | |
28498 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28499 | void *argp1 = 0 ; | |
28500 | int res1 = 0 ; | |
28501 | PyObject *swig_obj[1] ; | |
28502 | ||
28503 | if (!args) SWIG_fail; | |
28504 | swig_obj[0] = args; | |
28505 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28506 | if (!SWIG_IsOK(res1)) { | |
28507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28508 | } | |
28509 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28510 | { | |
72ef6efb | 28511 | (arg1)->PushState(); |
72ef6efb RD |
28512 | if (PyErr_Occurred()) SWIG_fail; |
28513 | } | |
28514 | resultobj = SWIG_Py_Void(); | |
28515 | return resultobj; | |
28516 | fail: | |
28517 | return NULL; | |
28518 | } | |
28519 | ||
28520 | ||
28521 | SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28522 | PyObject *resultobj = 0; | |
28523 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28524 | void *argp1 = 0 ; | |
28525 | int res1 = 0 ; | |
28526 | PyObject *swig_obj[1] ; | |
28527 | ||
28528 | if (!args) SWIG_fail; | |
28529 | swig_obj[0] = args; | |
28530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28531 | if (!SWIG_IsOK(res1)) { | |
28532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28533 | } | |
28534 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28535 | { | |
72ef6efb | 28536 | (arg1)->PopState(); |
72ef6efb RD |
28537 | if (PyErr_Occurred()) SWIG_fail; |
28538 | } | |
28539 | resultobj = SWIG_Py_Void(); | |
28540 | return resultobj; | |
28541 | fail: | |
28542 | return NULL; | |
28543 | } | |
28544 | ||
28545 | ||
0a27f394 | 28546 | SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28547 | PyObject *resultobj = 0; |
28548 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28549 | wxRegion *arg2 = 0 ; | |
28550 | void *argp1 = 0 ; | |
28551 | int res1 = 0 ; | |
28552 | void *argp2 = 0 ; | |
28553 | int res2 = 0 ; | |
28554 | PyObject * obj0 = 0 ; | |
28555 | PyObject * obj1 = 0 ; | |
28556 | char * kwnames[] = { | |
28557 | (char *) "self",(char *) "region", NULL | |
28558 | }; | |
28559 | ||
0a27f394 | 28560 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
28561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
28562 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 28563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28564 | } |
28565 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28566 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
28567 | if (!SWIG_IsOK(res2)) { | |
0a27f394 | 28568 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
28569 | } |
28570 | if (!argp2) { | |
0a27f394 | 28571 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
28572 | } |
28573 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
28574 | { | |
72ef6efb | 28575 | (arg1)->Clip((wxRegion const &)*arg2); |
72ef6efb RD |
28576 | if (PyErr_Occurred()) SWIG_fail; |
28577 | } | |
28578 | resultobj = SWIG_Py_Void(); | |
28579 | return resultobj; | |
28580 | fail: | |
28581 | return NULL; | |
28582 | } | |
28583 | ||
28584 | ||
0a27f394 RD |
28585 | SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28586 | PyObject *resultobj = 0; | |
28587 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28588 | wxDouble arg2 ; | |
28589 | wxDouble arg3 ; | |
28590 | wxDouble arg4 ; | |
28591 | wxDouble arg5 ; | |
28592 | void *argp1 = 0 ; | |
28593 | int res1 = 0 ; | |
28594 | double val2 ; | |
28595 | int ecode2 = 0 ; | |
28596 | double val3 ; | |
28597 | int ecode3 = 0 ; | |
28598 | double val4 ; | |
28599 | int ecode4 = 0 ; | |
28600 | double val5 ; | |
28601 | int ecode5 = 0 ; | |
28602 | PyObject * obj0 = 0 ; | |
28603 | PyObject * obj1 = 0 ; | |
28604 | PyObject * obj2 = 0 ; | |
28605 | PyObject * obj3 = 0 ; | |
28606 | PyObject * obj4 = 0 ; | |
28607 | char * kwnames[] = { | |
28608 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
28609 | }; | |
28610 | ||
28611 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
28612 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28613 | if (!SWIG_IsOK(res1)) { | |
28614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28615 | } | |
28616 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28617 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28618 | if (!SWIG_IsOK(ecode2)) { | |
28619 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28620 | } | |
28621 | arg2 = static_cast< wxDouble >(val2); | |
28622 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28623 | if (!SWIG_IsOK(ecode3)) { | |
28624 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28625 | } | |
28626 | arg3 = static_cast< wxDouble >(val3); | |
28627 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28628 | if (!SWIG_IsOK(ecode4)) { | |
28629 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28630 | } | |
28631 | arg4 = static_cast< wxDouble >(val4); | |
28632 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28633 | if (!SWIG_IsOK(ecode5)) { | |
28634 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28635 | } | |
28636 | arg5 = static_cast< wxDouble >(val5); | |
28637 | { | |
28638 | (arg1)->Clip(arg2,arg3,arg4,arg5); | |
28639 | if (PyErr_Occurred()) SWIG_fail; | |
28640 | } | |
28641 | resultobj = SWIG_Py_Void(); | |
28642 | return resultobj; | |
28643 | fail: | |
28644 | return NULL; | |
28645 | } | |
28646 | ||
28647 | ||
28648 | SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28649 | PyObject *resultobj = 0; | |
28650 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28651 | void *argp1 = 0 ; | |
28652 | int res1 = 0 ; | |
28653 | PyObject *swig_obj[1] ; | |
28654 | ||
28655 | if (!args) SWIG_fail; | |
28656 | swig_obj[0] = args; | |
28657 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28658 | if (!SWIG_IsOK(res1)) { | |
28659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28660 | } | |
28661 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28662 | { | |
28663 | (arg1)->ResetClip(); | |
28664 | if (PyErr_Occurred()) SWIG_fail; | |
28665 | } | |
28666 | resultobj = SWIG_Py_Void(); | |
28667 | return resultobj; | |
28668 | fail: | |
28669 | return NULL; | |
28670 | } | |
28671 | ||
28672 | ||
28673 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28674 | PyObject *resultobj = 0; | |
28675 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28676 | void *result = 0 ; | |
28677 | void *argp1 = 0 ; | |
28678 | int res1 = 0 ; | |
28679 | PyObject *swig_obj[1] ; | |
28680 | ||
28681 | if (!args) SWIG_fail; | |
28682 | swig_obj[0] = args; | |
28683 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28684 | if (!SWIG_IsOK(res1)) { | |
28685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28686 | } | |
28687 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28688 | { | |
28689 | result = (void *)(arg1)->GetNativeContext(); | |
28690 | if (PyErr_Occurred()) SWIG_fail; | |
28691 | } | |
28692 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
28693 | return resultobj; | |
28694 | fail: | |
28695 | return NULL; | |
28696 | } | |
28697 | ||
28698 | ||
c8aaaf9e RD |
28699 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28700 | PyObject *resultobj = 0; | |
28701 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28702 | int result; | |
28703 | void *argp1 = 0 ; | |
28704 | int res1 = 0 ; | |
28705 | PyObject *swig_obj[1] ; | |
28706 | ||
28707 | if (!args) SWIG_fail; | |
28708 | swig_obj[0] = args; | |
28709 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28710 | if (!SWIG_IsOK(res1)) { | |
28711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
28712 | } | |
28713 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28714 | { | |
28715 | result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction(); | |
28716 | if (PyErr_Occurred()) SWIG_fail; | |
28717 | } | |
28718 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28719 | return resultobj; | |
28720 | fail: | |
28721 | return NULL; | |
28722 | } | |
28723 | ||
28724 | ||
28725 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28726 | PyObject *resultobj = 0; | |
28727 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28728 | int arg2 ; | |
28729 | bool result; | |
28730 | void *argp1 = 0 ; | |
28731 | int res1 = 0 ; | |
28732 | int val2 ; | |
28733 | int ecode2 = 0 ; | |
28734 | PyObject * obj0 = 0 ; | |
28735 | PyObject * obj1 = 0 ; | |
28736 | char * kwnames[] = { | |
28737 | (char *) "self",(char *) "function", NULL | |
28738 | }; | |
28739 | ||
28740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
28741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28742 | if (!SWIG_IsOK(res1)) { | |
28743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28744 | } | |
28745 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28746 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28747 | if (!SWIG_IsOK(ecode2)) { | |
28748 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
28749 | } | |
28750 | arg2 = static_cast< int >(val2); | |
28751 | { | |
28752 | result = (bool)(arg1)->SetLogicalFunction(arg2); | |
28753 | if (PyErr_Occurred()) SWIG_fail; | |
28754 | } | |
28755 | { | |
28756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28757 | } | |
28758 | return resultobj; | |
28759 | fail: | |
28760 | return NULL; | |
28761 | } | |
28762 | ||
28763 | ||
72ef6efb RD |
28764 | SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28765 | PyObject *resultobj = 0; | |
28766 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28767 | wxDouble arg2 ; | |
28768 | wxDouble arg3 ; | |
28769 | void *argp1 = 0 ; | |
28770 | int res1 = 0 ; | |
28771 | double val2 ; | |
28772 | int ecode2 = 0 ; | |
28773 | double val3 ; | |
28774 | int ecode3 = 0 ; | |
28775 | PyObject * obj0 = 0 ; | |
28776 | PyObject * obj1 = 0 ; | |
28777 | PyObject * obj2 = 0 ; | |
28778 | char * kwnames[] = { | |
28779 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
28780 | }; | |
28781 | ||
28782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28784 | if (!SWIG_IsOK(res1)) { | |
28785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28786 | } | |
28787 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28788 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28789 | if (!SWIG_IsOK(ecode2)) { | |
28790 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28791 | } | |
28792 | arg2 = static_cast< wxDouble >(val2); | |
28793 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28794 | if (!SWIG_IsOK(ecode3)) { | |
28795 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28796 | } | |
28797 | arg3 = static_cast< wxDouble >(val3); | |
28798 | { | |
72ef6efb | 28799 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
28800 | if (PyErr_Occurred()) SWIG_fail; |
28801 | } | |
28802 | resultobj = SWIG_Py_Void(); | |
28803 | return resultobj; | |
28804 | fail: | |
28805 | return NULL; | |
28806 | } | |
28807 | ||
28808 | ||
28809 | SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28810 | PyObject *resultobj = 0; | |
28811 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28812 | wxDouble arg2 ; | |
28813 | wxDouble arg3 ; | |
28814 | void *argp1 = 0 ; | |
28815 | int res1 = 0 ; | |
28816 | double val2 ; | |
28817 | int ecode2 = 0 ; | |
28818 | double val3 ; | |
28819 | int ecode3 = 0 ; | |
28820 | PyObject * obj0 = 0 ; | |
28821 | PyObject * obj1 = 0 ; | |
28822 | PyObject * obj2 = 0 ; | |
28823 | char * kwnames[] = { | |
28824 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
28825 | }; | |
28826 | ||
28827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28829 | if (!SWIG_IsOK(res1)) { | |
28830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28831 | } | |
28832 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28833 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28834 | if (!SWIG_IsOK(ecode2)) { | |
28835 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28836 | } | |
28837 | arg2 = static_cast< wxDouble >(val2); | |
28838 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28839 | if (!SWIG_IsOK(ecode3)) { | |
28840 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28841 | } | |
28842 | arg3 = static_cast< wxDouble >(val3); | |
28843 | { | |
72ef6efb | 28844 | (arg1)->Scale(arg2,arg3); |
72ef6efb RD |
28845 | if (PyErr_Occurred()) SWIG_fail; |
28846 | } | |
28847 | resultobj = SWIG_Py_Void(); | |
28848 | return resultobj; | |
28849 | fail: | |
28850 | return NULL; | |
28851 | } | |
28852 | ||
28853 | ||
28854 | SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28855 | PyObject *resultobj = 0; | |
28856 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28857 | wxDouble arg2 ; | |
28858 | void *argp1 = 0 ; | |
28859 | int res1 = 0 ; | |
28860 | double val2 ; | |
28861 | int ecode2 = 0 ; | |
28862 | PyObject * obj0 = 0 ; | |
28863 | PyObject * obj1 = 0 ; | |
28864 | char * kwnames[] = { | |
28865 | (char *) "self",(char *) "angle", NULL | |
28866 | }; | |
28867 | ||
28868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; | |
28869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28870 | if (!SWIG_IsOK(res1)) { | |
28871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28872 | } | |
28873 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28874 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28875 | if (!SWIG_IsOK(ecode2)) { | |
28876 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28877 | } | |
28878 | arg2 = static_cast< wxDouble >(val2); | |
28879 | { | |
72ef6efb | 28880 | (arg1)->Rotate(arg2); |
72ef6efb RD |
28881 | if (PyErr_Occurred()) SWIG_fail; |
28882 | } | |
28883 | resultobj = SWIG_Py_Void(); | |
28884 | return resultobj; | |
28885 | fail: | |
28886 | return NULL; | |
28887 | } | |
28888 | ||
28889 | ||
5c8c7dd3 RD |
28890 | SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28891 | PyObject *resultobj = 0; | |
28892 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28893 | wxGraphicsMatrix *arg2 = 0 ; | |
28894 | void *argp1 = 0 ; | |
28895 | int res1 = 0 ; | |
28896 | void *argp2 = 0 ; | |
28897 | int res2 = 0 ; | |
28898 | PyObject * obj0 = 0 ; | |
28899 | PyObject * obj1 = 0 ; | |
28900 | char * kwnames[] = { | |
28901 | (char *) "self",(char *) "matrix", NULL | |
28902 | }; | |
28903 | ||
28904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
28905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28906 | if (!SWIG_IsOK(res1)) { | |
28907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28908 | } | |
28909 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28910 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28911 | if (!SWIG_IsOK(res2)) { | |
28912 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28913 | } | |
28914 | if (!argp2) { | |
28915 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28916 | } | |
28917 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
28918 | { | |
28919 | (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2); | |
28920 | if (PyErr_Occurred()) SWIG_fail; | |
28921 | } | |
28922 | resultobj = SWIG_Py_Void(); | |
28923 | return resultobj; | |
28924 | fail: | |
28925 | return NULL; | |
28926 | } | |
28927 | ||
28928 | ||
28929 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28930 | PyObject *resultobj = 0; | |
28931 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28932 | wxGraphicsMatrix *arg2 = 0 ; | |
28933 | void *argp1 = 0 ; | |
28934 | int res1 = 0 ; | |
28935 | void *argp2 = 0 ; | |
28936 | int res2 = 0 ; | |
28937 | PyObject * obj0 = 0 ; | |
28938 | PyObject * obj1 = 0 ; | |
28939 | char * kwnames[] = { | |
28940 | (char *) "self",(char *) "matrix", NULL | |
28941 | }; | |
28942 | ||
28943 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
28944 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28945 | if (!SWIG_IsOK(res1)) { | |
28946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28947 | } | |
28948 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28949 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28950 | if (!SWIG_IsOK(res2)) { | |
28951 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28952 | } | |
28953 | if (!argp2) { | |
28954 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28955 | } | |
28956 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
28957 | { | |
28958 | (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2); | |
28959 | if (PyErr_Occurred()) SWIG_fail; | |
28960 | } | |
28961 | resultobj = SWIG_Py_Void(); | |
28962 | return resultobj; | |
28963 | fail: | |
28964 | return NULL; | |
28965 | } | |
28966 | ||
28967 | ||
28968 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28969 | PyObject *resultobj = 0; | |
28970 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28971 | wxGraphicsMatrix result; | |
28972 | void *argp1 = 0 ; | |
28973 | int res1 = 0 ; | |
28974 | PyObject *swig_obj[1] ; | |
28975 | ||
28976 | if (!args) SWIG_fail; | |
28977 | swig_obj[0] = args; | |
28978 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28979 | if (!SWIG_IsOK(res1)) { | |
28980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
28981 | } | |
28982 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28983 | { | |
28984 | result = ((wxGraphicsContext const *)arg1)->GetTransform(); | |
28985 | if (PyErr_Occurred()) SWIG_fail; | |
28986 | } | |
28987 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); | |
28988 | return resultobj; | |
28989 | fail: | |
28990 | return NULL; | |
28991 | } | |
28992 | ||
28993 | ||
70d7cb34 RD |
28994 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
28995 | PyObject *resultobj = 0; | |
28996 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28997 | wxGraphicsPen *arg2 = 0 ; | |
28998 | void *argp1 = 0 ; | |
28999 | int res1 = 0 ; | |
29000 | void *argp2 = 0 ; | |
29001 | int res2 = 0 ; | |
29002 | ||
29003 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29004 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29005 | if (!SWIG_IsOK(res1)) { | |
29006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29007 | } | |
29008 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29009 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0); | |
29010 | if (!SWIG_IsOK(res2)) { | |
29011 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
29012 | } | |
29013 | if (!argp2) { | |
29014 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
29015 | } | |
29016 | arg2 = reinterpret_cast< wxGraphicsPen * >(argp2); | |
29017 | { | |
29018 | (arg1)->SetPen((wxGraphicsPen const &)*arg2); | |
29019 | if (PyErr_Occurred()) SWIG_fail; | |
29020 | } | |
29021 | resultobj = SWIG_Py_Void(); | |
29022 | return resultobj; | |
29023 | fail: | |
29024 | return NULL; | |
29025 | } | |
29026 | ||
29027 | ||
29028 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
29029 | PyObject *resultobj = 0; |
29030 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29031 | wxPen *arg2 = 0 ; | |
29032 | void *argp1 = 0 ; | |
29033 | int res1 = 0 ; | |
29034 | void *argp2 = 0 ; | |
29035 | int res2 = 0 ; | |
72ef6efb | 29036 | |
70d7cb34 RD |
29037 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29038 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29039 | if (!SWIG_IsOK(res1)) { |
29040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29041 | } | |
29042 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29043 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0); |
72ef6efb RD |
29044 | if (!SWIG_IsOK(res2)) { |
29045 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29046 | } | |
29047 | if (!argp2) { | |
29048 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29049 | } | |
29050 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
29051 | { | |
72ef6efb | 29052 | (arg1)->SetPen((wxPen const &)*arg2); |
72ef6efb RD |
29053 | if (PyErr_Occurred()) SWIG_fail; |
29054 | } | |
29055 | resultobj = SWIG_Py_Void(); | |
29056 | return resultobj; | |
29057 | fail: | |
29058 | return NULL; | |
29059 | } | |
29060 | ||
29061 | ||
70d7cb34 RD |
29062 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) { |
29063 | int argc; | |
29064 | PyObject *argv[3]; | |
29065 | ||
29066 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail; | |
29067 | --argc; | |
29068 | if (argc == 2) { | |
29069 | int _v = 0; | |
29070 | { | |
29071 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0); | |
29072 | _v = SWIG_CheckState(res); | |
29073 | } | |
29074 | if (!_v) goto check_1; | |
29075 | return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv); | |
29076 | } | |
29077 | check_1: | |
29078 | ||
29079 | if (argc == 2) { | |
29080 | return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv); | |
29081 | } | |
29082 | ||
29083 | fail: | |
29084 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'"); | |
29085 | return NULL; | |
29086 | } | |
29087 | ||
29088 | ||
29089 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29090 | PyObject *resultobj = 0; | |
29091 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29092 | wxGraphicsBrush *arg2 = 0 ; | |
29093 | void *argp1 = 0 ; | |
29094 | int res1 = 0 ; | |
29095 | void *argp2 = 0 ; | |
29096 | int res2 = 0 ; | |
29097 | ||
29098 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29100 | if (!SWIG_IsOK(res1)) { | |
29101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29102 | } | |
29103 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29104 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29105 | if (!SWIG_IsOK(res2)) { | |
29106 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
29107 | } | |
29108 | if (!argp2) { | |
29109 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
29110 | } | |
29111 | arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2); | |
29112 | { | |
29113 | (arg1)->SetBrush((wxGraphicsBrush const &)*arg2); | |
29114 | if (PyErr_Occurred()) SWIG_fail; | |
29115 | } | |
29116 | resultobj = SWIG_Py_Void(); | |
29117 | return resultobj; | |
29118 | fail: | |
29119 | return NULL; | |
29120 | } | |
29121 | ||
29122 | ||
29123 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
29124 | PyObject *resultobj = 0; |
29125 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29126 | wxBrush *arg2 = 0 ; | |
29127 | void *argp1 = 0 ; | |
29128 | int res1 = 0 ; | |
29129 | void *argp2 = 0 ; | |
29130 | int res2 = 0 ; | |
72ef6efb | 29131 | |
70d7cb34 RD |
29132 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29133 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29134 | if (!SWIG_IsOK(res1)) { |
29135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29136 | } | |
29137 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29138 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0); |
72ef6efb RD |
29139 | if (!SWIG_IsOK(res2)) { |
29140 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29141 | } | |
29142 | if (!argp2) { | |
29143 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29144 | } | |
29145 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
29146 | { | |
72ef6efb | 29147 | (arg1)->SetBrush((wxBrush const &)*arg2); |
72ef6efb RD |
29148 | if (PyErr_Occurred()) SWIG_fail; |
29149 | } | |
29150 | resultobj = SWIG_Py_Void(); | |
29151 | return resultobj; | |
29152 | fail: | |
29153 | return NULL; | |
29154 | } | |
29155 | ||
29156 | ||
70d7cb34 RD |
29157 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) { |
29158 | int argc; | |
29159 | PyObject *argv[3]; | |
72ef6efb | 29160 | |
70d7cb34 RD |
29161 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail; |
29162 | --argc; | |
29163 | if (argc == 2) { | |
29164 | int _v = 0; | |
29165 | { | |
29166 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0); | |
29167 | _v = SWIG_CheckState(res); | |
29168 | } | |
29169 | if (!_v) goto check_1; | |
29170 | return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv); | |
72ef6efb | 29171 | } |
70d7cb34 RD |
29172 | check_1: |
29173 | ||
29174 | if (argc == 2) { | |
29175 | return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv); | |
72ef6efb | 29176 | } |
70d7cb34 | 29177 | |
72ef6efb | 29178 | fail: |
70d7cb34 | 29179 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'"); |
72ef6efb RD |
29180 | return NULL; |
29181 | } | |
29182 | ||
29183 | ||
70d7cb34 | 29184 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
29185 | PyObject *resultobj = 0; |
29186 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 29187 | wxGraphicsFont *arg2 = 0 ; |
72ef6efb RD |
29188 | void *argp1 = 0 ; |
29189 | int res1 = 0 ; | |
70d7cb34 RD |
29190 | void *argp2 = 0 ; |
29191 | int res2 = 0 ; | |
72ef6efb | 29192 | |
70d7cb34 RD |
29193 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29194 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 29195 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29197 | } |
29198 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
29199 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0); |
29200 | if (!SWIG_IsOK(res2)) { | |
29201 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 29202 | } |
70d7cb34 RD |
29203 | if (!argp2) { |
29204 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 29205 | } |
70d7cb34 | 29206 | arg2 = reinterpret_cast< wxGraphicsFont * >(argp2); |
72ef6efb | 29207 | { |
70d7cb34 | 29208 | (arg1)->SetFont((wxGraphicsFont const &)*arg2); |
72ef6efb RD |
29209 | if (PyErr_Occurred()) SWIG_fail; |
29210 | } | |
29211 | resultobj = SWIG_Py_Void(); | |
29212 | return resultobj; | |
29213 | fail: | |
29214 | return NULL; | |
29215 | } | |
29216 | ||
29217 | ||
70d7cb34 | 29218 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
29219 | PyObject *resultobj = 0; |
29220 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29221 | wxFont *arg2 = 0 ; | |
70d7cb34 RD |
29222 | wxColour const &arg3_defvalue = *wxBLACK ; |
29223 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
72ef6efb RD |
29224 | void *argp1 = 0 ; |
29225 | int res1 = 0 ; | |
29226 | void *argp2 = 0 ; | |
29227 | int res2 = 0 ; | |
70d7cb34 | 29228 | wxColour temp3 ; |
72ef6efb | 29229 | |
70d7cb34 RD |
29230 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
29231 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29232 | if (!SWIG_IsOK(res1)) { |
29233 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29234 | } | |
29235 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29236 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
72ef6efb RD |
29237 | if (!SWIG_IsOK(res2)) { |
29238 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
29239 | } | |
29240 | if (!argp2) { | |
29241 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
29242 | } | |
29243 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
70d7cb34 RD |
29244 | if (swig_obj[2]) { |
29245 | { | |
29246 | arg3 = &temp3; | |
29247 | if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail; | |
29248 | } | |
29249 | } | |
72ef6efb | 29250 | { |
70d7cb34 | 29251 | (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
29252 | if (PyErr_Occurred()) SWIG_fail; |
29253 | } | |
29254 | resultobj = SWIG_Py_Void(); | |
29255 | return resultobj; | |
29256 | fail: | |
29257 | return NULL; | |
29258 | } | |
29259 | ||
29260 | ||
70d7cb34 RD |
29261 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) { |
29262 | int argc; | |
29263 | PyObject *argv[4]; | |
72ef6efb | 29264 | |
70d7cb34 RD |
29265 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail; |
29266 | --argc; | |
29267 | if (argc == 2) { | |
29268 | int _v = 0; | |
29269 | { | |
29270 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0); | |
29271 | _v = SWIG_CheckState(res); | |
29272 | } | |
29273 | if (!_v) goto check_1; | |
29274 | return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv); | |
72ef6efb | 29275 | } |
70d7cb34 RD |
29276 | check_1: |
29277 | ||
29278 | if ((argc >= 2) && (argc <= 3)) { | |
29279 | return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv); | |
72ef6efb | 29280 | } |
70d7cb34 | 29281 | |
72ef6efb | 29282 | fail: |
70d7cb34 | 29283 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'"); |
72ef6efb RD |
29284 | return NULL; |
29285 | } | |
29286 | ||
29287 | ||
29288 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29289 | PyObject *resultobj = 0; | |
29290 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29291 | wxGraphicsPath *arg2 = 0 ; |
72ef6efb RD |
29292 | void *argp1 = 0 ; |
29293 | int res1 = 0 ; | |
29294 | void *argp2 = 0 ; | |
29295 | int res2 = 0 ; | |
29296 | PyObject * obj0 = 0 ; | |
29297 | PyObject * obj1 = 0 ; | |
29298 | char * kwnames[] = { | |
29299 | (char *) "self",(char *) "path", NULL | |
29300 | }; | |
29301 | ||
29302 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
29303 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29304 | if (!SWIG_IsOK(res1)) { | |
29305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29306 | } | |
29307 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29308 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29309 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29310 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29311 | } | |
29312 | if (!argp2) { | |
29313 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29314 | } |
29315 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29316 | { | |
5c8c7dd3 | 29317 | (arg1)->StrokePath((wxGraphicsPath const &)*arg2); |
72ef6efb RD |
29318 | if (PyErr_Occurred()) SWIG_fail; |
29319 | } | |
29320 | resultobj = SWIG_Py_Void(); | |
29321 | return resultobj; | |
29322 | fail: | |
29323 | return NULL; | |
29324 | } | |
29325 | ||
29326 | ||
29327 | SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29328 | PyObject *resultobj = 0; | |
29329 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 RD |
29330 | wxGraphicsPath *arg2 = 0 ; |
29331 | int arg3 = (int) wxODDEVEN_RULE ; | |
72ef6efb RD |
29332 | void *argp1 = 0 ; |
29333 | int res1 = 0 ; | |
29334 | void *argp2 = 0 ; | |
29335 | int res2 = 0 ; | |
29336 | int val3 ; | |
29337 | int ecode3 = 0 ; | |
29338 | PyObject * obj0 = 0 ; | |
29339 | PyObject * obj1 = 0 ; | |
29340 | PyObject * obj2 = 0 ; | |
29341 | char * kwnames[] = { | |
29342 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
29343 | }; | |
29344 | ||
29345 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29346 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29347 | if (!SWIG_IsOK(res1)) { | |
29348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29349 | } | |
29350 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29351 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29352 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29353 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29354 | } | |
29355 | if (!argp2) { | |
29356 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29357 | } |
29358 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29359 | if (obj2) { | |
29360 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29361 | if (!SWIG_IsOK(ecode3)) { | |
29362 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'"); | |
29363 | } | |
29364 | arg3 = static_cast< int >(val3); | |
29365 | } | |
29366 | { | |
5c8c7dd3 | 29367 | (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
29368 | if (PyErr_Occurred()) SWIG_fail; |
29369 | } | |
29370 | resultobj = SWIG_Py_Void(); | |
29371 | return resultobj; | |
29372 | fail: | |
29373 | return NULL; | |
29374 | } | |
29375 | ||
29376 | ||
29377 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29378 | PyObject *resultobj = 0; | |
29379 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 RD |
29380 | wxGraphicsPath *arg2 = 0 ; |
29381 | int arg3 = (int) wxODDEVEN_RULE ; | |
72ef6efb RD |
29382 | void *argp1 = 0 ; |
29383 | int res1 = 0 ; | |
29384 | void *argp2 = 0 ; | |
29385 | int res2 = 0 ; | |
29386 | int val3 ; | |
29387 | int ecode3 = 0 ; | |
29388 | PyObject * obj0 = 0 ; | |
29389 | PyObject * obj1 = 0 ; | |
29390 | PyObject * obj2 = 0 ; | |
29391 | char * kwnames[] = { | |
29392 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
29393 | }; | |
29394 | ||
29395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29397 | if (!SWIG_IsOK(res1)) { | |
29398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29399 | } | |
29400 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29401 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29402 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29403 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29404 | } | |
29405 | if (!argp2) { | |
29406 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29407 | } |
29408 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29409 | if (obj2) { | |
29410 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29411 | if (!SWIG_IsOK(ecode3)) { | |
29412 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'"); | |
29413 | } | |
29414 | arg3 = static_cast< int >(val3); | |
29415 | } | |
29416 | { | |
5c8c7dd3 | 29417 | (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
29418 | if (PyErr_Occurred()) SWIG_fail; |
29419 | } | |
29420 | resultobj = SWIG_Py_Void(); | |
29421 | return resultobj; | |
29422 | fail: | |
29423 | return NULL; | |
29424 | } | |
29425 | ||
29426 | ||
b39fe951 | 29427 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29428 | PyObject *resultobj = 0; |
29429 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29430 | wxString *arg2 = 0 ; | |
29431 | wxDouble arg3 ; | |
29432 | wxDouble arg4 ; | |
f89238b9 RD |
29433 | wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ; |
29434 | wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ; | |
72ef6efb RD |
29435 | void *argp1 = 0 ; |
29436 | int res1 = 0 ; | |
29437 | bool temp2 = false ; | |
29438 | double val3 ; | |
29439 | int ecode3 = 0 ; | |
29440 | double val4 ; | |
29441 | int ecode4 = 0 ; | |
f89238b9 RD |
29442 | void *argp5 = 0 ; |
29443 | int res5 = 0 ; | |
b39fe951 RD |
29444 | PyObject * obj0 = 0 ; |
29445 | PyObject * obj1 = 0 ; | |
29446 | PyObject * obj2 = 0 ; | |
29447 | PyObject * obj3 = 0 ; | |
f89238b9 | 29448 | PyObject * obj4 = 0 ; |
b39fe951 | 29449 | char * kwnames[] = { |
f89238b9 | 29450 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL |
b39fe951 | 29451 | }; |
72ef6efb | 29452 | |
f89238b9 | 29453 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
b39fe951 | 29454 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb RD |
29455 | if (!SWIG_IsOK(res1)) { |
29456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29457 | } | |
29458 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29459 | { | |
b39fe951 | 29460 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
29461 | if (arg2 == NULL) SWIG_fail; |
29462 | temp2 = true; | |
29463 | } | |
b39fe951 | 29464 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb RD |
29465 | if (!SWIG_IsOK(ecode3)) { |
29466 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29467 | } | |
29468 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 29469 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb RD |
29470 | if (!SWIG_IsOK(ecode4)) { |
29471 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29472 | } | |
29473 | arg4 = static_cast< wxDouble >(val4); | |
f89238b9 RD |
29474 | if (obj4) { |
29475 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29476 | if (!SWIG_IsOK(res5)) { | |
29477 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29478 | } | |
29479 | if (!argp5) { | |
29480 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29481 | } | |
29482 | arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5); | |
29483 | } | |
72ef6efb | 29484 | { |
f89238b9 | 29485 | wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5); |
72ef6efb RD |
29486 | if (PyErr_Occurred()) SWIG_fail; |
29487 | } | |
29488 | resultobj = SWIG_Py_Void(); | |
29489 | { | |
29490 | if (temp2) | |
29491 | delete arg2; | |
29492 | } | |
29493 | return resultobj; | |
29494 | fail: | |
29495 | { | |
29496 | if (temp2) | |
29497 | delete arg2; | |
29498 | } | |
29499 | return NULL; | |
29500 | } | |
29501 | ||
29502 | ||
b39fe951 | 29503 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29504 | PyObject *resultobj = 0; |
29505 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29506 | wxString *arg2 = 0 ; | |
29507 | wxDouble arg3 ; | |
29508 | wxDouble arg4 ; | |
29509 | wxDouble arg5 ; | |
f89238b9 RD |
29510 | wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ; |
29511 | wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ; | |
72ef6efb RD |
29512 | void *argp1 = 0 ; |
29513 | int res1 = 0 ; | |
29514 | bool temp2 = false ; | |
29515 | double val3 ; | |
29516 | int ecode3 = 0 ; | |
29517 | double val4 ; | |
29518 | int ecode4 = 0 ; | |
29519 | double val5 ; | |
29520 | int ecode5 = 0 ; | |
f89238b9 RD |
29521 | void *argp6 = 0 ; |
29522 | int res6 = 0 ; | |
b39fe951 RD |
29523 | PyObject * obj0 = 0 ; |
29524 | PyObject * obj1 = 0 ; | |
29525 | PyObject * obj2 = 0 ; | |
29526 | PyObject * obj3 = 0 ; | |
29527 | PyObject * obj4 = 0 ; | |
f89238b9 | 29528 | PyObject * obj5 = 0 ; |
b39fe951 | 29529 | char * kwnames[] = { |
f89238b9 | 29530 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL |
b39fe951 | 29531 | }; |
72ef6efb | 29532 | |
f89238b9 | 29533 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
b39fe951 | 29534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb | 29535 | if (!SWIG_IsOK(res1)) { |
b39fe951 | 29536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29537 | } |
29538 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29539 | { | |
b39fe951 | 29540 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
29541 | if (arg2 == NULL) SWIG_fail; |
29542 | temp2 = true; | |
29543 | } | |
b39fe951 | 29544 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 29545 | if (!SWIG_IsOK(ecode3)) { |
b39fe951 | 29546 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
29547 | } |
29548 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 29549 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb | 29550 | if (!SWIG_IsOK(ecode4)) { |
b39fe951 | 29551 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
29552 | } |
29553 | arg4 = static_cast< wxDouble >(val4); | |
b39fe951 | 29554 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
72ef6efb | 29555 | if (!SWIG_IsOK(ecode5)) { |
b39fe951 | 29556 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
29557 | } |
29558 | arg5 = static_cast< wxDouble >(val5); | |
f89238b9 RD |
29559 | if (obj5) { |
29560 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29561 | if (!SWIG_IsOK(res6)) { | |
29562 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
29563 | } | |
29564 | if (!argp6) { | |
29565 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
29566 | } | |
29567 | arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6); | |
29568 | } | |
72ef6efb | 29569 | { |
f89238b9 | 29570 | wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6); |
72ef6efb RD |
29571 | if (PyErr_Occurred()) SWIG_fail; |
29572 | } | |
29573 | resultobj = SWIG_Py_Void(); | |
29574 | { | |
29575 | if (temp2) | |
29576 | delete arg2; | |
29577 | } | |
29578 | return resultobj; | |
29579 | fail: | |
29580 | { | |
29581 | if (temp2) | |
29582 | delete arg2; | |
29583 | } | |
29584 | return NULL; | |
29585 | } | |
29586 | ||
29587 | ||
be68621e | 29588 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29589 | PyObject *resultobj = 0; |
29590 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29591 | wxString *arg2 = 0 ; | |
29592 | wxDouble *arg3 = (wxDouble *) 0 ; | |
29593 | wxDouble *arg4 = (wxDouble *) 0 ; | |
29594 | wxDouble *arg5 = (wxDouble *) 0 ; | |
29595 | wxDouble *arg6 = (wxDouble *) 0 ; | |
29596 | void *argp1 = 0 ; | |
29597 | int res1 = 0 ; | |
29598 | bool temp2 = false ; | |
29599 | wxDouble temp3 ; | |
29600 | int res3 = SWIG_TMPOBJ ; | |
29601 | wxDouble temp4 ; | |
29602 | int res4 = SWIG_TMPOBJ ; | |
29603 | wxDouble temp5 ; | |
29604 | int res5 = SWIG_TMPOBJ ; | |
29605 | wxDouble temp6 ; | |
29606 | int res6 = SWIG_TMPOBJ ; | |
29607 | PyObject * obj0 = 0 ; | |
29608 | PyObject * obj1 = 0 ; | |
29609 | char * kwnames[] = { | |
29610 | (char *) "self",(char *) "text", NULL | |
29611 | }; | |
29612 | ||
29613 | arg3 = &temp3; | |
29614 | arg4 = &temp4; | |
29615 | arg5 = &temp5; | |
29616 | arg6 = &temp6; | |
be68621e | 29617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
29618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29619 | if (!SWIG_IsOK(res1)) { | |
be68621e | 29620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
29621 | } |
29622 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29623 | { | |
29624 | arg2 = wxString_in_helper(obj1); | |
29625 | if (arg2 == NULL) SWIG_fail; | |
29626 | temp2 = true; | |
29627 | } | |
29628 | { | |
72ef6efb | 29629 | ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29630 | if (PyErr_Occurred()) SWIG_fail; |
29631 | } | |
29632 | resultobj = SWIG_Py_Void(); | |
29633 | if (SWIG_IsTmpObj(res3)) { | |
29634 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
29635 | } else { | |
29636 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29637 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
29638 | } | |
29639 | if (SWIG_IsTmpObj(res4)) { | |
29640 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
29641 | } else { | |
29642 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29643 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
29644 | } | |
29645 | if (SWIG_IsTmpObj(res5)) { | |
29646 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
29647 | } else { | |
29648 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29649 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
29650 | } | |
29651 | if (SWIG_IsTmpObj(res6)) { | |
29652 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
29653 | } else { | |
29654 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
29655 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
29656 | } | |
29657 | { | |
29658 | if (temp2) | |
29659 | delete arg2; | |
29660 | } | |
29661 | return resultobj; | |
29662 | fail: | |
29663 | { | |
29664 | if (temp2) | |
29665 | delete arg2; | |
29666 | } | |
29667 | return NULL; | |
29668 | } | |
29669 | ||
29670 | ||
be68621e RD |
29671 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29672 | PyObject *resultobj = 0; | |
29673 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29674 | wxString *arg2 = 0 ; | |
29675 | PyObject *result = 0 ; | |
29676 | void *argp1 = 0 ; | |
29677 | int res1 = 0 ; | |
29678 | bool temp2 = false ; | |
29679 | PyObject * obj0 = 0 ; | |
29680 | PyObject * obj1 = 0 ; | |
29681 | char * kwnames[] = { | |
29682 | (char *) "self",(char *) "text", NULL | |
29683 | }; | |
29684 | ||
29685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
29686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29687 | if (!SWIG_IsOK(res1)) { | |
29688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29689 | } | |
29690 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29691 | { | |
29692 | arg2 = wxString_in_helper(obj1); | |
29693 | if (arg2 == NULL) SWIG_fail; | |
29694 | temp2 = true; | |
29695 | } | |
29696 | { | |
29697 | result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2); | |
29698 | if (PyErr_Occurred()) SWIG_fail; | |
29699 | } | |
29700 | resultobj = result; | |
29701 | { | |
29702 | if (temp2) | |
29703 | delete arg2; | |
29704 | } | |
29705 | return resultobj; | |
29706 | fail: | |
29707 | { | |
29708 | if (temp2) | |
29709 | delete arg2; | |
29710 | } | |
29711 | return NULL; | |
29712 | } | |
29713 | ||
29714 | ||
72ef6efb RD |
29715 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29716 | PyObject *resultobj = 0; | |
29717 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29718 | wxString *arg2 = 0 ; | |
b39fe951 | 29719 | wxArrayDouble result; |
72ef6efb RD |
29720 | void *argp1 = 0 ; |
29721 | int res1 = 0 ; | |
29722 | bool temp2 = false ; | |
72ef6efb RD |
29723 | PyObject * obj0 = 0 ; |
29724 | PyObject * obj1 = 0 ; | |
72ef6efb | 29725 | char * kwnames[] = { |
b39fe951 | 29726 | (char *) "self",(char *) "text", NULL |
72ef6efb RD |
29727 | }; |
29728 | ||
b39fe951 | 29729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
29730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29731 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 29732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29733 | } |
29734 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29735 | { | |
29736 | arg2 = wxString_in_helper(obj1); | |
29737 | if (arg2 == NULL) SWIG_fail; | |
29738 | temp2 = true; | |
29739 | } | |
72ef6efb | 29740 | { |
b39fe951 | 29741 | result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
72ef6efb RD |
29742 | if (PyErr_Occurred()) SWIG_fail; |
29743 | } | |
b39fe951 RD |
29744 | { |
29745 | resultobj = wxArrayDouble2PyList_helper(result); | |
29746 | } | |
72ef6efb RD |
29747 | { |
29748 | if (temp2) | |
29749 | delete arg2; | |
29750 | } | |
29751 | return resultobj; | |
29752 | fail: | |
29753 | { | |
29754 | if (temp2) | |
29755 | delete arg2; | |
29756 | } | |
29757 | return NULL; | |
29758 | } | |
29759 | ||
29760 | ||
29761 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29762 | PyObject *resultobj = 0; | |
29763 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29764 | wxBitmap *arg2 = 0 ; | |
29765 | wxDouble arg3 ; | |
29766 | wxDouble arg4 ; | |
29767 | wxDouble arg5 ; | |
29768 | wxDouble arg6 ; | |
29769 | void *argp1 = 0 ; | |
29770 | int res1 = 0 ; | |
29771 | void *argp2 = 0 ; | |
29772 | int res2 = 0 ; | |
29773 | double val3 ; | |
29774 | int ecode3 = 0 ; | |
29775 | double val4 ; | |
29776 | int ecode4 = 0 ; | |
29777 | double val5 ; | |
29778 | int ecode5 = 0 ; | |
29779 | double val6 ; | |
29780 | int ecode6 = 0 ; | |
29781 | PyObject * obj0 = 0 ; | |
29782 | PyObject * obj1 = 0 ; | |
29783 | PyObject * obj2 = 0 ; | |
29784 | PyObject * obj3 = 0 ; | |
29785 | PyObject * obj4 = 0 ; | |
29786 | PyObject * obj5 = 0 ; | |
29787 | char * kwnames[] = { | |
29788 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29789 | }; | |
29790 | ||
29791 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29792 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29793 | if (!SWIG_IsOK(res1)) { | |
29794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29795 | } | |
29796 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29797 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
29798 | if (!SWIG_IsOK(res2)) { | |
29799 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
29800 | } | |
29801 | if (!argp2) { | |
29802 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
29803 | } | |
29804 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
29805 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29806 | if (!SWIG_IsOK(ecode3)) { | |
29807 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29808 | } | |
29809 | arg3 = static_cast< wxDouble >(val3); | |
29810 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29811 | if (!SWIG_IsOK(ecode4)) { | |
29812 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29813 | } | |
29814 | arg4 = static_cast< wxDouble >(val4); | |
29815 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29816 | if (!SWIG_IsOK(ecode5)) { | |
29817 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29818 | } | |
29819 | arg5 = static_cast< wxDouble >(val5); | |
29820 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29821 | if (!SWIG_IsOK(ecode6)) { | |
29822 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29823 | } | |
29824 | arg6 = static_cast< wxDouble >(val6); | |
29825 | { | |
72ef6efb | 29826 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
29827 | if (PyErr_Occurred()) SWIG_fail; |
29828 | } | |
29829 | resultobj = SWIG_Py_Void(); | |
29830 | return resultobj; | |
29831 | fail: | |
29832 | return NULL; | |
29833 | } | |
29834 | ||
29835 | ||
29836 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29837 | PyObject *resultobj = 0; | |
29838 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29839 | wxIcon *arg2 = 0 ; | |
29840 | wxDouble arg3 ; | |
29841 | wxDouble arg4 ; | |
29842 | wxDouble arg5 ; | |
29843 | wxDouble arg6 ; | |
29844 | void *argp1 = 0 ; | |
29845 | int res1 = 0 ; | |
29846 | void *argp2 = 0 ; | |
29847 | int res2 = 0 ; | |
29848 | double val3 ; | |
29849 | int ecode3 = 0 ; | |
29850 | double val4 ; | |
29851 | int ecode4 = 0 ; | |
29852 | double val5 ; | |
29853 | int ecode5 = 0 ; | |
70d7cb34 RD |
29854 | double val6 ; |
29855 | int ecode6 = 0 ; | |
29856 | PyObject * obj0 = 0 ; | |
29857 | PyObject * obj1 = 0 ; | |
29858 | PyObject * obj2 = 0 ; | |
29859 | PyObject * obj3 = 0 ; | |
29860 | PyObject * obj4 = 0 ; | |
29861 | PyObject * obj5 = 0 ; | |
29862 | char * kwnames[] = { | |
29863 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29864 | }; | |
29865 | ||
29866 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29868 | if (!SWIG_IsOK(res1)) { | |
29869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29870 | } | |
29871 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29872 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
29873 | if (!SWIG_IsOK(res2)) { | |
29874 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
29875 | } | |
29876 | if (!argp2) { | |
29877 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
29878 | } | |
29879 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
29880 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29881 | if (!SWIG_IsOK(ecode3)) { | |
29882 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29883 | } | |
29884 | arg3 = static_cast< wxDouble >(val3); | |
29885 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29886 | if (!SWIG_IsOK(ecode4)) { | |
29887 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29888 | } | |
29889 | arg4 = static_cast< wxDouble >(val4); | |
29890 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29891 | if (!SWIG_IsOK(ecode5)) { | |
29892 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29893 | } | |
29894 | arg5 = static_cast< wxDouble >(val5); | |
29895 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29896 | if (!SWIG_IsOK(ecode6)) { | |
29897 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'"); | |
29898 | } | |
29899 | arg6 = static_cast< wxDouble >(val6); | |
29900 | { | |
29901 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6); | |
29902 | if (PyErr_Occurred()) SWIG_fail; | |
29903 | } | |
29904 | resultobj = SWIG_Py_Void(); | |
29905 | return resultobj; | |
29906 | fail: | |
29907 | return NULL; | |
29908 | } | |
29909 | ||
29910 | ||
29911 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29912 | PyObject *resultobj = 0; | |
29913 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29914 | wxDouble arg2 ; | |
29915 | wxDouble arg3 ; | |
29916 | wxDouble arg4 ; | |
29917 | wxDouble arg5 ; | |
29918 | void *argp1 = 0 ; | |
29919 | int res1 = 0 ; | |
29920 | double val2 ; | |
29921 | int ecode2 = 0 ; | |
29922 | double val3 ; | |
29923 | int ecode3 = 0 ; | |
29924 | double val4 ; | |
29925 | int ecode4 = 0 ; | |
29926 | double val5 ; | |
29927 | int ecode5 = 0 ; | |
29928 | PyObject * obj0 = 0 ; | |
29929 | PyObject * obj1 = 0 ; | |
29930 | PyObject * obj2 = 0 ; | |
29931 | PyObject * obj3 = 0 ; | |
29932 | PyObject * obj4 = 0 ; | |
29933 | char * kwnames[] = { | |
29934 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
29935 | }; | |
29936 | ||
29937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29939 | if (!SWIG_IsOK(res1)) { | |
29940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29941 | } | |
29942 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29943 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29944 | if (!SWIG_IsOK(ecode2)) { | |
29945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29946 | } | |
29947 | arg2 = static_cast< wxDouble >(val2); | |
29948 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29949 | if (!SWIG_IsOK(ecode3)) { | |
29950 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29951 | } | |
29952 | arg3 = static_cast< wxDouble >(val3); | |
29953 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29954 | if (!SWIG_IsOK(ecode4)) { | |
29955 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29956 | } | |
29957 | arg4 = static_cast< wxDouble >(val4); | |
29958 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29959 | if (!SWIG_IsOK(ecode5)) { | |
29960 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29961 | } | |
29962 | arg5 = static_cast< wxDouble >(val5); | |
29963 | { | |
29964 | (arg1)->StrokeLine(arg2,arg3,arg4,arg5); | |
29965 | if (PyErr_Occurred()) SWIG_fail; | |
29966 | } | |
29967 | resultobj = SWIG_Py_Void(); | |
29968 | return resultobj; | |
29969 | fail: | |
29970 | return NULL; | |
29971 | } | |
29972 | ||
29973 | ||
29974 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29975 | PyObject *resultobj = 0; | |
29976 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29977 | size_t arg2 ; | |
29978 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
29979 | void *argp1 = 0 ; | |
29980 | int res1 = 0 ; | |
29981 | PyObject * obj0 = 0 ; | |
29982 | PyObject * obj1 = 0 ; | |
29983 | char * kwnames[] = { | |
29984 | (char *) "self",(char *) "points", NULL | |
29985 | }; | |
29986 | ||
29987 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail; | |
29988 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29989 | if (!SWIG_IsOK(res1)) { | |
29990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29991 | } | |
29992 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29993 | { | |
29994 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
29995 | if (arg3 == NULL) SWIG_fail; | |
29996 | } | |
29997 | { | |
29998 | (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3); | |
29999 | if (PyErr_Occurred()) SWIG_fail; | |
30000 | } | |
30001 | resultobj = SWIG_Py_Void(); | |
30002 | { | |
30003 | if (arg3) delete [] arg3; | |
30004 | } | |
30005 | return resultobj; | |
30006 | fail: | |
30007 | { | |
30008 | if (arg3) delete [] arg3; | |
30009 | } | |
30010 | return NULL; | |
30011 | } | |
30012 | ||
30013 | ||
30014 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30015 | PyObject *resultobj = 0; | |
30016 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30017 | PyObject *arg2 = (PyObject *) 0 ; | |
30018 | PyObject *arg3 = (PyObject *) 0 ; | |
30019 | void *argp1 = 0 ; | |
30020 | int res1 = 0 ; | |
30021 | PyObject * obj0 = 0 ; | |
30022 | PyObject * obj1 = 0 ; | |
30023 | PyObject * obj2 = 0 ; | |
30024 | char * kwnames[] = { | |
30025 | (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL | |
30026 | }; | |
30027 | ||
30028 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30030 | if (!SWIG_IsOK(res1)) { | |
30031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30032 | } | |
30033 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30034 | arg2 = obj1; | |
30035 | arg3 = obj2; | |
30036 | { | |
30037 | wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3); | |
30038 | if (PyErr_Occurred()) SWIG_fail; | |
30039 | } | |
30040 | resultobj = SWIG_Py_Void(); | |
30041 | return resultobj; | |
30042 | fail: | |
30043 | return NULL; | |
30044 | } | |
30045 | ||
30046 | ||
30047 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30048 | PyObject *resultobj = 0; | |
30049 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30050 | size_t arg2 ; | |
30051 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
5c8c7dd3 | 30052 | int arg4 = (int) wxODDEVEN_RULE ; |
70d7cb34 RD |
30053 | void *argp1 = 0 ; |
30054 | int res1 = 0 ; | |
30055 | int val4 ; | |
30056 | int ecode4 = 0 ; | |
30057 | PyObject * obj0 = 0 ; | |
30058 | PyObject * obj1 = 0 ; | |
30059 | PyObject * obj2 = 0 ; | |
30060 | char * kwnames[] = { | |
30061 | (char *) "self",(char *) "points",(char *) "fillStyle", NULL | |
30062 | }; | |
30063 | ||
30064 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30065 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30066 | if (!SWIG_IsOK(res1)) { | |
30067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30068 | } | |
30069 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30070 | { | |
30071 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
30072 | if (arg3 == NULL) SWIG_fail; | |
30073 | } | |
30074 | if (obj2) { | |
30075 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
30076 | if (!SWIG_IsOK(ecode4)) { | |
30077 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
30078 | } | |
30079 | arg4 = static_cast< int >(val4); | |
30080 | } | |
30081 | { | |
30082 | (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4); | |
30083 | if (PyErr_Occurred()) SWIG_fail; | |
30084 | } | |
30085 | resultobj = SWIG_Py_Void(); | |
30086 | { | |
30087 | if (arg3) delete [] arg3; | |
30088 | } | |
30089 | return resultobj; | |
30090 | fail: | |
30091 | { | |
30092 | if (arg3) delete [] arg3; | |
30093 | } | |
30094 | return NULL; | |
30095 | } | |
30096 | ||
30097 | ||
30098 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30099 | PyObject *resultobj = 0; | |
30100 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30101 | wxDouble arg2 ; | |
30102 | wxDouble arg3 ; | |
30103 | wxDouble arg4 ; | |
30104 | wxDouble arg5 ; | |
30105 | void *argp1 = 0 ; | |
30106 | int res1 = 0 ; | |
30107 | double val2 ; | |
30108 | int ecode2 = 0 ; | |
30109 | double val3 ; | |
30110 | int ecode3 = 0 ; | |
30111 | double val4 ; | |
30112 | int ecode4 = 0 ; | |
30113 | double val5 ; | |
30114 | int ecode5 = 0 ; | |
30115 | PyObject * obj0 = 0 ; | |
30116 | PyObject * obj1 = 0 ; | |
30117 | PyObject * obj2 = 0 ; | |
30118 | PyObject * obj3 = 0 ; | |
30119 | PyObject * obj4 = 0 ; | |
30120 | char * kwnames[] = { | |
30121 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30122 | }; | |
30123 | ||
30124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30126 | if (!SWIG_IsOK(res1)) { | |
30127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30128 | } | |
30129 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30130 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30131 | if (!SWIG_IsOK(ecode2)) { | |
30132 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30133 | } | |
30134 | arg2 = static_cast< wxDouble >(val2); | |
30135 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30136 | if (!SWIG_IsOK(ecode3)) { | |
30137 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30138 | } | |
30139 | arg3 = static_cast< wxDouble >(val3); | |
30140 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30141 | if (!SWIG_IsOK(ecode4)) { | |
30142 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30143 | } | |
30144 | arg4 = static_cast< wxDouble >(val4); | |
30145 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30146 | if (!SWIG_IsOK(ecode5)) { | |
30147 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30148 | } | |
30149 | arg5 = static_cast< wxDouble >(val5); | |
30150 | { | |
30151 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
30152 | if (PyErr_Occurred()) SWIG_fail; | |
30153 | } | |
30154 | resultobj = SWIG_Py_Void(); | |
30155 | return resultobj; | |
30156 | fail: | |
30157 | return NULL; | |
30158 | } | |
30159 | ||
30160 | ||
30161 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30162 | PyObject *resultobj = 0; | |
30163 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30164 | wxDouble arg2 ; | |
30165 | wxDouble arg3 ; | |
30166 | wxDouble arg4 ; | |
30167 | wxDouble arg5 ; | |
30168 | void *argp1 = 0 ; | |
30169 | int res1 = 0 ; | |
30170 | double val2 ; | |
30171 | int ecode2 = 0 ; | |
30172 | double val3 ; | |
30173 | int ecode3 = 0 ; | |
30174 | double val4 ; | |
30175 | int ecode4 = 0 ; | |
30176 | double val5 ; | |
30177 | int ecode5 = 0 ; | |
72ef6efb RD |
30178 | PyObject * obj0 = 0 ; |
30179 | PyObject * obj1 = 0 ; | |
30180 | PyObject * obj2 = 0 ; | |
30181 | PyObject * obj3 = 0 ; | |
30182 | PyObject * obj4 = 0 ; | |
72ef6efb | 30183 | char * kwnames[] = { |
70d7cb34 | 30184 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
72ef6efb RD |
30185 | }; |
30186 | ||
70d7cb34 | 30187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
72ef6efb RD |
30188 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30189 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 30190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30191 | } |
30192 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
30193 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30194 | if (!SWIG_IsOK(ecode2)) { | |
30195 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30196 | } | |
30197 | arg2 = static_cast< wxDouble >(val2); | |
72ef6efb RD |
30198 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
30199 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30200 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30201 | } |
30202 | arg3 = static_cast< wxDouble >(val3); | |
30203 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30204 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30205 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30206 | } |
30207 | arg4 = static_cast< wxDouble >(val4); | |
30208 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30209 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30210 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30211 | } |
30212 | arg5 = static_cast< wxDouble >(val5); | |
72ef6efb | 30213 | { |
70d7cb34 | 30214 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
72ef6efb RD |
30215 | if (PyErr_Occurred()) SWIG_fail; |
30216 | } | |
30217 | resultobj = SWIG_Py_Void(); | |
30218 | return resultobj; | |
30219 | fail: | |
30220 | return NULL; | |
30221 | } | |
30222 | ||
30223 | ||
70d7cb34 | 30224 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
30225 | PyObject *resultobj = 0; |
30226 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30227 | wxDouble arg2 ; | |
30228 | wxDouble arg3 ; | |
30229 | wxDouble arg4 ; | |
30230 | wxDouble arg5 ; | |
70d7cb34 | 30231 | wxDouble arg6 ; |
72ef6efb RD |
30232 | void *argp1 = 0 ; |
30233 | int res1 = 0 ; | |
30234 | double val2 ; | |
30235 | int ecode2 = 0 ; | |
30236 | double val3 ; | |
30237 | int ecode3 = 0 ; | |
30238 | double val4 ; | |
30239 | int ecode4 = 0 ; | |
30240 | double val5 ; | |
30241 | int ecode5 = 0 ; | |
70d7cb34 RD |
30242 | double val6 ; |
30243 | int ecode6 = 0 ; | |
72ef6efb RD |
30244 | PyObject * obj0 = 0 ; |
30245 | PyObject * obj1 = 0 ; | |
30246 | PyObject * obj2 = 0 ; | |
30247 | PyObject * obj3 = 0 ; | |
30248 | PyObject * obj4 = 0 ; | |
70d7cb34 | 30249 | PyObject * obj5 = 0 ; |
72ef6efb | 30250 | char * kwnames[] = { |
70d7cb34 | 30251 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
72ef6efb RD |
30252 | }; |
30253 | ||
70d7cb34 | 30254 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
72ef6efb RD |
30255 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30256 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 30257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30258 | } |
30259 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30260 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30261 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30262 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30263 | } |
30264 | arg2 = static_cast< wxDouble >(val2); | |
30265 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30266 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30267 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30268 | } |
30269 | arg3 = static_cast< wxDouble >(val3); | |
30270 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30271 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30272 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30273 | } |
30274 | arg4 = static_cast< wxDouble >(val4); | |
30275 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30276 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30277 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30278 | } |
30279 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 RD |
30280 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
30281 | if (!SWIG_IsOK(ecode6)) { | |
30282 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30283 | } | |
30284 | arg6 = static_cast< wxDouble >(val6); | |
72ef6efb | 30285 | { |
70d7cb34 | 30286 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
30287 | if (PyErr_Occurred()) SWIG_fail; |
30288 | } | |
30289 | resultobj = SWIG_Py_Void(); | |
30290 | return resultobj; | |
30291 | fail: | |
30292 | return NULL; | |
30293 | } | |
30294 | ||
30295 | ||
70d7cb34 | 30296 | SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
30297 | PyObject *resultobj = 0; |
30298 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 30299 | bool result; |
72ef6efb RD |
30300 | void *argp1 = 0 ; |
30301 | int res1 = 0 ; | |
70d7cb34 | 30302 | PyObject *swig_obj[1] ; |
72ef6efb | 30303 | |
70d7cb34 RD |
30304 | if (!args) SWIG_fail; |
30305 | swig_obj[0] = args; | |
30306 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 30307 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
30309 | } |
30310 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 | 30311 | { |
70d7cb34 RD |
30312 | result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset(); |
30313 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb | 30314 | } |
72ef6efb | 30315 | { |
70d7cb34 RD |
30316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
30317 | } | |
30318 | return resultobj; | |
30319 | fail: | |
30320 | return NULL; | |
30321 | } | |
30322 | ||
30323 | ||
30324 | SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30325 | PyObject *obj; | |
30326 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30327 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj)); | |
30328 | return SWIG_Py_Void(); | |
30329 | } | |
30330 | ||
30331 | SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30332 | PyObject *resultobj = 0; | |
30333 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30334 | void *argp1 = 0 ; | |
30335 | int res1 = 0 ; | |
30336 | PyObject *swig_obj[1] ; | |
30337 | ||
30338 | if (!args) SWIG_fail; | |
30339 | swig_obj[0] = args; | |
30340 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 ); | |
30341 | if (!SWIG_IsOK(res1)) { | |
30342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30343 | } | |
30344 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30345 | { | |
30346 | delete arg1; | |
30347 | ||
72ef6efb RD |
30348 | if (PyErr_Occurred()) SWIG_fail; |
30349 | } | |
30350 | resultobj = SWIG_Py_Void(); | |
70d7cb34 RD |
30351 | return resultobj; |
30352 | fail: | |
30353 | return NULL; | |
30354 | } | |
30355 | ||
30356 | ||
30357 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30358 | PyObject *resultobj = 0; | |
30359 | wxGraphicsRenderer *result = 0 ; | |
30360 | ||
30361 | if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail; | |
b39fe951 | 30362 | { |
70d7cb34 RD |
30363 | result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer(); |
30364 | if (PyErr_Occurred()) SWIG_fail; | |
30365 | } | |
30366 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30367 | return resultobj; | |
30368 | fail: | |
30369 | return NULL; | |
30370 | } | |
30371 | ||
30372 | ||
30373 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30374 | PyObject *resultobj = 0; | |
30375 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30376 | wxWindowDC *arg2 = 0 ; | |
30377 | wxGraphicsContext *result = 0 ; | |
30378 | void *argp1 = 0 ; | |
30379 | int res1 = 0 ; | |
30380 | void *argp2 = 0 ; | |
30381 | int res2 = 0 ; | |
30382 | ||
30383 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30384 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30385 | if (!SWIG_IsOK(res1)) { | |
30386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30387 | } | |
30388 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30389 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
30390 | if (!SWIG_IsOK(res2)) { | |
30391 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
30392 | } | |
30393 | if (!argp2) { | |
30394 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
30395 | } | |
30396 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30397 | { | |
30398 | result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2); | |
30399 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 30400 | } |
70d7cb34 | 30401 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30402 | return resultobj; |
30403 | fail: | |
70d7cb34 RD |
30404 | return NULL; |
30405 | } | |
30406 | ||
30407 | ||
30408 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30409 | PyObject *resultobj = 0; | |
30410 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30411 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30412 | wxGraphicsContext *result = 0 ; | |
30413 | void *argp1 = 0 ; | |
30414 | int res1 = 0 ; | |
30415 | void *argp2 = 0 ; | |
30416 | int res2 = 0 ; | |
30417 | ||
30418 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30420 | if (!SWIG_IsOK(res1)) { | |
30421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30422 | } | |
30423 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30424 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30425 | if (!SWIG_IsOK(res2)) { | |
30426 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
30427 | } | |
30428 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
b39fe951 | 30429 | { |
70d7cb34 RD |
30430 | result = (wxGraphicsContext *)(arg1)->CreateContext(arg2); |
30431 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 30432 | } |
70d7cb34 RD |
30433 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
30434 | return resultobj; | |
30435 | fail: | |
72ef6efb RD |
30436 | return NULL; |
30437 | } | |
30438 | ||
30439 | ||
70d7cb34 RD |
30440 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) { |
30441 | int argc; | |
30442 | PyObject *argv[3]; | |
30443 | ||
30444 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail; | |
30445 | --argc; | |
30446 | if (argc == 2) { | |
30447 | int _v = 0; | |
30448 | { | |
30449 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0); | |
30450 | _v = SWIG_CheckState(res); | |
30451 | } | |
30452 | if (!_v) goto check_1; | |
30453 | return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv); | |
30454 | } | |
30455 | check_1: | |
30456 | ||
30457 | if (argc == 2) { | |
30458 | return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv); | |
30459 | } | |
30460 | ||
30461 | fail: | |
30462 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'"); | |
30463 | return NULL; | |
30464 | } | |
30465 | ||
30466 | ||
f89238b9 RD |
30467 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30468 | PyObject *resultobj = 0; | |
30469 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30470 | wxGraphicsContext *result = 0 ; | |
30471 | void *argp1 = 0 ; | |
30472 | int res1 = 0 ; | |
30473 | PyObject *swig_obj[1] ; | |
30474 | ||
30475 | if (!args) SWIG_fail; | |
30476 | swig_obj[0] = args; | |
30477 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30478 | if (!SWIG_IsOK(res1)) { | |
30479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30480 | } | |
30481 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30482 | { | |
30483 | result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext(); | |
30484 | if (PyErr_Occurred()) SWIG_fail; | |
30485 | } | |
30486 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30487 | return resultobj; | |
30488 | fail: | |
30489 | return NULL; | |
30490 | } | |
30491 | ||
30492 | ||
70d7cb34 | 30493 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30494 | PyObject *resultobj = 0; |
70d7cb34 RD |
30495 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30496 | void *arg2 = (void *) 0 ; | |
30497 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
30498 | void *argp1 = 0 ; |
30499 | int res1 = 0 ; | |
70d7cb34 | 30500 | int res2 ; |
b39fe951 RD |
30501 | PyObject * obj0 = 0 ; |
30502 | PyObject * obj1 = 0 ; | |
b39fe951 | 30503 | char * kwnames[] = { |
70d7cb34 | 30504 | (char *) "self",(char *) "context", NULL |
b39fe951 | 30505 | }; |
72ef6efb | 30506 | |
70d7cb34 RD |
30507 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail; |
30508 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30509 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
30510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
30511 | } | |
30512 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30513 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
30514 | if (!SWIG_IsOK(res2)) { | |
30515 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb | 30516 | } |
72ef6efb | 30517 | { |
70d7cb34 | 30518 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2); |
72ef6efb RD |
30519 | if (PyErr_Occurred()) SWIG_fail; |
30520 | } | |
70d7cb34 | 30521 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30522 | return resultobj; |
30523 | fail: | |
30524 | return NULL; | |
30525 | } | |
30526 | ||
30527 | ||
70d7cb34 | 30528 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30529 | PyObject *resultobj = 0; |
70d7cb34 RD |
30530 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30531 | void *arg2 = (void *) 0 ; | |
30532 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
30533 | void *argp1 = 0 ; |
30534 | int res1 = 0 ; | |
70d7cb34 | 30535 | int res2 ; |
72ef6efb RD |
30536 | PyObject * obj0 = 0 ; |
30537 | PyObject * obj1 = 0 ; | |
72ef6efb | 30538 | char * kwnames[] = { |
70d7cb34 | 30539 | (char *) "self",(char *) "window", NULL |
72ef6efb RD |
30540 | }; |
30541 | ||
70d7cb34 RD |
30542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail; |
30543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30544 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30546 | } |
70d7cb34 RD |
30547 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
30548 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
30549 | if (!SWIG_IsOK(res2)) { | |
30550 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb RD |
30551 | } |
30552 | { | |
70d7cb34 | 30553 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2); |
72ef6efb RD |
30554 | if (PyErr_Occurred()) SWIG_fail; |
30555 | } | |
70d7cb34 | 30556 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30557 | return resultobj; |
30558 | fail: | |
70d7cb34 RD |
30559 | return NULL; |
30560 | } | |
30561 | ||
30562 | ||
30563 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30564 | PyObject *resultobj = 0; | |
30565 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
5c8c7dd3 | 30566 | wxGraphicsPath result; |
70d7cb34 RD |
30567 | void *argp1 = 0 ; |
30568 | int res1 = 0 ; | |
30569 | PyObject *swig_obj[1] ; | |
30570 | ||
30571 | if (!args) SWIG_fail; | |
30572 | swig_obj[0] = args; | |
30573 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30574 | if (!SWIG_IsOK(res1)) { | |
30575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30576 | } | |
30577 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
b39fe951 | 30578 | { |
5c8c7dd3 | 30579 | result = (arg1)->CreatePath(); |
70d7cb34 | 30580 | if (PyErr_Occurred()) SWIG_fail; |
b39fe951 | 30581 | } |
5c8c7dd3 | 30582 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
30583 | return resultobj; |
30584 | fail: | |
72ef6efb RD |
30585 | return NULL; |
30586 | } | |
30587 | ||
30588 | ||
70d7cb34 | 30589 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30590 | PyObject *resultobj = 0; |
70d7cb34 RD |
30591 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30592 | wxDouble arg2 = (wxDouble) 1.0 ; | |
30593 | wxDouble arg3 = (wxDouble) 0.0 ; | |
30594 | wxDouble arg4 = (wxDouble) 0.0 ; | |
30595 | wxDouble arg5 = (wxDouble) 1.0 ; | |
30596 | wxDouble arg6 = (wxDouble) 0.0 ; | |
30597 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 30598 | wxGraphicsMatrix result; |
72ef6efb RD |
30599 | void *argp1 = 0 ; |
30600 | int res1 = 0 ; | |
30601 | double val2 ; | |
30602 | int ecode2 = 0 ; | |
30603 | double val3 ; | |
30604 | int ecode3 = 0 ; | |
30605 | double val4 ; | |
30606 | int ecode4 = 0 ; | |
30607 | double val5 ; | |
30608 | int ecode5 = 0 ; | |
70d7cb34 RD |
30609 | double val6 ; |
30610 | int ecode6 = 0 ; | |
30611 | double val7 ; | |
30612 | int ecode7 = 0 ; | |
72ef6efb RD |
30613 | PyObject * obj0 = 0 ; |
30614 | PyObject * obj1 = 0 ; | |
30615 | PyObject * obj2 = 0 ; | |
30616 | PyObject * obj3 = 0 ; | |
30617 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
30618 | PyObject * obj5 = 0 ; |
30619 | PyObject * obj6 = 0 ; | |
72ef6efb | 30620 | char * kwnames[] = { |
70d7cb34 | 30621 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL |
72ef6efb RD |
30622 | }; |
30623 | ||
70d7cb34 RD |
30624 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
30625 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30626 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
30627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
30628 | } | |
30629 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30630 | if (obj1) { | |
30631 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30632 | if (!SWIG_IsOK(ecode2)) { | |
30633 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30634 | } | |
30635 | arg2 = static_cast< wxDouble >(val2); | |
30636 | } | |
30637 | if (obj2) { | |
30638 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30639 | if (!SWIG_IsOK(ecode3)) { | |
30640 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30641 | } | |
30642 | arg3 = static_cast< wxDouble >(val3); | |
30643 | } | |
30644 | if (obj3) { | |
30645 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30646 | if (!SWIG_IsOK(ecode4)) { | |
30647 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30648 | } | |
30649 | arg4 = static_cast< wxDouble >(val4); | |
30650 | } | |
30651 | if (obj4) { | |
30652 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30653 | if (!SWIG_IsOK(ecode5)) { | |
30654 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30655 | } | |
30656 | arg5 = static_cast< wxDouble >(val5); | |
30657 | } | |
30658 | if (obj5) { | |
30659 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30660 | if (!SWIG_IsOK(ecode6)) { | |
30661 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30662 | } | |
30663 | arg6 = static_cast< wxDouble >(val6); | |
30664 | } | |
30665 | if (obj6) { | |
30666 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
30667 | if (!SWIG_IsOK(ecode7)) { | |
30668 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
30669 | } | |
30670 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 30671 | } |
72ef6efb | 30672 | { |
5c8c7dd3 | 30673 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
30674 | if (PyErr_Occurred()) SWIG_fail; |
30675 | } | |
5c8c7dd3 | 30676 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30677 | return resultobj; |
30678 | fail: | |
30679 | return NULL; | |
30680 | } | |
30681 | ||
30682 | ||
70d7cb34 | 30683 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30684 | PyObject *resultobj = 0; |
70d7cb34 RD |
30685 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30686 | wxPen *arg2 = 0 ; | |
30687 | wxGraphicsPen result; | |
30688 | void *argp1 = 0 ; | |
30689 | int res1 = 0 ; | |
30690 | void *argp2 = 0 ; | |
30691 | int res2 = 0 ; | |
30692 | PyObject * obj0 = 0 ; | |
30693 | PyObject * obj1 = 0 ; | |
30694 | char * kwnames[] = { | |
30695 | (char *) "self",(char *) "pen", NULL | |
30696 | }; | |
30697 | ||
30698 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; | |
30699 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30700 | if (!SWIG_IsOK(res1)) { | |
30701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30702 | } | |
30703 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30704 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
30705 | if (!SWIG_IsOK(res2)) { | |
30706 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
30707 | } | |
30708 | if (!argp2) { | |
30709 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
30710 | } | |
30711 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
30712 | { | |
30713 | result = (arg1)->CreatePen((wxPen const &)*arg2); | |
30714 | if (PyErr_Occurred()) SWIG_fail; | |
30715 | } | |
30716 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); | |
30717 | return resultobj; | |
30718 | fail: | |
30719 | return NULL; | |
30720 | } | |
30721 | ||
30722 | ||
30723 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30724 | PyObject *resultobj = 0; | |
30725 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30726 | wxBrush *arg2 = 0 ; | |
30727 | wxGraphicsBrush result; | |
30728 | void *argp1 = 0 ; | |
30729 | int res1 = 0 ; | |
30730 | void *argp2 = 0 ; | |
30731 | int res2 = 0 ; | |
30732 | PyObject * obj0 = 0 ; | |
30733 | PyObject * obj1 = 0 ; | |
30734 | char * kwnames[] = { | |
30735 | (char *) "self",(char *) "brush", NULL | |
30736 | }; | |
30737 | ||
30738 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
30739 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30740 | if (!SWIG_IsOK(res1)) { | |
30741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30742 | } | |
30743 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30744 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
30745 | if (!SWIG_IsOK(res2)) { | |
30746 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
30747 | } | |
30748 | if (!argp2) { | |
30749 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
30750 | } | |
30751 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
30752 | { | |
30753 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); | |
30754 | if (PyErr_Occurred()) SWIG_fail; | |
30755 | } | |
30756 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); | |
30757 | return resultobj; | |
30758 | fail: | |
30759 | return NULL; | |
30760 | } | |
30761 | ||
30762 | ||
30763 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30764 | PyObject *resultobj = 0; | |
30765 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
72ef6efb RD |
30766 | wxDouble arg2 ; |
30767 | wxDouble arg3 ; | |
30768 | wxDouble arg4 ; | |
30769 | wxDouble arg5 ; | |
70d7cb34 RD |
30770 | wxColour *arg6 = 0 ; |
30771 | wxColour *arg7 = 0 ; | |
30772 | wxGraphicsBrush result; | |
72ef6efb RD |
30773 | void *argp1 = 0 ; |
30774 | int res1 = 0 ; | |
30775 | double val2 ; | |
30776 | int ecode2 = 0 ; | |
30777 | double val3 ; | |
30778 | int ecode3 = 0 ; | |
30779 | double val4 ; | |
30780 | int ecode4 = 0 ; | |
30781 | double val5 ; | |
30782 | int ecode5 = 0 ; | |
70d7cb34 RD |
30783 | wxColour temp6 ; |
30784 | wxColour temp7 ; | |
72ef6efb RD |
30785 | PyObject * obj0 = 0 ; |
30786 | PyObject * obj1 = 0 ; | |
30787 | PyObject * obj2 = 0 ; | |
30788 | PyObject * obj3 = 0 ; | |
30789 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
30790 | PyObject * obj5 = 0 ; |
30791 | PyObject * obj6 = 0 ; | |
72ef6efb | 30792 | char * kwnames[] = { |
70d7cb34 | 30793 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
30794 | }; |
30795 | ||
70d7cb34 RD |
30796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
30797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30798 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30800 | } |
70d7cb34 | 30801 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
30802 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30803 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30804 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30805 | } |
30806 | arg2 = static_cast< wxDouble >(val2); | |
30807 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30808 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30809 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30810 | } |
30811 | arg3 = static_cast< wxDouble >(val3); | |
30812 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30813 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30814 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30815 | } |
30816 | arg4 = static_cast< wxDouble >(val4); | |
30817 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30818 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30819 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30820 | } |
30821 | arg5 = static_cast< wxDouble >(val5); | |
30822 | { | |
70d7cb34 RD |
30823 | arg6 = &temp6; |
30824 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
30825 | } | |
30826 | { | |
30827 | arg7 = &temp7; | |
30828 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
30829 | } | |
30830 | { | |
30831 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); | |
72ef6efb RD |
30832 | if (PyErr_Occurred()) SWIG_fail; |
30833 | } | |
70d7cb34 | 30834 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30835 | return resultobj; |
30836 | fail: | |
30837 | return NULL; | |
30838 | } | |
30839 | ||
30840 | ||
70d7cb34 | 30841 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30842 | PyObject *resultobj = 0; |
70d7cb34 | 30843 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
72ef6efb RD |
30844 | wxDouble arg2 ; |
30845 | wxDouble arg3 ; | |
30846 | wxDouble arg4 ; | |
30847 | wxDouble arg5 ; | |
30848 | wxDouble arg6 ; | |
70d7cb34 RD |
30849 | wxColour *arg7 = 0 ; |
30850 | wxColour *arg8 = 0 ; | |
30851 | wxGraphicsBrush result; | |
72ef6efb RD |
30852 | void *argp1 = 0 ; |
30853 | int res1 = 0 ; | |
30854 | double val2 ; | |
30855 | int ecode2 = 0 ; | |
30856 | double val3 ; | |
30857 | int ecode3 = 0 ; | |
30858 | double val4 ; | |
30859 | int ecode4 = 0 ; | |
30860 | double val5 ; | |
30861 | int ecode5 = 0 ; | |
30862 | double val6 ; | |
30863 | int ecode6 = 0 ; | |
70d7cb34 RD |
30864 | wxColour temp7 ; |
30865 | wxColour temp8 ; | |
72ef6efb RD |
30866 | PyObject * obj0 = 0 ; |
30867 | PyObject * obj1 = 0 ; | |
30868 | PyObject * obj2 = 0 ; | |
30869 | PyObject * obj3 = 0 ; | |
30870 | PyObject * obj4 = 0 ; | |
30871 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
30872 | PyObject * obj6 = 0 ; |
30873 | PyObject * obj7 = 0 ; | |
72ef6efb | 30874 | char * kwnames[] = { |
70d7cb34 | 30875 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
30876 | }; |
30877 | ||
70d7cb34 RD |
30878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
30879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 30880 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 30882 | } |
70d7cb34 | 30883 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
30884 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30885 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30886 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30887 | } |
30888 | arg2 = static_cast< wxDouble >(val2); | |
30889 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30890 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30891 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30892 | } |
30893 | arg3 = static_cast< wxDouble >(val3); | |
30894 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30895 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30896 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30897 | } |
30898 | arg4 = static_cast< wxDouble >(val4); | |
30899 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30900 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30901 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30902 | } |
30903 | arg5 = static_cast< wxDouble >(val5); | |
30904 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30905 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 30906 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
30907 | } |
30908 | arg6 = static_cast< wxDouble >(val6); | |
30909 | { | |
70d7cb34 RD |
30910 | arg7 = &temp7; |
30911 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
30912 | } | |
30913 | { | |
30914 | arg8 = &temp8; | |
30915 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
30916 | } | |
30917 | { | |
30918 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
30919 | if (PyErr_Occurred()) SWIG_fail; |
30920 | } | |
70d7cb34 | 30921 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30922 | return resultobj; |
30923 | fail: | |
30924 | return NULL; | |
30925 | } | |
30926 | ||
30927 | ||
70d7cb34 RD |
30928 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30929 | PyObject *resultobj = 0; | |
30930 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30931 | wxFont *arg2 = 0 ; | |
30932 | wxColour const &arg3_defvalue = *wxBLACK ; | |
30933 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
30934 | wxGraphicsFont result; | |
30935 | void *argp1 = 0 ; | |
30936 | int res1 = 0 ; | |
30937 | void *argp2 = 0 ; | |
30938 | int res2 = 0 ; | |
30939 | wxColour temp3 ; | |
30940 | PyObject * obj0 = 0 ; | |
30941 | PyObject * obj1 = 0 ; | |
30942 | PyObject * obj2 = 0 ; | |
30943 | char * kwnames[] = { | |
30944 | (char *) "self",(char *) "font",(char *) "col", NULL | |
30945 | }; | |
30946 | ||
30947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30949 | if (!SWIG_IsOK(res1)) { | |
30950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30951 | } | |
30952 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30953 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
30954 | if (!SWIG_IsOK(res2)) { | |
30955 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
30956 | } | |
30957 | if (!argp2) { | |
30958 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
30959 | } | |
30960 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
30961 | if (obj2) { | |
30962 | { | |
30963 | arg3 = &temp3; | |
30964 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
30965 | } | |
30966 | } | |
30967 | { | |
30968 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); | |
30969 | if (PyErr_Occurred()) SWIG_fail; | |
30970 | } | |
30971 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); | |
30972 | return resultobj; | |
30973 | fail: | |
30974 | return NULL; | |
30975 | } | |
30976 | ||
30977 | ||
30978 | SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
72ef6efb RD |
30979 | PyObject *obj; |
30980 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
70d7cb34 | 30981 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj)); |
72ef6efb RD |
30982 | return SWIG_Py_Void(); |
30983 | } | |
30984 | ||
48a0c021 | 30985 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
30986 | PyObject *resultobj = 0; |
30987 | wxWindowDC *arg1 = 0 ; | |
30988 | wxGCDC *result = 0 ; | |
30989 | void *argp1 = 0 ; | |
30990 | int res1 = 0 ; | |
72ef6efb | 30991 | |
48a0c021 RD |
30992 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; |
30993 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
72ef6efb RD |
30994 | if (!SWIG_IsOK(res1)) { |
30995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
30996 | } | |
30997 | if (!argp1) { | |
30998 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
30999 | } | |
31000 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
31001 | { | |
31002 | if (!wxPyCheckForApp()) SWIG_fail; | |
31003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31004 | result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1); | |
31005 | wxPyEndAllowThreads(__tstate); | |
31006 | if (PyErr_Occurred()) SWIG_fail; | |
31007 | } | |
31008 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
31009 | return resultobj; | |
31010 | fail: | |
31011 | return NULL; | |
31012 | } | |
31013 | ||
31014 | ||
48a0c021 RD |
31015 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
31016 | PyObject *resultobj = 0; | |
31017 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31018 | wxGCDC *result = 0 ; | |
31019 | void *argp1 = 0 ; | |
31020 | int res1 = 0 ; | |
31021 | ||
31022 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
31023 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31024 | if (!SWIG_IsOK(res1)) { | |
31025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
31026 | } | |
31027 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
31028 | { | |
31029 | if (!wxPyCheckForApp()) SWIG_fail; | |
31030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31031 | result = (wxGCDC *)new wxGCDC(arg1); | |
31032 | wxPyEndAllowThreads(__tstate); | |
31033 | if (PyErr_Occurred()) SWIG_fail; | |
31034 | } | |
31035 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
31036 | return resultobj; | |
31037 | fail: | |
31038 | return NULL; | |
31039 | } | |
31040 | ||
31041 | ||
31042 | SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) { | |
31043 | int argc; | |
31044 | PyObject *argv[2]; | |
31045 | ||
31046 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail; | |
31047 | --argc; | |
31048 | if (argc == 1) { | |
31049 | int _v = 0; | |
31050 | { | |
31051 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
31052 | _v = SWIG_CheckState(res); | |
31053 | } | |
31054 | if (!_v) goto check_1; | |
31055 | return _wrap_new_GCDC__SWIG_0(self, argc, argv); | |
31056 | } | |
31057 | check_1: | |
31058 | ||
31059 | if (argc == 1) { | |
31060 | return _wrap_new_GCDC__SWIG_1(self, argc, argv); | |
31061 | } | |
31062 | ||
31063 | fail: | |
31064 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'"); | |
31065 | return NULL; | |
31066 | } | |
31067 | ||
31068 | ||
72ef6efb RD |
31069 | SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31070 | PyObject *resultobj = 0; | |
31071 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31072 | void *argp1 = 0 ; | |
31073 | int res1 = 0 ; | |
31074 | PyObject *swig_obj[1] ; | |
31075 | ||
31076 | if (!args) SWIG_fail; | |
31077 | swig_obj[0] = args; | |
31078 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 ); | |
31079 | if (!SWIG_IsOK(res1)) { | |
31080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
31081 | } | |
31082 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31083 | { | |
72ef6efb RD |
31084 | delete arg1; |
31085 | ||
72ef6efb RD |
31086 | if (PyErr_Occurred()) SWIG_fail; |
31087 | } | |
31088 | resultobj = SWIG_Py_Void(); | |
31089 | return resultobj; | |
31090 | fail: | |
31091 | return NULL; | |
31092 | } | |
31093 | ||
31094 | ||
0a27f394 | 31095 | SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
31096 | PyObject *resultobj = 0; |
31097 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31098 | wxGraphicsContext *result = 0 ; | |
31099 | void *argp1 = 0 ; | |
31100 | int res1 = 0 ; | |
31101 | PyObject *swig_obj[1] ; | |
31102 | ||
31103 | if (!args) SWIG_fail; | |
31104 | swig_obj[0] = args; | |
31105 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
31106 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 31107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); |
72ef6efb RD |
31108 | } |
31109 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31110 | { | |
0a27f394 | 31111 | result = (wxGraphicsContext *)(arg1)->GetGraphicsContext(); |
72ef6efb RD |
31112 | if (PyErr_Occurred()) SWIG_fail; |
31113 | } | |
31114 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
31115 | return resultobj; | |
31116 | fail: | |
31117 | return NULL; | |
31118 | } | |
31119 | ||
31120 | ||
0a27f394 RD |
31121 | SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31122 | PyObject *resultobj = 0; | |
31123 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31124 | wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ; | |
31125 | void *argp1 = 0 ; | |
31126 | int res1 = 0 ; | |
31127 | void *argp2 = 0 ; | |
31128 | int res2 = 0 ; | |
31129 | PyObject * obj0 = 0 ; | |
31130 | PyObject * obj1 = 0 ; | |
31131 | char * kwnames[] = { | |
31132 | (char *) "self",(char *) "ctx", NULL | |
31133 | }; | |
31134 | ||
31135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail; | |
31136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
31137 | if (!SWIG_IsOK(res1)) { | |
31138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
31139 | } | |
31140 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31141 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
31142 | if (!SWIG_IsOK(res2)) { | |
31143 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'"); | |
31144 | } | |
31145 | arg2 = reinterpret_cast< wxGraphicsContext * >(argp2); | |
31146 | { | |
31147 | (arg1)->SetGraphicsContext(arg2); | |
31148 | if (PyErr_Occurred()) SWIG_fail; | |
31149 | } | |
31150 | resultobj = SWIG_Py_Void(); | |
31151 | return resultobj; | |
31152 | fail: | |
31153 | return NULL; | |
31154 | } | |
31155 | ||
31156 | ||
72ef6efb RD |
31157 | SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31158 | PyObject *obj; | |
31159 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31160 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj)); | |
31161 | return SWIG_Py_Void(); | |
31162 | } | |
31163 | ||
31164 | SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31165 | return SWIG_Python_InitShadowInstance(args); | |
31166 | } | |
31167 | ||
b39fe951 RD |
31168 | SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31169 | PyObject *resultobj = 0; | |
31170 | wxOverlay *result = 0 ; | |
31171 | ||
31172 | if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail; | |
31173 | { | |
31174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31175 | result = (wxOverlay *)new wxOverlay(); | |
31176 | wxPyEndAllowThreads(__tstate); | |
31177 | if (PyErr_Occurred()) SWIG_fail; | |
31178 | } | |
31179 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 ); | |
31180 | return resultobj; | |
31181 | fail: | |
31182 | return NULL; | |
31183 | } | |
31184 | ||
31185 | ||
31186 | SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31187 | PyObject *resultobj = 0; | |
31188 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
31189 | void *argp1 = 0 ; | |
31190 | int res1 = 0 ; | |
31191 | PyObject *swig_obj[1] ; | |
31192 | ||
31193 | if (!args) SWIG_fail; | |
31194 | swig_obj[0] = args; | |
31195 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 ); | |
31196 | if (!SWIG_IsOK(res1)) { | |
31197 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
31198 | } | |
31199 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31200 | { | |
31201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31202 | delete arg1; | |
31203 | ||
31204 | wxPyEndAllowThreads(__tstate); | |
31205 | if (PyErr_Occurred()) SWIG_fail; | |
31206 | } | |
31207 | resultobj = SWIG_Py_Void(); | |
31208 | return resultobj; | |
31209 | fail: | |
31210 | return NULL; | |
31211 | } | |
31212 | ||
31213 | ||
31214 | SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31215 | PyObject *resultobj = 0; | |
31216 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
31217 | void *argp1 = 0 ; | |
31218 | int res1 = 0 ; | |
31219 | PyObject *swig_obj[1] ; | |
31220 | ||
31221 | if (!args) SWIG_fail; | |
31222 | swig_obj[0] = args; | |
31223 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 ); | |
31224 | if (!SWIG_IsOK(res1)) { | |
31225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
31226 | } | |
31227 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31228 | { | |
31229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31230 | (arg1)->Reset(); | |
31231 | wxPyEndAllowThreads(__tstate); | |
31232 | if (PyErr_Occurred()) SWIG_fail; | |
31233 | } | |
31234 | resultobj = SWIG_Py_Void(); | |
31235 | return resultobj; | |
31236 | fail: | |
31237 | return NULL; | |
31238 | } | |
31239 | ||
31240 | ||
31241 | SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31242 | PyObject *obj; | |
31243 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31244 | SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj)); | |
31245 | return SWIG_Py_Void(); | |
31246 | } | |
31247 | ||
31248 | SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31249 | return SWIG_Python_InitShadowInstance(args); | |
31250 | } | |
31251 | ||
31252 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
31253 | PyObject *resultobj = 0; | |
31254 | wxOverlay *arg1 = 0 ; | |
31255 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
31256 | int arg3 ; | |
31257 | int arg4 ; | |
31258 | int arg5 ; | |
31259 | int arg6 ; | |
31260 | wxDCOverlay *result = 0 ; | |
31261 | void *argp1 = 0 ; | |
31262 | int res1 = 0 ; | |
31263 | void *argp2 = 0 ; | |
31264 | int res2 = 0 ; | |
31265 | int val3 ; | |
31266 | int ecode3 = 0 ; | |
31267 | int val4 ; | |
31268 | int ecode4 = 0 ; | |
31269 | int val5 ; | |
31270 | int ecode5 = 0 ; | |
31271 | int val6 ; | |
31272 | int ecode6 = 0 ; | |
31273 | ||
31274 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; | |
31275 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
31276 | if (!SWIG_IsOK(res1)) { | |
31277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31278 | } | |
31279 | if (!argp1) { | |
31280 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31281 | } | |
31282 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31283 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
31284 | if (!SWIG_IsOK(res2)) { | |
31285 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
31286 | } | |
31287 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
31288 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
31289 | if (!SWIG_IsOK(ecode3)) { | |
31290 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'"); | |
31291 | } | |
31292 | arg3 = static_cast< int >(val3); | |
31293 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
31294 | if (!SWIG_IsOK(ecode4)) { | |
31295 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'"); | |
31296 | } | |
31297 | arg4 = static_cast< int >(val4); | |
31298 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
31299 | if (!SWIG_IsOK(ecode5)) { | |
31300 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'"); | |
31301 | } | |
31302 | arg5 = static_cast< int >(val5); | |
31303 | ecode6 = SWIG_AsVal_int(swig_obj[5], &val6); | |
31304 | if (!SWIG_IsOK(ecode6)) { | |
31305 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'"); | |
31306 | } | |
31307 | arg6 = static_cast< int >(val6); | |
31308 | { | |
31309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31310 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6); | |
31311 | wxPyEndAllowThreads(__tstate); | |
31312 | if (PyErr_Occurred()) SWIG_fail; | |
31313 | } | |
31314 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
31315 | return resultobj; | |
31316 | fail: | |
31317 | return NULL; | |
31318 | } | |
31319 | ||
31320 | ||
31321 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
31322 | PyObject *resultobj = 0; | |
31323 | wxOverlay *arg1 = 0 ; | |
31324 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
31325 | wxDCOverlay *result = 0 ; | |
31326 | void *argp1 = 0 ; | |
31327 | int res1 = 0 ; | |
31328 | void *argp2 = 0 ; | |
31329 | int res2 = 0 ; | |
31330 | ||
31331 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
31332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
31333 | if (!SWIG_IsOK(res1)) { | |
31334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31335 | } | |
31336 | if (!argp1) { | |
31337 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31338 | } | |
31339 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31340 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
31341 | if (!SWIG_IsOK(res2)) { | |
31342 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
31343 | } | |
31344 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
31345 | { | |
31346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31347 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2); | |
31348 | wxPyEndAllowThreads(__tstate); | |
31349 | if (PyErr_Occurred()) SWIG_fail; | |
31350 | } | |
31351 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
31352 | return resultobj; | |
31353 | fail: | |
31354 | return NULL; | |
31355 | } | |
31356 | ||
31357 | ||
31358 | SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) { | |
31359 | int argc; | |
31360 | PyObject *argv[7]; | |
31361 | ||
31362 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail; | |
31363 | --argc; | |
31364 | if (argc == 2) { | |
31365 | return _wrap_new_DCOverlay__SWIG_1(self, argc, argv); | |
31366 | } | |
31367 | if (argc == 6) { | |
31368 | return _wrap_new_DCOverlay__SWIG_0(self, argc, argv); | |
31369 | } | |
31370 | ||
31371 | fail: | |
31372 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'"); | |
31373 | return NULL; | |
31374 | } | |
31375 | ||
31376 | ||
31377 | SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31378 | PyObject *resultobj = 0; | |
31379 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
31380 | void *argp1 = 0 ; | |
31381 | int res1 = 0 ; | |
31382 | PyObject *swig_obj[1] ; | |
31383 | ||
31384 | if (!args) SWIG_fail; | |
31385 | swig_obj[0] = args; | |
31386 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 ); | |
31387 | if (!SWIG_IsOK(res1)) { | |
31388 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
31389 | } | |
31390 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
31391 | { | |
31392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31393 | delete arg1; | |
31394 | ||
31395 | wxPyEndAllowThreads(__tstate); | |
31396 | if (PyErr_Occurred()) SWIG_fail; | |
31397 | } | |
31398 | resultobj = SWIG_Py_Void(); | |
31399 | return resultobj; | |
31400 | fail: | |
31401 | return NULL; | |
31402 | } | |
31403 | ||
31404 | ||
31405 | SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31406 | PyObject *resultobj = 0; | |
31407 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
31408 | void *argp1 = 0 ; | |
31409 | int res1 = 0 ; | |
31410 | PyObject *swig_obj[1] ; | |
31411 | ||
31412 | if (!args) SWIG_fail; | |
31413 | swig_obj[0] = args; | |
31414 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 ); | |
31415 | if (!SWIG_IsOK(res1)) { | |
31416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
31417 | } | |
31418 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
31419 | { | |
31420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31421 | (arg1)->Clear(); | |
31422 | wxPyEndAllowThreads(__tstate); | |
31423 | if (PyErr_Occurred()) SWIG_fail; | |
31424 | } | |
31425 | resultobj = SWIG_Py_Void(); | |
31426 | return resultobj; | |
31427 | fail: | |
31428 | return NULL; | |
31429 | } | |
31430 | ||
31431 | ||
31432 | SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31433 | PyObject *obj; | |
31434 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31435 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj)); | |
31436 | return SWIG_Py_Void(); | |
31437 | } | |
31438 | ||
31439 | SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31440 | return SWIG_Python_InitShadowInstance(args); | |
31441 | } | |
31442 | ||
72ef6efb RD |
31443 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31444 | PyObject *resultobj = 0; | |
31445 | int arg1 ; | |
31446 | int arg2 ; | |
31447 | int arg3 = (int) true ; | |
31448 | int arg4 = (int) 1 ; | |
31449 | wxImageList *result = 0 ; | |
31450 | int val1 ; | |
31451 | int ecode1 = 0 ; | |
31452 | int val2 ; | |
31453 | int ecode2 = 0 ; | |
31454 | int val3 ; | |
31455 | int ecode3 = 0 ; | |
31456 | int val4 ; | |
31457 | int ecode4 = 0 ; | |
31458 | PyObject * obj0 = 0 ; | |
31459 | PyObject * obj1 = 0 ; | |
31460 | PyObject * obj2 = 0 ; | |
31461 | PyObject * obj3 = 0 ; | |
31462 | char * kwnames[] = { | |
31463 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
31464 | }; | |
31465 | ||
31466 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31467 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31468 | if (!SWIG_IsOK(ecode1)) { | |
31469 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
31470 | } | |
31471 | arg1 = static_cast< int >(val1); | |
31472 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31473 | if (!SWIG_IsOK(ecode2)) { | |
31474 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
31475 | } | |
31476 | arg2 = static_cast< int >(val2); | |
31477 | if (obj2) { | |
31478 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31479 | if (!SWIG_IsOK(ecode3)) { | |
31480 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
31481 | } | |
31482 | arg3 = static_cast< int >(val3); | |
31483 | } | |
31484 | if (obj3) { | |
31485 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31486 | if (!SWIG_IsOK(ecode4)) { | |
31487 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
31488 | } | |
31489 | arg4 = static_cast< int >(val4); | |
31490 | } | |
31491 | { | |
31492 | if (!wxPyCheckForApp()) SWIG_fail; | |
31493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31494 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
31495 | wxPyEndAllowThreads(__tstate); | |
31496 | if (PyErr_Occurred()) SWIG_fail; | |
31497 | } | |
e02c0a13 | 31498 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 ); |
72ef6efb RD |
31499 | return resultobj; |
31500 | fail: | |
31501 | return NULL; | |
31502 | } | |
31503 | ||
31504 | ||
31505 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31506 | PyObject *resultobj = 0; | |
31507 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31508 | void *argp1 = 0 ; | |
31509 | int res1 = 0 ; | |
31510 | PyObject *swig_obj[1] ; | |
31511 | ||
31512 | if (!args) SWIG_fail; | |
31513 | swig_obj[0] = args; | |
31514 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
31515 | if (!SWIG_IsOK(res1)) { | |
31516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31517 | } | |
31518 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31519 | { | |
31520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31521 | delete arg1; | |
31522 | ||
31523 | wxPyEndAllowThreads(__tstate); | |
31524 | if (PyErr_Occurred()) SWIG_fail; | |
31525 | } | |
31526 | resultobj = SWIG_Py_Void(); | |
31527 | return resultobj; | |
31528 | fail: | |
31529 | return NULL; | |
31530 | } | |
31531 | ||
31532 | ||
31533 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31534 | PyObject *resultobj = 0; | |
31535 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31536 | wxBitmap *arg2 = 0 ; | |
31537 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
31538 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
31539 | int result; | |
31540 | void *argp1 = 0 ; | |
31541 | int res1 = 0 ; | |
31542 | void *argp2 = 0 ; | |
31543 | int res2 = 0 ; | |
31544 | void *argp3 = 0 ; | |
31545 | int res3 = 0 ; | |
31546 | PyObject * obj0 = 0 ; | |
31547 | PyObject * obj1 = 0 ; | |
31548 | PyObject * obj2 = 0 ; | |
31549 | char * kwnames[] = { | |
31550 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
31551 | }; | |
31552 | ||
31553 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31554 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31555 | if (!SWIG_IsOK(res1)) { | |
31556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31557 | } | |
31558 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31559 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31560 | if (!SWIG_IsOK(res2)) { | |
31561 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31562 | } | |
31563 | if (!argp2) { | |
31564 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31565 | } | |
31566 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
31567 | if (obj2) { | |
31568 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31569 | if (!SWIG_IsOK(res3)) { | |
31570 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31571 | } | |
31572 | if (!argp3) { | |
31573 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31574 | } | |
31575 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
31576 | } | |
31577 | { | |
31578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31579 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
31580 | wxPyEndAllowThreads(__tstate); | |
31581 | if (PyErr_Occurred()) SWIG_fail; | |
31582 | } | |
31583 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31584 | return resultobj; | |
31585 | fail: | |
31586 | return NULL; | |
31587 | } | |
31588 | ||
31589 | ||
31590 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31591 | PyObject *resultobj = 0; | |
31592 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31593 | wxBitmap *arg2 = 0 ; | |
31594 | wxColour *arg3 = 0 ; | |
31595 | int result; | |
31596 | void *argp1 = 0 ; | |
31597 | int res1 = 0 ; | |
31598 | void *argp2 = 0 ; | |
31599 | int res2 = 0 ; | |
31600 | wxColour temp3 ; | |
31601 | PyObject * obj0 = 0 ; | |
31602 | PyObject * obj1 = 0 ; | |
31603 | PyObject * obj2 = 0 ; | |
31604 | char * kwnames[] = { | |
31605 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
31606 | }; | |
31607 | ||
31608 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31609 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31610 | if (!SWIG_IsOK(res1)) { | |
31611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31612 | } | |
31613 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31614 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31615 | if (!SWIG_IsOK(res2)) { | |
31616 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31617 | } | |
31618 | if (!argp2) { | |
31619 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
31620 | } | |
31621 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
31622 | { | |
31623 | arg3 = &temp3; | |
31624 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31625 | } | |
31626 | { | |
31627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31628 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
31629 | wxPyEndAllowThreads(__tstate); | |
31630 | if (PyErr_Occurred()) SWIG_fail; | |
31631 | } | |
31632 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31633 | return resultobj; | |
31634 | fail: | |
31635 | return NULL; | |
31636 | } | |
31637 | ||
31638 | ||
31639 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31640 | PyObject *resultobj = 0; | |
31641 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31642 | wxIcon *arg2 = 0 ; | |
31643 | int result; | |
31644 | void *argp1 = 0 ; | |
31645 | int res1 = 0 ; | |
31646 | void *argp2 = 0 ; | |
31647 | int res2 = 0 ; | |
31648 | PyObject * obj0 = 0 ; | |
31649 | PyObject * obj1 = 0 ; | |
31650 | char * kwnames[] = { | |
31651 | (char *) "self",(char *) "icon", NULL | |
31652 | }; | |
31653 | ||
31654 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
31655 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31656 | if (!SWIG_IsOK(res1)) { | |
31657 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31658 | } | |
0085ce49 RD |
31659 | arg1 = reinterpret_cast< wxImageList * >(argp1); |
31660 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
31661 | if (!SWIG_IsOK(res2)) { | |
31662 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
31663 | } | |
31664 | if (!argp2) { | |
31665 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
31666 | } | |
31667 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
31668 | { | |
31669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31670 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
31671 | wxPyEndAllowThreads(__tstate); | |
31672 | if (PyErr_Occurred()) SWIG_fail; | |
31673 | } | |
31674 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31675 | return resultobj; | |
31676 | fail: | |
31677 | return NULL; | |
31678 | } | |
31679 | ||
31680 | ||
31681 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31682 | PyObject *resultobj = 0; | |
31683 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31684 | int arg2 ; | |
31685 | SwigValueWrapper<wxBitmap > result; | |
31686 | void *argp1 = 0 ; | |
31687 | int res1 = 0 ; | |
31688 | int val2 ; | |
31689 | int ecode2 = 0 ; | |
31690 | PyObject * obj0 = 0 ; | |
31691 | PyObject * obj1 = 0 ; | |
31692 | char * kwnames[] = { | |
31693 | (char *) "self",(char *) "index", NULL | |
31694 | }; | |
31695 | ||
31696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
31697 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31698 | if (!SWIG_IsOK(res1)) { | |
31699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
31700 | } | |
31701 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31702 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31703 | if (!SWIG_IsOK(ecode2)) { | |
31704 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
31705 | } | |
31706 | arg2 = static_cast< int >(val2); | |
31707 | { | |
31708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31709 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
31710 | wxPyEndAllowThreads(__tstate); | |
31711 | if (PyErr_Occurred()) SWIG_fail; | |
31712 | } | |
31713 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
31714 | return resultobj; | |
31715 | fail: | |
31716 | return NULL; | |
31717 | } | |
31718 | ||
31719 | ||
31720 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31721 | PyObject *resultobj = 0; | |
31722 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31723 | int arg2 ; | |
31724 | wxIcon result; | |
31725 | void *argp1 = 0 ; | |
31726 | int res1 = 0 ; | |
31727 | int val2 ; | |
31728 | int ecode2 = 0 ; | |
31729 | PyObject * obj0 = 0 ; | |
31730 | PyObject * obj1 = 0 ; | |
31731 | char * kwnames[] = { | |
31732 | (char *) "self",(char *) "index", NULL | |
31733 | }; | |
31734 | ||
31735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
31736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31737 | if (!SWIG_IsOK(res1)) { | |
31738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
31739 | } | |
31740 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31741 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31742 | if (!SWIG_IsOK(ecode2)) { | |
31743 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
31744 | } | |
31745 | arg2 = static_cast< int >(val2); | |
31746 | { | |
31747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31748 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
31749 | wxPyEndAllowThreads(__tstate); | |
31750 | if (PyErr_Occurred()) SWIG_fail; | |
31751 | } | |
31752 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
31753 | return resultobj; | |
31754 | fail: | |
31755 | return NULL; | |
31756 | } | |
31757 | ||
31758 | ||
31759 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31760 | PyObject *resultobj = 0; | |
31761 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31762 | int arg2 ; | |
31763 | wxBitmap *arg3 = 0 ; | |
01f6b6d3 RD |
31764 | wxBitmap const &arg4_defvalue = wxNullBitmap ; |
31765 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
0085ce49 RD |
31766 | bool result; |
31767 | void *argp1 = 0 ; | |
31768 | int res1 = 0 ; | |
31769 | int val2 ; | |
31770 | int ecode2 = 0 ; | |
31771 | void *argp3 = 0 ; | |
31772 | int res3 = 0 ; | |
01f6b6d3 RD |
31773 | void *argp4 = 0 ; |
31774 | int res4 = 0 ; | |
0085ce49 RD |
31775 | PyObject * obj0 = 0 ; |
31776 | PyObject * obj1 = 0 ; | |
31777 | PyObject * obj2 = 0 ; | |
01f6b6d3 | 31778 | PyObject * obj3 = 0 ; |
0085ce49 | 31779 | char * kwnames[] = { |
01f6b6d3 | 31780 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL |
0085ce49 RD |
31781 | }; |
31782 | ||
01f6b6d3 | 31783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
31784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); |
31785 | if (!SWIG_IsOK(res1)) { | |
31786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31787 | } | |
31788 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31789 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31790 | if (!SWIG_IsOK(ecode2)) { | |
31791 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
31792 | } | |
31793 | arg2 = static_cast< int >(val2); | |
31794 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31795 | if (!SWIG_IsOK(res3)) { | |
31796 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31797 | } | |
31798 | if (!argp3) { | |
31799 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
31800 | } | |
31801 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
01f6b6d3 RD |
31802 | if (obj3) { |
31803 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
31804 | if (!SWIG_IsOK(res4)) { | |
31805 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
31806 | } | |
31807 | if (!argp4) { | |
31808 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
31809 | } | |
31810 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
31811 | } | |
0085ce49 RD |
31812 | { |
31813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 31814 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); |
0085ce49 RD |
31815 | wxPyEndAllowThreads(__tstate); |
31816 | if (PyErr_Occurred()) SWIG_fail; | |
31817 | } | |
31818 | { | |
31819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31820 | } | |
31821 | return resultobj; | |
31822 | fail: | |
31823 | return NULL; | |
31824 | } | |
31825 | ||
31826 | ||
31827 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31828 | PyObject *resultobj = 0; | |
31829 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31830 | int arg2 ; | |
31831 | wxDC *arg3 = 0 ; | |
31832 | int arg4 ; | |
31833 | int arg5 ; | |
31834 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
31835 | bool arg7 = (bool) (bool)false ; | |
31836 | bool result; | |
31837 | void *argp1 = 0 ; | |
31838 | int res1 = 0 ; | |
31839 | int val2 ; | |
31840 | int ecode2 = 0 ; | |
31841 | void *argp3 = 0 ; | |
31842 | int res3 = 0 ; | |
31843 | int val4 ; | |
31844 | int ecode4 = 0 ; | |
31845 | int val5 ; | |
31846 | int ecode5 = 0 ; | |
31847 | int val6 ; | |
31848 | int ecode6 = 0 ; | |
31849 | bool val7 ; | |
31850 | int ecode7 = 0 ; | |
31851 | PyObject * obj0 = 0 ; | |
31852 | PyObject * obj1 = 0 ; | |
31853 | PyObject * obj2 = 0 ; | |
31854 | PyObject * obj3 = 0 ; | |
31855 | PyObject * obj4 = 0 ; | |
31856 | PyObject * obj5 = 0 ; | |
31857 | PyObject * obj6 = 0 ; | |
31858 | char * kwnames[] = { | |
31859 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
31860 | }; | |
31861 | ||
31862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
31863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31864 | if (!SWIG_IsOK(res1)) { | |
31865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31866 | } | |
31867 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31868 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31869 | if (!SWIG_IsOK(ecode2)) { | |
31870 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
31871 | } | |
31872 | arg2 = static_cast< int >(val2); | |
31873 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31874 | if (!SWIG_IsOK(res3)) { | |
31875 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31876 | } | |
31877 | if (!argp3) { | |
31878 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31879 | } | |
31880 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31881 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31882 | if (!SWIG_IsOK(ecode4)) { | |
31883 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
31884 | } | |
31885 | arg4 = static_cast< int >(val4); | |
31886 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31887 | if (!SWIG_IsOK(ecode5)) { | |
31888 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
31889 | } | |
31890 | arg5 = static_cast< int >(val5); | |
31891 | if (obj5) { | |
31892 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
31893 | if (!SWIG_IsOK(ecode6)) { | |
31894 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
31895 | } | |
31896 | arg6 = static_cast< int >(val6); | |
31897 | } | |
31898 | if (obj6) { | |
31899 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
31900 | if (!SWIG_IsOK(ecode7)) { | |
31901 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
31902 | } | |
31903 | arg7 = static_cast< bool >(val7); | |
31904 | } | |
31905 | { | |
31906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31907 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
31908 | wxPyEndAllowThreads(__tstate); | |
31909 | if (PyErr_Occurred()) SWIG_fail; | |
31910 | } | |
31911 | { | |
31912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31913 | } | |
31914 | return resultobj; | |
31915 | fail: | |
31916 | return NULL; | |
31917 | } | |
31918 | ||
31919 | ||
31920 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31921 | PyObject *resultobj = 0; | |
31922 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31923 | int result; | |
31924 | void *argp1 = 0 ; | |
31925 | int res1 = 0 ; | |
31926 | PyObject *swig_obj[1] ; | |
31927 | ||
31928 | if (!args) SWIG_fail; | |
31929 | swig_obj[0] = args; | |
31930 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31931 | if (!SWIG_IsOK(res1)) { | |
31932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31933 | } | |
31934 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31935 | { | |
31936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31937 | result = (int)(arg1)->GetImageCount(); | |
31938 | wxPyEndAllowThreads(__tstate); | |
31939 | if (PyErr_Occurred()) SWIG_fail; | |
31940 | } | |
31941 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31942 | return resultobj; | |
31943 | fail: | |
31944 | return NULL; | |
31945 | } | |
31946 | ||
31947 | ||
31948 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31949 | PyObject *resultobj = 0; | |
31950 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31951 | int arg2 ; | |
31952 | bool result; | |
31953 | void *argp1 = 0 ; | |
31954 | int res1 = 0 ; | |
31955 | int val2 ; | |
31956 | int ecode2 = 0 ; | |
31957 | PyObject * obj0 = 0 ; | |
31958 | PyObject * obj1 = 0 ; | |
31959 | char * kwnames[] = { | |
31960 | (char *) "self",(char *) "index", NULL | |
31961 | }; | |
31962 | ||
31963 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
31964 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
31965 | if (!SWIG_IsOK(res1)) { | |
31966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
31967 | } | |
31968 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
31969 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31970 | if (!SWIG_IsOK(ecode2)) { | |
31971 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
31972 | } | |
31973 | arg2 = static_cast< int >(val2); | |
31974 | { | |
31975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31976 | result = (bool)(arg1)->Remove(arg2); | |
31977 | wxPyEndAllowThreads(__tstate); | |
31978 | if (PyErr_Occurred()) SWIG_fail; | |
31979 | } | |
31980 | { | |
31981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31982 | } | |
31983 | return resultobj; | |
31984 | fail: | |
31985 | return NULL; | |
31986 | } | |
31987 | ||
31988 | ||
31989 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31990 | PyObject *resultobj = 0; | |
31991 | wxImageList *arg1 = (wxImageList *) 0 ; | |
31992 | bool result; | |
31993 | void *argp1 = 0 ; | |
31994 | int res1 = 0 ; | |
31995 | PyObject *swig_obj[1] ; | |
31996 | ||
31997 | if (!args) SWIG_fail; | |
31998 | swig_obj[0] = args; | |
31999 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32000 | if (!SWIG_IsOK(res1)) { | |
32001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32002 | } | |
32003 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32004 | { | |
32005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32006 | result = (bool)(arg1)->RemoveAll(); | |
32007 | wxPyEndAllowThreads(__tstate); | |
32008 | if (PyErr_Occurred()) SWIG_fail; | |
32009 | } | |
32010 | { | |
32011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32012 | } | |
32013 | return resultobj; | |
32014 | fail: | |
32015 | return NULL; | |
32016 | } | |
32017 | ||
32018 | ||
32019 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32020 | PyObject *resultobj = 0; | |
32021 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32022 | int arg2 ; | |
32023 | int *arg3 = 0 ; | |
32024 | int *arg4 = 0 ; | |
32025 | void *argp1 = 0 ; | |
32026 | int res1 = 0 ; | |
32027 | int val2 ; | |
32028 | int ecode2 = 0 ; | |
32029 | int temp3 ; | |
32030 | int res3 = SWIG_TMPOBJ ; | |
32031 | int temp4 ; | |
32032 | int res4 = SWIG_TMPOBJ ; | |
32033 | PyObject * obj0 = 0 ; | |
32034 | PyObject * obj1 = 0 ; | |
32035 | char * kwnames[] = { | |
32036 | (char *) "self",(char *) "index", NULL | |
32037 | }; | |
32038 | ||
32039 | arg3 = &temp3; | |
32040 | arg4 = &temp4; | |
32041 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
32042 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32043 | if (!SWIG_IsOK(res1)) { | |
32044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32045 | } | |
32046 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32047 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32048 | if (!SWIG_IsOK(ecode2)) { | |
32049 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
32050 | } | |
32051 | arg2 = static_cast< int >(val2); | |
32052 | { | |
32053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32054 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
32055 | wxPyEndAllowThreads(__tstate); | |
32056 | if (PyErr_Occurred()) SWIG_fail; | |
32057 | } | |
32058 | resultobj = SWIG_Py_Void(); | |
32059 | if (SWIG_IsTmpObj(res3)) { | |
32060 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
32061 | } else { | |
32062 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
32063 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
32064 | } | |
32065 | if (SWIG_IsTmpObj(res4)) { | |
32066 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
32067 | } else { | |
32068 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
32069 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
32070 | } | |
32071 | return resultobj; | |
32072 | fail: | |
32073 | return NULL; | |
32074 | } | |
32075 | ||
32076 | ||
32077 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32078 | PyObject *obj; | |
32079 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32080 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
32081 | return SWIG_Py_Void(); | |
32082 | } | |
32083 | ||
32084 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32085 | return SWIG_Python_InitShadowInstance(args); | |
32086 | } | |
32087 | ||
50efceee RD |
32088 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32089 | PyObject *resultobj = 0; | |
32090 | wxStockGDI *result = 0 ; | |
0085ce49 | 32091 | |
50efceee RD |
32092 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
32093 | { | |
32094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32095 | result = (wxStockGDI *)new wxStockGDI(); | |
32096 | wxPyEndAllowThreads(__tstate); | |
32097 | if (PyErr_Occurred()) SWIG_fail; | |
32098 | } | |
32099 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
32100 | return resultobj; | |
32101 | fail: | |
32102 | return NULL; | |
0085ce49 RD |
32103 | } |
32104 | ||
32105 | ||
50efceee RD |
32106 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32107 | PyObject *resultobj = 0; | |
32108 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
32109 | void *argp1 = 0 ; | |
32110 | int res1 = 0 ; | |
32111 | PyObject *swig_obj[1] ; | |
0085ce49 | 32112 | |
50efceee RD |
32113 | if (!args) SWIG_fail; |
32114 | swig_obj[0] = args; | |
32115 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
32116 | if (!SWIG_IsOK(res1)) { | |
32117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
32118 | } | |
32119 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
32120 | { | |
32121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32122 | delete arg1; | |
32123 | ||
32124 | wxPyEndAllowThreads(__tstate); | |
32125 | if (PyErr_Occurred()) SWIG_fail; | |
32126 | } | |
32127 | resultobj = SWIG_Py_Void(); | |
32128 | return resultobj; | |
32129 | fail: | |
32130 | return NULL; | |
0085ce49 RD |
32131 | } |
32132 | ||
32133 | ||
50efceee RD |
32134 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32135 | PyObject *resultobj = 0; | |
0085ce49 | 32136 | |
50efceee RD |
32137 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
32138 | { | |
32139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32140 | wxStockGDI::DeleteAll(); | |
32141 | wxPyEndAllowThreads(__tstate); | |
32142 | if (PyErr_Occurred()) SWIG_fail; | |
32143 | } | |
32144 | resultobj = SWIG_Py_Void(); | |
32145 | return resultobj; | |
32146 | fail: | |
32147 | return NULL; | |
0085ce49 RD |
32148 | } |
32149 | ||
32150 | ||
50efceee RD |
32151 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32152 | PyObject *resultobj = 0; | |
32153 | wxStockGDI *result = 0 ; | |
0085ce49 | 32154 | |
50efceee RD |
32155 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
32156 | { | |
32157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32158 | { | |
32159 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
32160 | result = (wxStockGDI *) &_result_ref; | |
32161 | } | |
32162 | wxPyEndAllowThreads(__tstate); | |
32163 | if (PyErr_Occurred()) SWIG_fail; | |
32164 | } | |
32165 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
32166 | return resultobj; | |
32167 | fail: | |
32168 | return NULL; | |
0085ce49 RD |
32169 | } |
32170 | ||
32171 | ||
50efceee RD |
32172 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32173 | PyObject *resultobj = 0; | |
32174 | wxStockGDI::Item arg1 ; | |
32175 | wxBrush *result = 0 ; | |
32176 | int val1 ; | |
32177 | int ecode1 = 0 ; | |
32178 | PyObject * obj0 = 0 ; | |
32179 | char * kwnames[] = { | |
32180 | (char *) "item", NULL | |
32181 | }; | |
32182 | ||
32183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
32184 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32185 | if (!SWIG_IsOK(ecode1)) { | |
32186 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32187 | } | |
32188 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32189 | { | |
32190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32191 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
32192 | wxPyEndAllowThreads(__tstate); | |
32193 | if (PyErr_Occurred()) SWIG_fail; | |
32194 | } | |
32195 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32196 | return resultobj; | |
32197 | fail: | |
32198 | return NULL; | |
0085ce49 RD |
32199 | } |
32200 | ||
32201 | ||
50efceee RD |
32202 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32203 | PyObject *resultobj = 0; | |
32204 | wxStockGDI::Item arg1 ; | |
32205 | wxColour *result = 0 ; | |
32206 | int val1 ; | |
32207 | int ecode1 = 0 ; | |
32208 | PyObject * obj0 = 0 ; | |
32209 | char * kwnames[] = { | |
32210 | (char *) "item", NULL | |
32211 | }; | |
0085ce49 | 32212 | |
50efceee RD |
32213 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
32214 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32215 | if (!SWIG_IsOK(ecode1)) { | |
32216 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32217 | } | |
32218 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32219 | { | |
32220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32221 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
32222 | wxPyEndAllowThreads(__tstate); | |
32223 | if (PyErr_Occurred()) SWIG_fail; | |
32224 | } | |
32225 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
32226 | return resultobj; | |
32227 | fail: | |
32228 | return NULL; | |
0085ce49 RD |
32229 | } |
32230 | ||
32231 | ||
50efceee RD |
32232 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32233 | PyObject *resultobj = 0; | |
32234 | wxStockGDI::Item arg1 ; | |
32235 | wxCursor *result = 0 ; | |
32236 | int val1 ; | |
32237 | int ecode1 = 0 ; | |
32238 | PyObject * obj0 = 0 ; | |
32239 | char * kwnames[] = { | |
32240 | (char *) "item", NULL | |
32241 | }; | |
32242 | ||
32243 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
32244 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32245 | if (!SWIG_IsOK(ecode1)) { | |
32246 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32247 | } | |
32248 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32249 | { | |
32250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32251 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
32252 | wxPyEndAllowThreads(__tstate); | |
32253 | if (PyErr_Occurred()) SWIG_fail; | |
32254 | } | |
32255 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
32256 | return resultobj; | |
32257 | fail: | |
32258 | return NULL; | |
0085ce49 RD |
32259 | } |
32260 | ||
32261 | ||
50efceee RD |
32262 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32263 | PyObject *resultobj = 0; | |
32264 | wxStockGDI::Item arg1 ; | |
32265 | wxPen *result = 0 ; | |
32266 | int val1 ; | |
32267 | int ecode1 = 0 ; | |
32268 | PyObject * obj0 = 0 ; | |
32269 | char * kwnames[] = { | |
32270 | (char *) "item", NULL | |
32271 | }; | |
32272 | ||
32273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
32274 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32275 | if (!SWIG_IsOK(ecode1)) { | |
32276 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32277 | } | |
32278 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32279 | { | |
32280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32281 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
32282 | wxPyEndAllowThreads(__tstate); | |
32283 | if (PyErr_Occurred()) SWIG_fail; | |
32284 | } | |
32285 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
32286 | return resultobj; | |
32287 | fail: | |
32288 | return NULL; | |
0085ce49 RD |
32289 | } |
32290 | ||
32291 | ||
50efceee RD |
32292 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32293 | PyObject *resultobj = 0; | |
32294 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
32295 | wxStockGDI::Item arg2 ; | |
32296 | wxFont *result = 0 ; | |
32297 | void *argp1 = 0 ; | |
32298 | int res1 = 0 ; | |
32299 | int val2 ; | |
32300 | int ecode2 = 0 ; | |
32301 | PyObject * obj0 = 0 ; | |
32302 | PyObject * obj1 = 0 ; | |
32303 | char * kwnames[] = { | |
32304 | (char *) "self",(char *) "item", NULL | |
32305 | }; | |
0085ce49 | 32306 | |
50efceee RD |
32307 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32308 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
32309 | if (!SWIG_IsOK(res1)) { | |
32310 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
32311 | } | |
32312 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
32313 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32314 | if (!SWIG_IsOK(ecode2)) { | |
32315 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
32316 | } | |
32317 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
32318 | { | |
32319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32320 | result = (wxFont *)(arg1)->GetFont(arg2); | |
32321 | wxPyEndAllowThreads(__tstate); | |
32322 | if (PyErr_Occurred()) SWIG_fail; | |
32323 | } | |
32324 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
32325 | return resultobj; | |
32326 | fail: | |
32327 | return NULL; | |
0085ce49 RD |
32328 | } |
32329 | ||
32330 | ||
50efceee RD |
32331 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32332 | PyObject *obj; | |
32333 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32334 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
32335 | return SWIG_Py_Void(); | |
0085ce49 RD |
32336 | } |
32337 | ||
50efceee RD |
32338 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32339 | return SWIG_Python_InitShadowInstance(args); | |
0085ce49 RD |
32340 | } |
32341 | ||
0085ce49 RD |
32342 | SWIGINTERN int NullBitmap_set(PyObject *) { |
32343 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
32344 | return 1; | |
32345 | } | |
32346 | ||
32347 | ||
32348 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
32349 | PyObject *pyobj = 0; | |
32350 | ||
32351 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
32352 | return pyobj; | |
32353 | } | |
32354 | ||
32355 | ||
32356 | SWIGINTERN int NullIcon_set(PyObject *) { | |
32357 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
32358 | return 1; | |
32359 | } | |
32360 | ||
32361 | ||
32362 | SWIGINTERN PyObject *NullIcon_get(void) { | |
32363 | PyObject *pyobj = 0; | |
32364 | ||
32365 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
32366 | return pyobj; | |
32367 | } | |
32368 | ||
32369 | ||
32370 | SWIGINTERN int NullCursor_set(PyObject *) { | |
32371 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
32372 | return 1; | |
32373 | } | |
32374 | ||
32375 | ||
32376 | SWIGINTERN PyObject *NullCursor_get(void) { | |
32377 | PyObject *pyobj = 0; | |
32378 | ||
32379 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
32380 | return pyobj; | |
32381 | } | |
32382 | ||
32383 | ||
32384 | SWIGINTERN int NullPen_set(PyObject *) { | |
32385 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
32386 | return 1; | |
32387 | } | |
32388 | ||
32389 | ||
32390 | SWIGINTERN PyObject *NullPen_get(void) { | |
32391 | PyObject *pyobj = 0; | |
32392 | ||
32393 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
32394 | return pyobj; | |
32395 | } | |
32396 | ||
32397 | ||
32398 | SWIGINTERN int NullBrush_set(PyObject *) { | |
32399 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
32400 | return 1; | |
32401 | } | |
32402 | ||
32403 | ||
32404 | SWIGINTERN PyObject *NullBrush_get(void) { | |
32405 | PyObject *pyobj = 0; | |
32406 | ||
32407 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
32408 | return pyobj; | |
32409 | } | |
32410 | ||
32411 | ||
32412 | SWIGINTERN int NullPalette_set(PyObject *) { | |
32413 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
32414 | return 1; | |
32415 | } | |
32416 | ||
32417 | ||
32418 | SWIGINTERN PyObject *NullPalette_get(void) { | |
32419 | PyObject *pyobj = 0; | |
32420 | ||
32421 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
32422 | return pyobj; | |
32423 | } | |
32424 | ||
32425 | ||
32426 | SWIGINTERN int NullFont_set(PyObject *) { | |
32427 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
32428 | return 1; | |
32429 | } | |
32430 | ||
32431 | ||
32432 | SWIGINTERN PyObject *NullFont_get(void) { | |
32433 | PyObject *pyobj = 0; | |
32434 | ||
32435 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
32436 | return pyobj; | |
32437 | } | |
32438 | ||
32439 | ||
32440 | SWIGINTERN int NullColour_set(PyObject *) { | |
32441 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
32442 | return 1; | |
32443 | } | |
32444 | ||
32445 | ||
32446 | SWIGINTERN PyObject *NullColour_get(void) { | |
32447 | PyObject *pyobj = 0; | |
32448 | ||
32449 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
32450 | return pyobj; | |
32451 | } | |
32452 | ||
32453 | ||
8c3a7183 RD |
32454 | SWIGINTERN int NullIconBundle_set(PyObject *) { |
32455 | SWIG_Error(SWIG_AttributeError,"Variable NullIconBundle is read-only."); | |
32456 | return 1; | |
32457 | } | |
32458 | ||
32459 | ||
32460 | SWIGINTERN PyObject *NullIconBundle_get(void) { | |
32461 | PyObject *pyobj = 0; | |
32462 | ||
32463 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIconBundle), SWIGTYPE_p_wxIconBundle, 0 ); | |
32464 | return pyobj; | |
32465 | } | |
32466 | ||
32467 | ||
50efceee | 32468 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 32469 | PyObject *resultobj = 0; |
50efceee RD |
32470 | wxGDIObjListBase *result = 0 ; |
32471 | ||
32472 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
32473 | { | |
32474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32475 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
32476 | wxPyEndAllowThreads(__tstate); | |
32477 | if (PyErr_Occurred()) SWIG_fail; | |
32478 | } | |
32479 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
32480 | return resultobj; | |
32481 | fail: | |
32482 | return NULL; | |
32483 | } | |
32484 | ||
32485 | ||
32486 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32487 | PyObject *resultobj = 0; | |
32488 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
0085ce49 RD |
32489 | void *argp1 = 0 ; |
32490 | int res1 = 0 ; | |
50efceee | 32491 | PyObject *swig_obj[1] ; |
0085ce49 | 32492 | |
50efceee RD |
32493 | if (!args) SWIG_fail; |
32494 | swig_obj[0] = args; | |
32495 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
0085ce49 | 32496 | if (!SWIG_IsOK(res1)) { |
50efceee | 32497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
0085ce49 | 32498 | } |
50efceee | 32499 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
0085ce49 RD |
32500 | { |
32501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee RD |
32502 | delete arg1; |
32503 | ||
0085ce49 RD |
32504 | wxPyEndAllowThreads(__tstate); |
32505 | if (PyErr_Occurred()) SWIG_fail; | |
32506 | } | |
32507 | resultobj = SWIG_Py_Void(); | |
32508 | return resultobj; | |
32509 | fail: | |
32510 | return NULL; | |
32511 | } | |
32512 | ||
32513 | ||
50efceee RD |
32514 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32515 | PyObject *obj; | |
32516 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32517 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
32518 | return SWIG_Py_Void(); | |
32519 | } | |
32520 | ||
32521 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32522 | return SWIG_Python_InitShadowInstance(args); | |
32523 | } | |
32524 | ||
0085ce49 RD |
32525 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32526 | PyObject *resultobj = 0; | |
32527 | wxPenList *arg1 = (wxPenList *) 0 ; | |
32528 | wxColour *arg2 = 0 ; | |
32529 | int arg3 ; | |
32530 | int arg4 ; | |
32531 | wxPen *result = 0 ; | |
32532 | void *argp1 = 0 ; | |
32533 | int res1 = 0 ; | |
32534 | wxColour temp2 ; | |
32535 | int val3 ; | |
32536 | int ecode3 = 0 ; | |
32537 | int val4 ; | |
32538 | int ecode4 = 0 ; | |
32539 | PyObject * obj0 = 0 ; | |
32540 | PyObject * obj1 = 0 ; | |
32541 | PyObject * obj2 = 0 ; | |
32542 | PyObject * obj3 = 0 ; | |
32543 | char * kwnames[] = { | |
32544 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
32545 | }; | |
32546 | ||
32547 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32548 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
32549 | if (!SWIG_IsOK(res1)) { | |
32550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
32551 | } | |
32552 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
32553 | { | |
32554 | arg2 = &temp2; | |
32555 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32556 | } | |
32557 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32558 | if (!SWIG_IsOK(ecode3)) { | |
32559 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
32560 | } | |
32561 | arg3 = static_cast< int >(val3); | |
32562 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32563 | if (!SWIG_IsOK(ecode4)) { | |
32564 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
32565 | } | |
32566 | arg4 = static_cast< int >(val4); | |
32567 | { | |
32568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32569 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
32570 | wxPyEndAllowThreads(__tstate); | |
32571 | if (PyErr_Occurred()) SWIG_fail; | |
32572 | } | |
32573 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
32574 | return resultobj; | |
32575 | fail: | |
32576 | return NULL; | |
32577 | } | |
32578 | ||
32579 | ||
0085ce49 RD |
32580 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32581 | PyObject *obj; | |
32582 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32583 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
32584 | return SWIG_Py_Void(); | |
32585 | } | |
32586 | ||
50efceee RD |
32587 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32588 | PyObject *resultobj = 0; | |
32589 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
32590 | wxColour *arg2 = 0 ; | |
32591 | int arg3 = (int) wxSOLID ; | |
32592 | wxBrush *result = 0 ; | |
32593 | void *argp1 = 0 ; | |
32594 | int res1 = 0 ; | |
32595 | wxColour temp2 ; | |
32596 | int val3 ; | |
32597 | int ecode3 = 0 ; | |
32598 | PyObject * obj0 = 0 ; | |
32599 | PyObject * obj1 = 0 ; | |
32600 | PyObject * obj2 = 0 ; | |
32601 | char * kwnames[] = { | |
32602 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
32603 | }; | |
32604 | ||
32605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
32607 | if (!SWIG_IsOK(res1)) { | |
32608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
32609 | } | |
32610 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
32611 | { | |
32612 | arg2 = &temp2; | |
32613 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32614 | } | |
32615 | if (obj2) { | |
32616 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32617 | if (!SWIG_IsOK(ecode3)) { | |
32618 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
32619 | } | |
32620 | arg3 = static_cast< int >(val3); | |
32621 | } | |
32622 | { | |
32623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32624 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
32625 | wxPyEndAllowThreads(__tstate); | |
32626 | if (PyErr_Occurred()) SWIG_fail; | |
32627 | } | |
32628 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32629 | return resultobj; | |
32630 | fail: | |
32631 | return NULL; | |
32632 | } | |
32633 | ||
32634 | ||
50efceee RD |
32635 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32636 | PyObject *obj; | |
32637 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32638 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
32639 | return SWIG_Py_Void(); | |
32640 | } | |
32641 | ||
32642 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32643 | PyObject *resultobj = 0; | |
32644 | wxFontList *arg1 = (wxFontList *) 0 ; | |
32645 | int arg2 ; | |
32646 | int arg3 ; | |
32647 | int arg4 ; | |
32648 | int arg5 ; | |
32649 | bool arg6 = (bool) false ; | |
32650 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
32651 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32652 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
32653 | wxFont *result = 0 ; | |
32654 | void *argp1 = 0 ; | |
32655 | int res1 = 0 ; | |
32656 | int val2 ; | |
32657 | int ecode2 = 0 ; | |
0085ce49 RD |
32658 | int val3 ; |
32659 | int ecode3 = 0 ; | |
50efceee RD |
32660 | int val4 ; |
32661 | int ecode4 = 0 ; | |
32662 | int val5 ; | |
32663 | int ecode5 = 0 ; | |
32664 | bool val6 ; | |
32665 | int ecode6 = 0 ; | |
32666 | bool temp7 = false ; | |
32667 | int val8 ; | |
32668 | int ecode8 = 0 ; | |
0085ce49 RD |
32669 | PyObject * obj0 = 0 ; |
32670 | PyObject * obj1 = 0 ; | |
32671 | PyObject * obj2 = 0 ; | |
50efceee RD |
32672 | PyObject * obj3 = 0 ; |
32673 | PyObject * obj4 = 0 ; | |
32674 | PyObject * obj5 = 0 ; | |
32675 | PyObject * obj6 = 0 ; | |
32676 | PyObject * obj7 = 0 ; | |
0085ce49 | 32677 | char * kwnames[] = { |
50efceee | 32678 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
0085ce49 RD |
32679 | }; |
32680 | ||
50efceee RD |
32681 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
32682 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 32683 | if (!SWIG_IsOK(res1)) { |
50efceee | 32684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 32685 | } |
50efceee RD |
32686 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
32687 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32688 | if (!SWIG_IsOK(ecode2)) { | |
32689 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
32690 | } | |
32691 | arg2 = static_cast< int >(val2); | |
32692 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32693 | if (!SWIG_IsOK(ecode3)) { | |
32694 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
32695 | } | |
32696 | arg3 = static_cast< int >(val3); | |
32697 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32698 | if (!SWIG_IsOK(ecode4)) { | |
32699 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
32700 | } | |
32701 | arg4 = static_cast< int >(val4); | |
32702 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32703 | if (!SWIG_IsOK(ecode5)) { | |
32704 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
32705 | } | |
32706 | arg5 = static_cast< int >(val5); | |
32707 | if (obj5) { | |
32708 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
32709 | if (!SWIG_IsOK(ecode6)) { | |
32710 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
32711 | } | |
32712 | arg6 = static_cast< bool >(val6); | |
0085ce49 | 32713 | } |
50efceee RD |
32714 | if (obj6) { |
32715 | { | |
32716 | arg7 = wxString_in_helper(obj6); | |
32717 | if (arg7 == NULL) SWIG_fail; | |
32718 | temp7 = true; | |
32719 | } | |
32720 | } | |
32721 | if (obj7) { | |
32722 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
32723 | if (!SWIG_IsOK(ecode8)) { | |
32724 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
0085ce49 | 32725 | } |
50efceee | 32726 | arg8 = static_cast< wxFontEncoding >(val8); |
0085ce49 RD |
32727 | } |
32728 | { | |
32729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32730 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
0085ce49 RD |
32731 | wxPyEndAllowThreads(__tstate); |
32732 | if (PyErr_Occurred()) SWIG_fail; | |
32733 | } | |
50efceee RD |
32734 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
32735 | { | |
32736 | if (temp7) | |
32737 | delete arg7; | |
32738 | } | |
0085ce49 RD |
32739 | return resultobj; |
32740 | fail: | |
50efceee RD |
32741 | { |
32742 | if (temp7) | |
32743 | delete arg7; | |
32744 | } | |
0085ce49 RD |
32745 | return NULL; |
32746 | } | |
32747 | ||
32748 | ||
50efceee | 32749 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
32750 | PyObject *obj; |
32751 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
50efceee | 32752 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
0085ce49 RD |
32753 | return SWIG_Py_Void(); |
32754 | } | |
32755 | ||
32756 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32757 | PyObject *resultobj = 0; | |
32758 | wxColourDatabase *result = 0 ; | |
32759 | ||
32760 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
32761 | { | |
32762 | if (!wxPyCheckForApp()) SWIG_fail; | |
32763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32764 | result = (wxColourDatabase *)new wxColourDatabase(); | |
32765 | wxPyEndAllowThreads(__tstate); | |
32766 | if (PyErr_Occurred()) SWIG_fail; | |
32767 | } | |
32768 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
32769 | return resultobj; | |
32770 | fail: | |
32771 | return NULL; | |
32772 | } | |
32773 | ||
32774 | ||
32775 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32776 | PyObject *resultobj = 0; | |
32777 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32778 | void *argp1 = 0 ; | |
32779 | int res1 = 0 ; | |
32780 | PyObject *swig_obj[1] ; | |
32781 | ||
32782 | if (!args) SWIG_fail; | |
32783 | swig_obj[0] = args; | |
32784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
32785 | if (!SWIG_IsOK(res1)) { | |
32786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
32787 | } | |
32788 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32789 | { | |
32790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32791 | delete arg1; | |
32792 | ||
32793 | wxPyEndAllowThreads(__tstate); | |
32794 | if (PyErr_Occurred()) SWIG_fail; | |
32795 | } | |
32796 | resultobj = SWIG_Py_Void(); | |
32797 | return resultobj; | |
32798 | fail: | |
32799 | return NULL; | |
32800 | } | |
32801 | ||
32802 | ||
32803 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32804 | PyObject *resultobj = 0; | |
32805 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32806 | wxString *arg2 = 0 ; | |
32807 | wxColour result; | |
32808 | void *argp1 = 0 ; | |
32809 | int res1 = 0 ; | |
32810 | bool temp2 = false ; | |
32811 | PyObject * obj0 = 0 ; | |
32812 | PyObject * obj1 = 0 ; | |
32813 | char * kwnames[] = { | |
32814 | (char *) "self",(char *) "name", NULL | |
32815 | }; | |
32816 | ||
32817 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
32818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32819 | if (!SWIG_IsOK(res1)) { | |
32820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
32821 | } | |
32822 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32823 | { | |
32824 | arg2 = wxString_in_helper(obj1); | |
32825 | if (arg2 == NULL) SWIG_fail; | |
32826 | temp2 = true; | |
32827 | } | |
32828 | { | |
32829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32830 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
32831 | wxPyEndAllowThreads(__tstate); | |
32832 | if (PyErr_Occurred()) SWIG_fail; | |
32833 | } | |
32834 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
32835 | { | |
32836 | if (temp2) | |
32837 | delete arg2; | |
32838 | } | |
32839 | return resultobj; | |
32840 | fail: | |
32841 | { | |
32842 | if (temp2) | |
32843 | delete arg2; | |
32844 | } | |
32845 | return NULL; | |
32846 | } | |
32847 | ||
32848 | ||
32849 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32850 | PyObject *resultobj = 0; | |
32851 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32852 | wxColour *arg2 = 0 ; | |
32853 | wxString result; | |
32854 | void *argp1 = 0 ; | |
32855 | int res1 = 0 ; | |
32856 | wxColour temp2 ; | |
32857 | PyObject * obj0 = 0 ; | |
32858 | PyObject * obj1 = 0 ; | |
32859 | char * kwnames[] = { | |
32860 | (char *) "self",(char *) "colour", NULL | |
32861 | }; | |
32862 | ||
32863 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
32864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32865 | if (!SWIG_IsOK(res1)) { | |
32866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
32867 | } | |
32868 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32869 | { | |
32870 | arg2 = &temp2; | |
32871 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32872 | } | |
32873 | { | |
32874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32875 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
32876 | wxPyEndAllowThreads(__tstate); | |
32877 | if (PyErr_Occurred()) SWIG_fail; | |
32878 | } | |
32879 | { | |
32880 | #if wxUSE_UNICODE | |
32881 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32882 | #else | |
32883 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32884 | #endif | |
32885 | } | |
32886 | return resultobj; | |
32887 | fail: | |
32888 | return NULL; | |
32889 | } | |
32890 | ||
32891 | ||
32892 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32893 | PyObject *resultobj = 0; | |
32894 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32895 | wxString *arg2 = 0 ; | |
32896 | wxColour *arg3 = 0 ; | |
32897 | void *argp1 = 0 ; | |
32898 | int res1 = 0 ; | |
32899 | bool temp2 = false ; | |
32900 | wxColour temp3 ; | |
32901 | PyObject * obj0 = 0 ; | |
32902 | PyObject * obj1 = 0 ; | |
32903 | PyObject * obj2 = 0 ; | |
32904 | char * kwnames[] = { | |
32905 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
32906 | }; | |
32907 | ||
32908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32909 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
32910 | if (!SWIG_IsOK(res1)) { | |
32911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
32912 | } | |
32913 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32914 | { | |
32915 | arg2 = wxString_in_helper(obj1); | |
32916 | if (arg2 == NULL) SWIG_fail; | |
32917 | temp2 = true; | |
32918 | } | |
32919 | { | |
32920 | arg3 = &temp3; | |
32921 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
32922 | } | |
32923 | { | |
32924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32925 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
32926 | wxPyEndAllowThreads(__tstate); | |
32927 | if (PyErr_Occurred()) SWIG_fail; | |
32928 | } | |
32929 | resultobj = SWIG_Py_Void(); | |
32930 | { | |
32931 | if (temp2) | |
32932 | delete arg2; | |
32933 | } | |
32934 | return resultobj; | |
32935 | fail: | |
32936 | { | |
32937 | if (temp2) | |
32938 | delete arg2; | |
32939 | } | |
32940 | return NULL; | |
32941 | } | |
32942 | ||
32943 | ||
32944 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32945 | PyObject *resultobj = 0; | |
32946 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
32947 | wxString *arg2 = 0 ; | |
32948 | int arg3 ; | |
32949 | int arg4 ; | |
32950 | int arg5 ; | |
32951 | void *argp1 = 0 ; | |
32952 | int res1 = 0 ; | |
32953 | bool temp2 = false ; | |
32954 | int val3 ; | |
32955 | int ecode3 = 0 ; | |
32956 | int val4 ; | |
32957 | int ecode4 = 0 ; | |
50efceee RD |
32958 | int val5 ; |
32959 | int ecode5 = 0 ; | |
0085ce49 RD |
32960 | PyObject * obj0 = 0 ; |
32961 | PyObject * obj1 = 0 ; | |
32962 | PyObject * obj2 = 0 ; | |
32963 | PyObject * obj3 = 0 ; | |
32964 | PyObject * obj4 = 0 ; | |
0085ce49 | 32965 | char * kwnames[] = { |
50efceee | 32966 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
0085ce49 RD |
32967 | }; |
32968 | ||
50efceee RD |
32969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
32970 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
0085ce49 | 32971 | if (!SWIG_IsOK(res1)) { |
50efceee RD |
32972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
32973 | } | |
32974 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
32975 | { | |
32976 | arg2 = wxString_in_helper(obj1); | |
32977 | if (arg2 == NULL) SWIG_fail; | |
32978 | temp2 = true; | |
0085ce49 | 32979 | } |
0085ce49 RD |
32980 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
32981 | if (!SWIG_IsOK(ecode3)) { | |
50efceee | 32982 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
0085ce49 RD |
32983 | } |
32984 | arg3 = static_cast< int >(val3); | |
32985 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32986 | if (!SWIG_IsOK(ecode4)) { | |
50efceee | 32987 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
0085ce49 RD |
32988 | } |
32989 | arg4 = static_cast< int >(val4); | |
32990 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32991 | if (!SWIG_IsOK(ecode5)) { | |
50efceee | 32992 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
0085ce49 RD |
32993 | } |
32994 | arg5 = static_cast< int >(val5); | |
0085ce49 RD |
32995 | { |
32996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 32997 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
0085ce49 RD |
32998 | wxPyEndAllowThreads(__tstate); |
32999 | if (PyErr_Occurred()) SWIG_fail; | |
33000 | } | |
50efceee | 33001 | resultobj = SWIG_Py_Void(); |
0085ce49 | 33002 | { |
50efceee RD |
33003 | if (temp2) |
33004 | delete arg2; | |
0085ce49 RD |
33005 | } |
33006 | return resultobj; | |
33007 | fail: | |
33008 | { | |
50efceee RD |
33009 | if (temp2) |
33010 | delete arg2; | |
0085ce49 RD |
33011 | } |
33012 | return NULL; | |
33013 | } | |
33014 | ||
33015 | ||
50efceee RD |
33016 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33017 | PyObject *obj; | |
33018 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33019 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
33020 | return SWIG_Py_Void(); | |
33021 | } | |
33022 | ||
33023 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33024 | return SWIG_Python_InitShadowInstance(args); | |
33025 | } | |
33026 | ||
33027 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
0085ce49 | 33028 | PyObject *resultobj = 0; |
50efceee | 33029 | wxFontList *result = 0 ; |
0085ce49 | 33030 | |
50efceee | 33031 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
0085ce49 RD |
33032 | { |
33033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33034 | result = (wxFontList *)_wxPyInitTheFontList(); |
0085ce49 RD |
33035 | wxPyEndAllowThreads(__tstate); |
33036 | if (PyErr_Occurred()) SWIG_fail; | |
33037 | } | |
50efceee | 33038 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
0085ce49 RD |
33039 | return resultobj; |
33040 | fail: | |
33041 | return NULL; | |
33042 | } | |
33043 | ||
33044 | ||
50efceee | 33045 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 33046 | PyObject *resultobj = 0; |
50efceee | 33047 | wxPenList *result = 0 ; |
0085ce49 | 33048 | |
50efceee | 33049 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
0085ce49 RD |
33050 | { |
33051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33052 | result = (wxPenList *)_wxPyInitThePenList(); |
0085ce49 RD |
33053 | wxPyEndAllowThreads(__tstate); |
33054 | if (PyErr_Occurred()) SWIG_fail; | |
33055 | } | |
50efceee | 33056 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
0085ce49 RD |
33057 | return resultobj; |
33058 | fail: | |
33059 | return NULL; | |
33060 | } | |
33061 | ||
33062 | ||
50efceee RD |
33063 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33064 | PyObject *resultobj = 0; | |
33065 | wxBrushList *result = 0 ; | |
0085ce49 | 33066 | |
50efceee RD |
33067 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
33068 | { | |
33069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33070 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
33071 | wxPyEndAllowThreads(__tstate); | |
33072 | if (PyErr_Occurred()) SWIG_fail; | |
33073 | } | |
33074 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33075 | return resultobj; | |
33076 | fail: | |
33077 | return NULL; | |
0085ce49 RD |
33078 | } |
33079 | ||
33080 | ||
50efceee RD |
33081 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33082 | PyObject *resultobj = 0; | |
33083 | wxColourDatabase *result = 0 ; | |
0085ce49 | 33084 | |
50efceee RD |
33085 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
33086 | { | |
33087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33088 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
33089 | wxPyEndAllowThreads(__tstate); | |
33090 | if (PyErr_Occurred()) SWIG_fail; | |
33091 | } | |
33092 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33093 | return resultobj; | |
33094 | fail: | |
33095 | return NULL; | |
0085ce49 RD |
33096 | } |
33097 | ||
33098 | ||
33099 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33100 | PyObject *resultobj = 0; | |
33101 | wxEffects *result = 0 ; | |
33102 | ||
33103 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
33104 | { | |
33105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33106 | result = (wxEffects *)new wxEffects(); | |
33107 | wxPyEndAllowThreads(__tstate); | |
33108 | if (PyErr_Occurred()) SWIG_fail; | |
33109 | } | |
33110 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
33111 | return resultobj; | |
33112 | fail: | |
33113 | return NULL; | |
33114 | } | |
33115 | ||
33116 | ||
33117 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33118 | PyObject *resultobj = 0; | |
33119 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33120 | wxColour result; | |
33121 | void *argp1 = 0 ; | |
33122 | int res1 = 0 ; | |
33123 | PyObject *swig_obj[1] ; | |
33124 | ||
33125 | if (!args) SWIG_fail; | |
33126 | swig_obj[0] = args; | |
33127 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33128 | if (!SWIG_IsOK(res1)) { | |
33129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33130 | } | |
33131 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33132 | { | |
33133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33134 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
33135 | wxPyEndAllowThreads(__tstate); | |
33136 | if (PyErr_Occurred()) SWIG_fail; | |
33137 | } | |
33138 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33139 | return resultobj; | |
33140 | fail: | |
33141 | return NULL; | |
33142 | } | |
33143 | ||
33144 | ||
33145 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33146 | PyObject *resultobj = 0; | |
33147 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33148 | wxColour result; | |
33149 | void *argp1 = 0 ; | |
33150 | int res1 = 0 ; | |
33151 | PyObject *swig_obj[1] ; | |
33152 | ||
33153 | if (!args) SWIG_fail; | |
33154 | swig_obj[0] = args; | |
33155 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33156 | if (!SWIG_IsOK(res1)) { | |
33157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33158 | } | |
33159 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33160 | { | |
33161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33162 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
33163 | wxPyEndAllowThreads(__tstate); | |
33164 | if (PyErr_Occurred()) SWIG_fail; | |
33165 | } | |
33166 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33167 | return resultobj; | |
33168 | fail: | |
33169 | return NULL; | |
33170 | } | |
33171 | ||
33172 | ||
33173 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33174 | PyObject *resultobj = 0; | |
33175 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33176 | wxColour result; | |
33177 | void *argp1 = 0 ; | |
33178 | int res1 = 0 ; | |
33179 | PyObject *swig_obj[1] ; | |
33180 | ||
33181 | if (!args) SWIG_fail; | |
33182 | swig_obj[0] = args; | |
33183 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33184 | if (!SWIG_IsOK(res1)) { | |
33185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33186 | } | |
33187 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33188 | { | |
33189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33190 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
33191 | wxPyEndAllowThreads(__tstate); | |
33192 | if (PyErr_Occurred()) SWIG_fail; | |
33193 | } | |
33194 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33195 | return resultobj; | |
33196 | fail: | |
33197 | return NULL; | |
33198 | } | |
33199 | ||
33200 | ||
33201 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33202 | PyObject *resultobj = 0; | |
33203 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33204 | wxColour result; | |
33205 | void *argp1 = 0 ; | |
33206 | int res1 = 0 ; | |
33207 | PyObject *swig_obj[1] ; | |
33208 | ||
33209 | if (!args) SWIG_fail; | |
33210 | swig_obj[0] = args; | |
33211 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33212 | if (!SWIG_IsOK(res1)) { | |
33213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33214 | } | |
33215 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33216 | { | |
33217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33218 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
33219 | wxPyEndAllowThreads(__tstate); | |
33220 | if (PyErr_Occurred()) SWIG_fail; | |
33221 | } | |
33222 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33223 | return resultobj; | |
33224 | fail: | |
33225 | return NULL; | |
33226 | } | |
33227 | ||
33228 | ||
33229 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33230 | PyObject *resultobj = 0; | |
33231 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33232 | wxColour result; | |
33233 | void *argp1 = 0 ; | |
33234 | int res1 = 0 ; | |
33235 | PyObject *swig_obj[1] ; | |
33236 | ||
33237 | if (!args) SWIG_fail; | |
33238 | swig_obj[0] = args; | |
33239 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33240 | if (!SWIG_IsOK(res1)) { | |
33241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33242 | } | |
33243 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33244 | { | |
33245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33246 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
33247 | wxPyEndAllowThreads(__tstate); | |
33248 | if (PyErr_Occurred()) SWIG_fail; | |
33249 | } | |
33250 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33251 | return resultobj; | |
33252 | fail: | |
33253 | return NULL; | |
33254 | } | |
33255 | ||
33256 | ||
33257 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33258 | PyObject *resultobj = 0; | |
33259 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33260 | wxColour *arg2 = 0 ; | |
33261 | void *argp1 = 0 ; | |
33262 | int res1 = 0 ; | |
33263 | wxColour temp2 ; | |
33264 | PyObject * obj0 = 0 ; | |
33265 | PyObject * obj1 = 0 ; | |
33266 | char * kwnames[] = { | |
33267 | (char *) "self",(char *) "c", NULL | |
33268 | }; | |
33269 | ||
33270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33272 | if (!SWIG_IsOK(res1)) { | |
33273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33274 | } | |
33275 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33276 | { | |
33277 | arg2 = &temp2; | |
33278 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33279 | } | |
33280 | { | |
33281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33282 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
33283 | wxPyEndAllowThreads(__tstate); | |
33284 | if (PyErr_Occurred()) SWIG_fail; | |
33285 | } | |
33286 | resultobj = SWIG_Py_Void(); | |
33287 | return resultobj; | |
33288 | fail: | |
33289 | return NULL; | |
33290 | } | |
33291 | ||
33292 | ||
33293 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33294 | PyObject *resultobj = 0; | |
33295 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33296 | wxColour *arg2 = 0 ; | |
33297 | void *argp1 = 0 ; | |
33298 | int res1 = 0 ; | |
33299 | wxColour temp2 ; | |
33300 | PyObject * obj0 = 0 ; | |
33301 | PyObject * obj1 = 0 ; | |
33302 | char * kwnames[] = { | |
33303 | (char *) "self",(char *) "c", NULL | |
33304 | }; | |
33305 | ||
33306 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33307 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33308 | if (!SWIG_IsOK(res1)) { | |
33309 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33310 | } | |
33311 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33312 | { | |
33313 | arg2 = &temp2; | |
33314 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33315 | } | |
33316 | { | |
33317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33318 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
33319 | wxPyEndAllowThreads(__tstate); | |
33320 | if (PyErr_Occurred()) SWIG_fail; | |
33321 | } | |
33322 | resultobj = SWIG_Py_Void(); | |
33323 | return resultobj; | |
33324 | fail: | |
33325 | return NULL; | |
33326 | } | |
33327 | ||
33328 | ||
33329 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33330 | PyObject *resultobj = 0; | |
33331 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33332 | wxColour *arg2 = 0 ; | |
33333 | void *argp1 = 0 ; | |
33334 | int res1 = 0 ; | |
33335 | wxColour temp2 ; | |
33336 | PyObject * obj0 = 0 ; | |
33337 | PyObject * obj1 = 0 ; | |
33338 | char * kwnames[] = { | |
33339 | (char *) "self",(char *) "c", NULL | |
33340 | }; | |
33341 | ||
33342 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33343 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33344 | if (!SWIG_IsOK(res1)) { | |
33345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33346 | } | |
33347 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33348 | { | |
33349 | arg2 = &temp2; | |
33350 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33351 | } | |
33352 | { | |
33353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33354 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
33355 | wxPyEndAllowThreads(__tstate); | |
33356 | if (PyErr_Occurred()) SWIG_fail; | |
33357 | } | |
33358 | resultobj = SWIG_Py_Void(); | |
33359 | return resultobj; | |
33360 | fail: | |
33361 | return NULL; | |
33362 | } | |
33363 | ||
33364 | ||
33365 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33366 | PyObject *resultobj = 0; | |
33367 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33368 | wxColour *arg2 = 0 ; | |
33369 | void *argp1 = 0 ; | |
33370 | int res1 = 0 ; | |
33371 | wxColour temp2 ; | |
33372 | PyObject * obj0 = 0 ; | |
33373 | PyObject * obj1 = 0 ; | |
33374 | char * kwnames[] = { | |
33375 | (char *) "self",(char *) "c", NULL | |
33376 | }; | |
33377 | ||
33378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33380 | if (!SWIG_IsOK(res1)) { | |
33381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33382 | } | |
33383 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33384 | { | |
33385 | arg2 = &temp2; | |
33386 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33387 | } | |
33388 | { | |
33389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33390 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
33391 | wxPyEndAllowThreads(__tstate); | |
33392 | if (PyErr_Occurred()) SWIG_fail; | |
33393 | } | |
33394 | resultobj = SWIG_Py_Void(); | |
33395 | return resultobj; | |
33396 | fail: | |
33397 | return NULL; | |
33398 | } | |
33399 | ||
33400 | ||
33401 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33402 | PyObject *resultobj = 0; | |
33403 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33404 | wxColour *arg2 = 0 ; | |
33405 | void *argp1 = 0 ; | |
33406 | int res1 = 0 ; | |
33407 | wxColour temp2 ; | |
33408 | PyObject * obj0 = 0 ; | |
33409 | PyObject * obj1 = 0 ; | |
33410 | char * kwnames[] = { | |
33411 | (char *) "self",(char *) "c", NULL | |
33412 | }; | |
33413 | ||
33414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
33415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33416 | if (!SWIG_IsOK(res1)) { | |
33417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33418 | } | |
33419 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33420 | { | |
33421 | arg2 = &temp2; | |
33422 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33423 | } | |
33424 | { | |
33425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33426 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
33427 | wxPyEndAllowThreads(__tstate); | |
33428 | if (PyErr_Occurred()) SWIG_fail; | |
33429 | } | |
33430 | resultobj = SWIG_Py_Void(); | |
33431 | return resultobj; | |
33432 | fail: | |
33433 | return NULL; | |
33434 | } | |
33435 | ||
33436 | ||
33437 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33438 | PyObject *resultobj = 0; | |
33439 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33440 | wxColour *arg2 = 0 ; | |
33441 | wxColour *arg3 = 0 ; | |
33442 | wxColour *arg4 = 0 ; | |
33443 | wxColour *arg5 = 0 ; | |
33444 | wxColour *arg6 = 0 ; | |
33445 | void *argp1 = 0 ; | |
33446 | int res1 = 0 ; | |
33447 | wxColour temp2 ; | |
33448 | wxColour temp3 ; | |
33449 | wxColour temp4 ; | |
33450 | wxColour temp5 ; | |
33451 | wxColour temp6 ; | |
33452 | PyObject * obj0 = 0 ; | |
33453 | PyObject * obj1 = 0 ; | |
33454 | PyObject * obj2 = 0 ; | |
33455 | PyObject * obj3 = 0 ; | |
33456 | PyObject * obj4 = 0 ; | |
33457 | PyObject * obj5 = 0 ; | |
33458 | char * kwnames[] = { | |
33459 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
33460 | }; | |
33461 | ||
33462 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
33463 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33464 | if (!SWIG_IsOK(res1)) { | |
33465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33466 | } | |
33467 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33468 | { | |
33469 | arg2 = &temp2; | |
33470 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33471 | } | |
33472 | { | |
33473 | arg3 = &temp3; | |
33474 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
33475 | } | |
33476 | { | |
33477 | arg4 = &temp4; | |
33478 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
33479 | } | |
33480 | { | |
33481 | arg5 = &temp5; | |
33482 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
33483 | } | |
33484 | { | |
33485 | arg6 = &temp6; | |
33486 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
33487 | } | |
33488 | { | |
33489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33490 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
33491 | wxPyEndAllowThreads(__tstate); | |
33492 | if (PyErr_Occurred()) SWIG_fail; | |
33493 | } | |
33494 | resultobj = SWIG_Py_Void(); | |
33495 | return resultobj; | |
33496 | fail: | |
33497 | return NULL; | |
33498 | } | |
33499 | ||
33500 | ||
33501 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33502 | PyObject *resultobj = 0; | |
33503 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33504 | wxDC *arg2 = 0 ; | |
33505 | wxRect *arg3 = 0 ; | |
33506 | int arg4 = (int) 1 ; | |
33507 | void *argp1 = 0 ; | |
33508 | int res1 = 0 ; | |
33509 | void *argp2 = 0 ; | |
33510 | int res2 = 0 ; | |
33511 | wxRect temp3 ; | |
33512 | int val4 ; | |
33513 | int ecode4 = 0 ; | |
33514 | PyObject * obj0 = 0 ; | |
33515 | PyObject * obj1 = 0 ; | |
33516 | PyObject * obj2 = 0 ; | |
33517 | PyObject * obj3 = 0 ; | |
33518 | char * kwnames[] = { | |
33519 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
33520 | }; | |
33521 | ||
33522 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33523 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33524 | if (!SWIG_IsOK(res1)) { | |
33525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33526 | } | |
33527 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33528 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
33529 | if (!SWIG_IsOK(res2)) { | |
33530 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
33531 | } | |
33532 | if (!argp2) { | |
33533 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
33534 | } | |
33535 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
33536 | { | |
33537 | arg3 = &temp3; | |
33538 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
33539 | } | |
33540 | if (obj3) { | |
33541 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33542 | if (!SWIG_IsOK(ecode4)) { | |
33543 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
33544 | } | |
33545 | arg4 = static_cast< int >(val4); | |
33546 | } | |
33547 | { | |
33548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33549 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
33550 | wxPyEndAllowThreads(__tstate); | |
33551 | if (PyErr_Occurred()) SWIG_fail; | |
33552 | } | |
33553 | resultobj = SWIG_Py_Void(); | |
33554 | return resultobj; | |
33555 | fail: | |
33556 | return NULL; | |
33557 | } | |
33558 | ||
33559 | ||
33560 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33561 | PyObject *resultobj = 0; | |
33562 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33563 | wxRect *arg2 = 0 ; | |
33564 | wxDC *arg3 = 0 ; | |
33565 | wxBitmap *arg4 = 0 ; | |
33566 | bool result; | |
33567 | void *argp1 = 0 ; | |
33568 | int res1 = 0 ; | |
33569 | wxRect temp2 ; | |
33570 | void *argp3 = 0 ; | |
33571 | int res3 = 0 ; | |
33572 | void *argp4 = 0 ; | |
33573 | int res4 = 0 ; | |
33574 | PyObject * obj0 = 0 ; | |
33575 | PyObject * obj1 = 0 ; | |
33576 | PyObject * obj2 = 0 ; | |
33577 | PyObject * obj3 = 0 ; | |
33578 | char * kwnames[] = { | |
33579 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
33580 | }; | |
33581 | ||
33582 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33583 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33584 | if (!SWIG_IsOK(res1)) { | |
33585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33586 | } | |
33587 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33588 | { | |
33589 | arg2 = &temp2; | |
33590 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
33591 | } | |
33592 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
33593 | if (!SWIG_IsOK(res3)) { | |
33594 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33595 | } | |
33596 | if (!argp3) { | |
33597 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
33598 | } | |
33599 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
33600 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
33601 | if (!SWIG_IsOK(res4)) { | |
33602 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
33603 | } | |
33604 | if (!argp4) { | |
33605 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
33606 | } | |
33607 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
33608 | { | |
33609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33610 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
33611 | wxPyEndAllowThreads(__tstate); | |
33612 | if (PyErr_Occurred()) SWIG_fail; | |
33613 | } | |
33614 | { | |
33615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33616 | } | |
33617 | return resultobj; | |
33618 | fail: | |
33619 | return NULL; | |
33620 | } | |
33621 | ||
33622 | ||
33623 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33624 | PyObject *obj; | |
33625 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33626 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
33627 | return SWIG_Py_Void(); | |
33628 | } | |
33629 | ||
33630 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33631 | return SWIG_Python_InitShadowInstance(args); | |
33632 | } | |
33633 | ||
33634 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33635 | PyObject *resultobj = 0; | |
33636 | int arg1 ; | |
33637 | int arg2 ; | |
33638 | bool arg3 ; | |
33639 | wxSplitterRenderParams *result = 0 ; | |
33640 | int val1 ; | |
33641 | int ecode1 = 0 ; | |
33642 | int val2 ; | |
33643 | int ecode2 = 0 ; | |
33644 | bool val3 ; | |
33645 | int ecode3 = 0 ; | |
33646 | PyObject * obj0 = 0 ; | |
33647 | PyObject * obj1 = 0 ; | |
33648 | PyObject * obj2 = 0 ; | |
33649 | char * kwnames[] = { | |
33650 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
33651 | }; | |
33652 | ||
33653 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33654 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
33655 | if (!SWIG_IsOK(ecode1)) { | |
33656 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
33657 | } | |
33658 | arg1 = static_cast< int >(val1); | |
33659 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33660 | if (!SWIG_IsOK(ecode2)) { | |
33661 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
33662 | } | |
33663 | arg2 = static_cast< int >(val2); | |
33664 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
33665 | if (!SWIG_IsOK(ecode3)) { | |
33666 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
33667 | } | |
33668 | arg3 = static_cast< bool >(val3); | |
33669 | { | |
33670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33671 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
33672 | wxPyEndAllowThreads(__tstate); | |
33673 | if (PyErr_Occurred()) SWIG_fail; | |
33674 | } | |
33675 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
33676 | return resultobj; | |
33677 | fail: | |
33678 | return NULL; | |
33679 | } | |
33680 | ||
33681 | ||
33682 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33683 | PyObject *resultobj = 0; | |
33684 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33685 | void *argp1 = 0 ; | |
33686 | int res1 = 0 ; | |
33687 | PyObject *swig_obj[1] ; | |
33688 | ||
33689 | if (!args) SWIG_fail; | |
33690 | swig_obj[0] = args; | |
33691 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
33692 | if (!SWIG_IsOK(res1)) { | |
33693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33694 | } | |
33695 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33696 | { | |
33697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33698 | delete arg1; | |
33699 | ||
33700 | wxPyEndAllowThreads(__tstate); | |
33701 | if (PyErr_Occurred()) SWIG_fail; | |
33702 | } | |
33703 | resultobj = SWIG_Py_Void(); | |
33704 | return resultobj; | |
33705 | fail: | |
33706 | return NULL; | |
33707 | } | |
33708 | ||
33709 | ||
33710 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33711 | PyObject *resultobj = 0; | |
33712 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33713 | int result; | |
33714 | void *argp1 = 0 ; | |
33715 | int res1 = 0 ; | |
33716 | PyObject *swig_obj[1] ; | |
33717 | ||
33718 | if (!args) SWIG_fail; | |
33719 | swig_obj[0] = args; | |
33720 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33721 | if (!SWIG_IsOK(res1)) { | |
33722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33723 | } | |
33724 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33725 | result = (int)(int) ((arg1)->widthSash); | |
33726 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33727 | return resultobj; | |
33728 | fail: | |
33729 | return NULL; | |
33730 | } | |
33731 | ||
33732 | ||
33733 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33734 | PyObject *resultobj = 0; | |
33735 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33736 | int result; | |
33737 | void *argp1 = 0 ; | |
33738 | int res1 = 0 ; | |
33739 | PyObject *swig_obj[1] ; | |
33740 | ||
33741 | if (!args) SWIG_fail; | |
33742 | swig_obj[0] = args; | |
33743 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33744 | if (!SWIG_IsOK(res1)) { | |
33745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33746 | } | |
33747 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33748 | result = (int)(int) ((arg1)->border); | |
33749 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
33750 | return resultobj; | |
33751 | fail: | |
33752 | return NULL; | |
33753 | } | |
33754 | ||
33755 | ||
33756 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33757 | PyObject *resultobj = 0; | |
33758 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
33759 | bool result; | |
33760 | void *argp1 = 0 ; | |
33761 | int res1 = 0 ; | |
33762 | PyObject *swig_obj[1] ; | |
33763 | ||
33764 | if (!args) SWIG_fail; | |
33765 | swig_obj[0] = args; | |
33766 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
33767 | if (!SWIG_IsOK(res1)) { | |
33768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
33769 | } | |
33770 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
33771 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
33772 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
33773 | return resultobj; | |
33774 | fail: | |
33775 | return NULL; | |
33776 | } | |
33777 | ||
33778 | ||
33779 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33780 | PyObject *obj; | |
33781 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33782 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
33783 | return SWIG_Py_Void(); | |
33784 | } | |
33785 | ||
33786 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33787 | return SWIG_Python_InitShadowInstance(args); | |
33788 | } | |
33789 | ||
33d6fd3b RD |
33790 | SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33791 | PyObject *resultobj = 0; | |
33792 | wxHeaderButtonParams *result = 0 ; | |
33793 | ||
33794 | if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail; | |
33795 | { | |
33796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33797 | result = (wxHeaderButtonParams *)new wxHeaderButtonParams(); | |
33798 | wxPyEndAllowThreads(__tstate); | |
33799 | if (PyErr_Occurred()) SWIG_fail; | |
33800 | } | |
33801 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 ); | |
33802 | return resultobj; | |
33803 | fail: | |
33804 | return NULL; | |
33805 | } | |
33806 | ||
33807 | ||
33808 | SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33809 | PyObject *resultobj = 0; | |
33810 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33811 | void *argp1 = 0 ; | |
33812 | int res1 = 0 ; | |
33813 | PyObject *swig_obj[1] ; | |
33814 | ||
33815 | if (!args) SWIG_fail; | |
33816 | swig_obj[0] = args; | |
33817 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 ); | |
33818 | if (!SWIG_IsOK(res1)) { | |
33819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33820 | } | |
33821 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33822 | { | |
33823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33824 | delete arg1; | |
33825 | ||
33826 | wxPyEndAllowThreads(__tstate); | |
33827 | if (PyErr_Occurred()) SWIG_fail; | |
33828 | } | |
33829 | resultobj = SWIG_Py_Void(); | |
33830 | return resultobj; | |
33831 | fail: | |
33832 | return NULL; | |
33833 | } | |
33834 | ||
33835 | ||
33836 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33837 | PyObject *resultobj = 0; | |
33838 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33839 | wxColour *arg2 = (wxColour *) 0 ; | |
33840 | void *argp1 = 0 ; | |
33841 | int res1 = 0 ; | |
33842 | wxColour temp2 ; | |
33843 | PyObject *swig_obj[2] ; | |
33844 | ||
33845 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail; | |
33846 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33847 | if (!SWIG_IsOK(res1)) { | |
33848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33849 | } | |
33850 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33851 | { | |
33852 | arg2 = &temp2; | |
33853 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33854 | } | |
33855 | if (arg1) (arg1)->m_arrowColour = *arg2; | |
33856 | ||
33857 | resultobj = SWIG_Py_Void(); | |
33858 | return resultobj; | |
33859 | fail: | |
33860 | return NULL; | |
33861 | } | |
33862 | ||
33863 | ||
33864 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33865 | PyObject *resultobj = 0; | |
33866 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33867 | wxColour *result = 0 ; | |
33868 | void *argp1 = 0 ; | |
33869 | int res1 = 0 ; | |
33870 | PyObject *swig_obj[1] ; | |
33871 | ||
33872 | if (!args) SWIG_fail; | |
33873 | swig_obj[0] = args; | |
33874 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33875 | if (!SWIG_IsOK(res1)) { | |
33876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33877 | } | |
33878 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33879 | result = (wxColour *)& ((arg1)->m_arrowColour); | |
33880 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33881 | return resultobj; | |
33882 | fail: | |
33883 | return NULL; | |
33884 | } | |
33885 | ||
33886 | ||
33887 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33888 | PyObject *resultobj = 0; | |
33889 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33890 | wxColour *arg2 = (wxColour *) 0 ; | |
33891 | void *argp1 = 0 ; | |
33892 | int res1 = 0 ; | |
33893 | wxColour temp2 ; | |
33894 | PyObject *swig_obj[2] ; | |
33895 | ||
33896 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail; | |
33897 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33898 | if (!SWIG_IsOK(res1)) { | |
33899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33900 | } | |
33901 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33902 | { | |
33903 | arg2 = &temp2; | |
33904 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
33905 | } | |
33906 | if (arg1) (arg1)->m_selectionColour = *arg2; | |
33907 | ||
33908 | resultobj = SWIG_Py_Void(); | |
33909 | return resultobj; | |
33910 | fail: | |
33911 | return NULL; | |
33912 | } | |
33913 | ||
33914 | ||
33915 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33916 | PyObject *resultobj = 0; | |
33917 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33918 | wxColour *result = 0 ; | |
33919 | void *argp1 = 0 ; | |
33920 | int res1 = 0 ; | |
33921 | PyObject *swig_obj[1] ; | |
33922 | ||
33923 | if (!args) SWIG_fail; | |
33924 | swig_obj[0] = args; | |
33925 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33926 | if (!SWIG_IsOK(res1)) { | |
33927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33928 | } | |
33929 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33930 | result = (wxColour *)& ((arg1)->m_selectionColour); | |
33931 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
33932 | return resultobj; | |
33933 | fail: | |
33934 | return NULL; | |
33935 | } | |
33936 | ||
33937 | ||
33938 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33939 | PyObject *resultobj = 0; | |
33940 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33941 | wxString *arg2 = (wxString *) 0 ; | |
33942 | void *argp1 = 0 ; | |
33943 | int res1 = 0 ; | |
33944 | bool temp2 = false ; | |
33945 | PyObject *swig_obj[2] ; | |
33946 | ||
33947 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail; | |
33948 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33949 | if (!SWIG_IsOK(res1)) { | |
33950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33951 | } | |
33952 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33953 | { | |
33954 | arg2 = wxString_in_helper(swig_obj[1]); | |
33955 | if (arg2 == NULL) SWIG_fail; | |
33956 | temp2 = true; | |
33957 | } | |
33958 | if (arg1) (arg1)->m_labelText = *arg2; | |
33959 | ||
33960 | resultobj = SWIG_Py_Void(); | |
33961 | { | |
33962 | if (temp2) | |
33963 | delete arg2; | |
33964 | } | |
33965 | return resultobj; | |
33966 | fail: | |
33967 | { | |
33968 | if (temp2) | |
33969 | delete arg2; | |
33970 | } | |
33971 | return NULL; | |
33972 | } | |
33973 | ||
33974 | ||
33975 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33976 | PyObject *resultobj = 0; | |
33977 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
33978 | wxString *result = 0 ; | |
33979 | void *argp1 = 0 ; | |
33980 | int res1 = 0 ; | |
33981 | PyObject *swig_obj[1] ; | |
33982 | ||
33983 | if (!args) SWIG_fail; | |
33984 | swig_obj[0] = args; | |
33985 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
33986 | if (!SWIG_IsOK(res1)) { | |
33987 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
33988 | } | |
33989 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
33990 | result = (wxString *)& ((arg1)->m_labelText); | |
33991 | { | |
33992 | #if wxUSE_UNICODE | |
33993 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33994 | #else | |
33995 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33996 | #endif | |
33997 | } | |
33998 | return resultobj; | |
33999 | fail: | |
34000 | return NULL; | |
34001 | } | |
34002 | ||
34003 | ||
34004 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34005 | PyObject *resultobj = 0; | |
34006 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34007 | wxFont *arg2 = (wxFont *) 0 ; | |
34008 | void *argp1 = 0 ; | |
34009 | int res1 = 0 ; | |
34010 | void *argp2 = 0 ; | |
34011 | int res2 = 0 ; | |
34012 | PyObject *swig_obj[2] ; | |
34013 | ||
34014 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail; | |
34015 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34016 | if (!SWIG_IsOK(res1)) { | |
34017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34018 | } | |
34019 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34020 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
34021 | if (!SWIG_IsOK(res2)) { | |
34022 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'"); | |
34023 | } | |
34024 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
34025 | if (arg1) (arg1)->m_labelFont = *arg2; | |
34026 | ||
34027 | resultobj = SWIG_Py_Void(); | |
34028 | return resultobj; | |
34029 | fail: | |
34030 | return NULL; | |
34031 | } | |
34032 | ||
34033 | ||
34034 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34035 | PyObject *resultobj = 0; | |
34036 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34037 | wxFont *result = 0 ; | |
34038 | void *argp1 = 0 ; | |
34039 | int res1 = 0 ; | |
34040 | PyObject *swig_obj[1] ; | |
34041 | ||
34042 | if (!args) SWIG_fail; | |
34043 | swig_obj[0] = args; | |
34044 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34045 | if (!SWIG_IsOK(res1)) { | |
34046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34047 | } | |
34048 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34049 | result = (wxFont *)& ((arg1)->m_labelFont); | |
34050 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
34051 | return resultobj; | |
34052 | fail: | |
34053 | return NULL; | |
34054 | } | |
34055 | ||
34056 | ||
34057 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34058 | PyObject *resultobj = 0; | |
34059 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34060 | wxColour *arg2 = (wxColour *) 0 ; | |
34061 | void *argp1 = 0 ; | |
34062 | int res1 = 0 ; | |
34063 | wxColour temp2 ; | |
34064 | PyObject *swig_obj[2] ; | |
34065 | ||
34066 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail; | |
34067 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34068 | if (!SWIG_IsOK(res1)) { | |
34069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34070 | } | |
34071 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34072 | { | |
34073 | arg2 = &temp2; | |
34074 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34075 | } | |
34076 | if (arg1) (arg1)->m_labelColour = *arg2; | |
34077 | ||
34078 | resultobj = SWIG_Py_Void(); | |
34079 | return resultobj; | |
34080 | fail: | |
34081 | return NULL; | |
34082 | } | |
34083 | ||
34084 | ||
34085 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34086 | PyObject *resultobj = 0; | |
34087 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34088 | wxColour *result = 0 ; | |
34089 | void *argp1 = 0 ; | |
34090 | int res1 = 0 ; | |
34091 | PyObject *swig_obj[1] ; | |
34092 | ||
34093 | if (!args) SWIG_fail; | |
34094 | swig_obj[0] = args; | |
34095 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34096 | if (!SWIG_IsOK(res1)) { | |
34097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34098 | } | |
34099 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34100 | result = (wxColour *)& ((arg1)->m_labelColour); | |
34101 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34102 | return resultobj; | |
34103 | fail: | |
34104 | return NULL; | |
34105 | } | |
34106 | ||
34107 | ||
34108 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34109 | PyObject *resultobj = 0; | |
34110 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34111 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
34112 | void *argp1 = 0 ; | |
34113 | int res1 = 0 ; | |
34114 | void *argp2 = 0 ; | |
34115 | int res2 = 0 ; | |
34116 | PyObject *swig_obj[2] ; | |
34117 | ||
34118 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail; | |
34119 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34120 | if (!SWIG_IsOK(res1)) { | |
34121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34122 | } | |
34123 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34124 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
34125 | if (!SWIG_IsOK(res2)) { | |
34126 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
34127 | } | |
34128 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
34129 | if (arg1) (arg1)->m_labelBitmap = *arg2; | |
34130 | ||
34131 | resultobj = SWIG_Py_Void(); | |
34132 | return resultobj; | |
34133 | fail: | |
34134 | return NULL; | |
34135 | } | |
34136 | ||
34137 | ||
34138 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34139 | PyObject *resultobj = 0; | |
34140 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34141 | wxBitmap *result = 0 ; | |
34142 | void *argp1 = 0 ; | |
34143 | int res1 = 0 ; | |
34144 | PyObject *swig_obj[1] ; | |
34145 | ||
34146 | if (!args) SWIG_fail; | |
34147 | swig_obj[0] = args; | |
34148 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34149 | if (!SWIG_IsOK(res1)) { | |
34150 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34151 | } | |
34152 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34153 | result = (wxBitmap *)& ((arg1)->m_labelBitmap); | |
34154 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
34155 | return resultobj; | |
34156 | fail: | |
34157 | return NULL; | |
34158 | } | |
34159 | ||
34160 | ||
34161 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34162 | PyObject *resultobj = 0; | |
34163 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34164 | int arg2 ; | |
34165 | void *argp1 = 0 ; | |
34166 | int res1 = 0 ; | |
34167 | int val2 ; | |
34168 | int ecode2 = 0 ; | |
34169 | PyObject *swig_obj[2] ; | |
34170 | ||
34171 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail; | |
34172 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34173 | if (!SWIG_IsOK(res1)) { | |
34174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34175 | } | |
34176 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34177 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
34178 | if (!SWIG_IsOK(ecode2)) { | |
34179 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'"); | |
34180 | } | |
34181 | arg2 = static_cast< int >(val2); | |
34182 | if (arg1) (arg1)->m_labelAlignment = arg2; | |
34183 | ||
34184 | resultobj = SWIG_Py_Void(); | |
34185 | return resultobj; | |
34186 | fail: | |
34187 | return NULL; | |
34188 | } | |
34189 | ||
34190 | ||
34191 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34192 | PyObject *resultobj = 0; | |
34193 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34194 | int result; | |
34195 | void *argp1 = 0 ; | |
34196 | int res1 = 0 ; | |
34197 | PyObject *swig_obj[1] ; | |
34198 | ||
34199 | if (!args) SWIG_fail; | |
34200 | swig_obj[0] = args; | |
34201 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34202 | if (!SWIG_IsOK(res1)) { | |
34203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34204 | } | |
34205 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34206 | result = (int) ((arg1)->m_labelAlignment); | |
34207 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34208 | return resultobj; | |
34209 | fail: | |
34210 | return NULL; | |
34211 | } | |
34212 | ||
34213 | ||
34214 | SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34215 | PyObject *obj; | |
34216 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34217 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj)); | |
34218 | return SWIG_Py_Void(); | |
34219 | } | |
34220 | ||
34221 | SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34222 | return SWIG_Python_InitShadowInstance(args); | |
34223 | } | |
34224 | ||
0085ce49 RD |
34225 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34226 | PyObject *resultobj = 0; | |
34227 | int arg1 ; | |
34228 | int arg2 ; | |
34229 | wxRendererVersion *result = 0 ; | |
34230 | int val1 ; | |
34231 | int ecode1 = 0 ; | |
34232 | int val2 ; | |
34233 | int ecode2 = 0 ; | |
34234 | PyObject * obj0 = 0 ; | |
34235 | PyObject * obj1 = 0 ; | |
34236 | char * kwnames[] = { | |
34237 | (char *) "version_",(char *) "age_", NULL | |
34238 | }; | |
34239 | ||
34240 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
34241 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
34242 | if (!SWIG_IsOK(ecode1)) { | |
34243 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
34244 | } | |
34245 | arg1 = static_cast< int >(val1); | |
34246 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34247 | if (!SWIG_IsOK(ecode2)) { | |
34248 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
34249 | } | |
34250 | arg2 = static_cast< int >(val2); | |
34251 | { | |
34252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34253 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
34254 | wxPyEndAllowThreads(__tstate); | |
34255 | if (PyErr_Occurred()) SWIG_fail; | |
34256 | } | |
34257 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
34258 | return resultobj; | |
34259 | fail: | |
34260 | return NULL; | |
34261 | } | |
34262 | ||
34263 | ||
34264 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34265 | PyObject *resultobj = 0; | |
34266 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34267 | void *argp1 = 0 ; | |
34268 | int res1 = 0 ; | |
34269 | PyObject *swig_obj[1] ; | |
34270 | ||
34271 | if (!args) SWIG_fail; | |
34272 | swig_obj[0] = args; | |
34273 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
34274 | if (!SWIG_IsOK(res1)) { | |
34275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34276 | } | |
34277 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34278 | { | |
34279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34280 | delete arg1; | |
34281 | ||
34282 | wxPyEndAllowThreads(__tstate); | |
34283 | if (PyErr_Occurred()) SWIG_fail; | |
34284 | } | |
34285 | resultobj = SWIG_Py_Void(); | |
34286 | return resultobj; | |
34287 | fail: | |
34288 | return NULL; | |
34289 | } | |
34290 | ||
34291 | ||
34292 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34293 | PyObject *resultobj = 0; | |
34294 | wxRendererVersion *arg1 = 0 ; | |
34295 | bool result; | |
34296 | void *argp1 = 0 ; | |
34297 | int res1 = 0 ; | |
34298 | PyObject * obj0 = 0 ; | |
34299 | char * kwnames[] = { | |
34300 | (char *) "ver", NULL | |
34301 | }; | |
34302 | ||
34303 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
34304 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
34305 | if (!SWIG_IsOK(res1)) { | |
34306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
34307 | } | |
34308 | if (!argp1) { | |
34309 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
34310 | } | |
34311 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34312 | { | |
34313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34314 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
34315 | wxPyEndAllowThreads(__tstate); | |
34316 | if (PyErr_Occurred()) SWIG_fail; | |
34317 | } | |
34318 | { | |
34319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34320 | } | |
34321 | return resultobj; | |
34322 | fail: | |
34323 | return NULL; | |
34324 | } | |
34325 | ||
34326 | ||
34327 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34328 | PyObject *resultobj = 0; | |
34329 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34330 | int result; | |
34331 | void *argp1 = 0 ; | |
34332 | int res1 = 0 ; | |
34333 | PyObject *swig_obj[1] ; | |
34334 | ||
34335 | if (!args) SWIG_fail; | |
34336 | swig_obj[0] = args; | |
34337 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
34338 | if (!SWIG_IsOK(res1)) { | |
34339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34340 | } | |
34341 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34342 | result = (int)(int) ((arg1)->version); | |
34343 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34344 | return resultobj; | |
34345 | fail: | |
34346 | return NULL; | |
34347 | } | |
34348 | ||
34349 | ||
34350 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34351 | PyObject *resultobj = 0; | |
34352 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34353 | int result; | |
34354 | void *argp1 = 0 ; | |
34355 | int res1 = 0 ; | |
34356 | PyObject *swig_obj[1] ; | |
34357 | ||
34358 | if (!args) SWIG_fail; | |
34359 | swig_obj[0] = args; | |
34360 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
34361 | if (!SWIG_IsOK(res1)) { | |
34362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34363 | } | |
34364 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34365 | result = (int)(int) ((arg1)->age); | |
34366 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34367 | return resultobj; | |
34368 | fail: | |
34369 | return NULL; | |
34370 | } | |
34371 | ||
34372 | ||
34373 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34374 | PyObject *obj; | |
34375 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34376 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
34377 | return SWIG_Py_Void(); | |
34378 | } | |
34379 | ||
34380 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34381 | return SWIG_Python_InitShadowInstance(args); | |
34382 | } | |
34383 | ||
34384 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34385 | PyObject *resultobj = 0; | |
34386 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34387 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34388 | wxDC *arg3 = 0 ; | |
34389 | wxRect *arg4 = 0 ; | |
34390 | int arg5 = (int) 0 ; | |
33d6fd3b RD |
34391 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; |
34392 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
723282b6 | 34393 | int result; |
0085ce49 RD |
34394 | void *argp1 = 0 ; |
34395 | int res1 = 0 ; | |
34396 | void *argp2 = 0 ; | |
34397 | int res2 = 0 ; | |
34398 | void *argp3 = 0 ; | |
34399 | int res3 = 0 ; | |
34400 | wxRect temp4 ; | |
34401 | int val5 ; | |
34402 | int ecode5 = 0 ; | |
33d6fd3b RD |
34403 | int val6 ; |
34404 | int ecode6 = 0 ; | |
34405 | void *argp7 = 0 ; | |
34406 | int res7 = 0 ; | |
0085ce49 RD |
34407 | PyObject * obj0 = 0 ; |
34408 | PyObject * obj1 = 0 ; | |
34409 | PyObject * obj2 = 0 ; | |
34410 | PyObject * obj3 = 0 ; | |
34411 | PyObject * obj4 = 0 ; | |
33d6fd3b RD |
34412 | PyObject * obj5 = 0 ; |
34413 | PyObject * obj6 = 0 ; | |
0085ce49 | 34414 | char * kwnames[] = { |
33d6fd3b | 34415 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL |
0085ce49 RD |
34416 | }; |
34417 | ||
33d6fd3b | 34418 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
0085ce49 RD |
34419 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
34420 | if (!SWIG_IsOK(res1)) { | |
34421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34422 | } | |
34423 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34424 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34425 | if (!SWIG_IsOK(res2)) { | |
34426 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34427 | } | |
34428 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34429 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34430 | if (!SWIG_IsOK(res3)) { | |
34431 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34432 | } | |
34433 | if (!argp3) { | |
34434 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34435 | } | |
34436 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34437 | { | |
34438 | arg4 = &temp4; | |
34439 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34440 | } | |
34441 | if (obj4) { | |
34442 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34443 | if (!SWIG_IsOK(ecode5)) { | |
34444 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
34445 | } | |
34446 | arg5 = static_cast< int >(val5); | |
34447 | } | |
33d6fd3b RD |
34448 | if (obj5) { |
34449 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34450 | if (!SWIG_IsOK(ecode6)) { | |
34451 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
34452 | } | |
34453 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
34454 | } | |
34455 | if (obj6) { | |
34456 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34457 | if (!SWIG_IsOK(res7)) { | |
34458 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
34459 | } | |
34460 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
34461 | } | |
34462 | { | |
34463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
723282b6 | 34464 | result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
33d6fd3b RD |
34465 | wxPyEndAllowThreads(__tstate); |
34466 | if (PyErr_Occurred()) SWIG_fail; | |
34467 | } | |
723282b6 | 34468 | resultobj = SWIG_From_int(static_cast< int >(result)); |
33d6fd3b RD |
34469 | return resultobj; |
34470 | fail: | |
34471 | return NULL; | |
34472 | } | |
34473 | ||
34474 | ||
34475 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34476 | PyObject *resultobj = 0; | |
34477 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34478 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34479 | wxDC *arg3 = 0 ; | |
34480 | wxRect *arg4 = 0 ; | |
34481 | int arg5 = (int) 0 ; | |
34482 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; | |
34483 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
723282b6 | 34484 | int result; |
33d6fd3b RD |
34485 | void *argp1 = 0 ; |
34486 | int res1 = 0 ; | |
34487 | void *argp2 = 0 ; | |
34488 | int res2 = 0 ; | |
34489 | void *argp3 = 0 ; | |
34490 | int res3 = 0 ; | |
34491 | wxRect temp4 ; | |
34492 | int val5 ; | |
34493 | int ecode5 = 0 ; | |
34494 | int val6 ; | |
34495 | int ecode6 = 0 ; | |
34496 | void *argp7 = 0 ; | |
34497 | int res7 = 0 ; | |
34498 | PyObject * obj0 = 0 ; | |
34499 | PyObject * obj1 = 0 ; | |
34500 | PyObject * obj2 = 0 ; | |
34501 | PyObject * obj3 = 0 ; | |
34502 | PyObject * obj4 = 0 ; | |
34503 | PyObject * obj5 = 0 ; | |
34504 | PyObject * obj6 = 0 ; | |
34505 | char * kwnames[] = { | |
34506 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL | |
34507 | }; | |
34508 | ||
34509 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
34510 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34511 | if (!SWIG_IsOK(res1)) { | |
34512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34513 | } | |
34514 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34515 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34516 | if (!SWIG_IsOK(res2)) { | |
34517 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34518 | } | |
34519 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34520 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34521 | if (!SWIG_IsOK(res3)) { | |
34522 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34523 | } | |
34524 | if (!argp3) { | |
34525 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34526 | } | |
34527 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34528 | { | |
34529 | arg4 = &temp4; | |
34530 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34531 | } | |
34532 | if (obj4) { | |
34533 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34534 | if (!SWIG_IsOK(ecode5)) { | |
34535 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'"); | |
34536 | } | |
34537 | arg5 = static_cast< int >(val5); | |
34538 | } | |
34539 | if (obj5) { | |
34540 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34541 | if (!SWIG_IsOK(ecode6)) { | |
34542 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
34543 | } | |
34544 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
34545 | } | |
34546 | if (obj6) { | |
34547 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34548 | if (!SWIG_IsOK(res7)) { | |
34549 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
34550 | } | |
34551 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
34552 | } | |
0085ce49 RD |
34553 | { |
34554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
723282b6 | 34555 | result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
0085ce49 RD |
34556 | wxPyEndAllowThreads(__tstate); |
34557 | if (PyErr_Occurred()) SWIG_fail; | |
34558 | } | |
723282b6 | 34559 | resultobj = SWIG_From_int(static_cast< int >(result)); |
0085ce49 RD |
34560 | return resultobj; |
34561 | fail: | |
34562 | return NULL; | |
34563 | } | |
34564 | ||
34565 | ||
33d6fd3b RD |
34566 | SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34567 | PyObject *resultobj = 0; | |
34568 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34569 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34570 | int result; | |
34571 | void *argp1 = 0 ; | |
34572 | int res1 = 0 ; | |
34573 | void *argp2 = 0 ; | |
34574 | int res2 = 0 ; | |
34575 | PyObject * obj0 = 0 ; | |
34576 | PyObject * obj1 = 0 ; | |
34577 | char * kwnames[] = { | |
34578 | (char *) "self",(char *) "win", NULL | |
34579 | }; | |
34580 | ||
34581 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
34582 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34583 | if (!SWIG_IsOK(res1)) { | |
34584 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34585 | } | |
34586 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34587 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34588 | if (!SWIG_IsOK(res2)) { | |
34589 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34590 | } | |
34591 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34592 | { | |
34593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34594 | result = (int)(arg1)->GetHeaderButtonHeight(arg2); | |
34595 | wxPyEndAllowThreads(__tstate); | |
34596 | if (PyErr_Occurred()) SWIG_fail; | |
34597 | } | |
34598 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34599 | return resultobj; | |
34600 | fail: | |
34601 | return NULL; | |
34602 | } | |
34603 | ||
34604 | ||
0085ce49 RD |
34605 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34606 | PyObject *resultobj = 0; | |
34607 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34608 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34609 | wxDC *arg3 = 0 ; | |
34610 | wxRect *arg4 = 0 ; | |
34611 | int arg5 = (int) 0 ; | |
34612 | void *argp1 = 0 ; | |
34613 | int res1 = 0 ; | |
34614 | void *argp2 = 0 ; | |
34615 | int res2 = 0 ; | |
34616 | void *argp3 = 0 ; | |
34617 | int res3 = 0 ; | |
34618 | wxRect temp4 ; | |
34619 | int val5 ; | |
34620 | int ecode5 = 0 ; | |
34621 | PyObject * obj0 = 0 ; | |
34622 | PyObject * obj1 = 0 ; | |
34623 | PyObject * obj2 = 0 ; | |
34624 | PyObject * obj3 = 0 ; | |
34625 | PyObject * obj4 = 0 ; | |
34626 | char * kwnames[] = { | |
34627 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34628 | }; | |
34629 | ||
34630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34632 | if (!SWIG_IsOK(res1)) { | |
34633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34634 | } | |
34635 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34636 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34637 | if (!SWIG_IsOK(res2)) { | |
34638 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34639 | } | |
34640 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34641 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34642 | if (!SWIG_IsOK(res3)) { | |
34643 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34644 | } | |
34645 | if (!argp3) { | |
34646 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34647 | } | |
34648 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34649 | { | |
34650 | arg4 = &temp4; | |
34651 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34652 | } | |
34653 | if (obj4) { | |
34654 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34655 | if (!SWIG_IsOK(ecode5)) { | |
34656 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
34657 | } | |
34658 | arg5 = static_cast< int >(val5); | |
34659 | } | |
34660 | { | |
34661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34662 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34663 | wxPyEndAllowThreads(__tstate); | |
34664 | if (PyErr_Occurred()) SWIG_fail; | |
34665 | } | |
34666 | resultobj = SWIG_Py_Void(); | |
34667 | return resultobj; | |
34668 | fail: | |
34669 | return NULL; | |
34670 | } | |
34671 | ||
34672 | ||
34673 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34674 | PyObject *resultobj = 0; | |
34675 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34676 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34677 | wxDC *arg3 = 0 ; | |
34678 | wxRect *arg4 = 0 ; | |
34679 | int arg5 = (int) 0 ; | |
34680 | void *argp1 = 0 ; | |
34681 | int res1 = 0 ; | |
34682 | void *argp2 = 0 ; | |
34683 | int res2 = 0 ; | |
34684 | void *argp3 = 0 ; | |
34685 | int res3 = 0 ; | |
34686 | wxRect temp4 ; | |
34687 | int val5 ; | |
34688 | int ecode5 = 0 ; | |
34689 | PyObject * obj0 = 0 ; | |
34690 | PyObject * obj1 = 0 ; | |
34691 | PyObject * obj2 = 0 ; | |
34692 | PyObject * obj3 = 0 ; | |
34693 | PyObject * obj4 = 0 ; | |
34694 | char * kwnames[] = { | |
34695 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34696 | }; | |
34697 | ||
34698 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34699 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34700 | if (!SWIG_IsOK(res1)) { | |
34701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34702 | } | |
34703 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34704 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34705 | if (!SWIG_IsOK(res2)) { | |
34706 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34707 | } | |
34708 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34709 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34710 | if (!SWIG_IsOK(res3)) { | |
34711 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34712 | } | |
34713 | if (!argp3) { | |
34714 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34715 | } | |
34716 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34717 | { | |
34718 | arg4 = &temp4; | |
34719 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34720 | } | |
34721 | if (obj4) { | |
34722 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34723 | if (!SWIG_IsOK(ecode5)) { | |
34724 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
34725 | } | |
34726 | arg5 = static_cast< int >(val5); | |
34727 | } | |
34728 | { | |
34729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34730 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34731 | wxPyEndAllowThreads(__tstate); | |
34732 | if (PyErr_Occurred()) SWIG_fail; | |
34733 | } | |
34734 | resultobj = SWIG_Py_Void(); | |
34735 | return resultobj; | |
34736 | fail: | |
34737 | return NULL; | |
34738 | } | |
34739 | ||
34740 | ||
34741 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34742 | PyObject *resultobj = 0; | |
34743 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34744 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34745 | wxDC *arg3 = 0 ; | |
34746 | wxSize *arg4 = 0 ; | |
34747 | int arg5 ; | |
34748 | wxOrientation arg6 ; | |
34749 | int arg7 = (int) 0 ; | |
34750 | void *argp1 = 0 ; | |
34751 | int res1 = 0 ; | |
34752 | void *argp2 = 0 ; | |
34753 | int res2 = 0 ; | |
34754 | void *argp3 = 0 ; | |
34755 | int res3 = 0 ; | |
34756 | wxSize temp4 ; | |
34757 | int val5 ; | |
34758 | int ecode5 = 0 ; | |
34759 | int val6 ; | |
34760 | int ecode6 = 0 ; | |
34761 | int val7 ; | |
34762 | int ecode7 = 0 ; | |
34763 | PyObject * obj0 = 0 ; | |
34764 | PyObject * obj1 = 0 ; | |
34765 | PyObject * obj2 = 0 ; | |
34766 | PyObject * obj3 = 0 ; | |
34767 | PyObject * obj4 = 0 ; | |
34768 | PyObject * obj5 = 0 ; | |
34769 | PyObject * obj6 = 0 ; | |
34770 | char * kwnames[] = { | |
34771 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
34772 | }; | |
34773 | ||
34774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
34775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34776 | if (!SWIG_IsOK(res1)) { | |
34777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34778 | } | |
34779 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34780 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34781 | if (!SWIG_IsOK(res2)) { | |
34782 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34783 | } | |
34784 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34785 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34786 | if (!SWIG_IsOK(res3)) { | |
34787 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34788 | } | |
34789 | if (!argp3) { | |
34790 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34791 | } | |
34792 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34793 | { | |
34794 | arg4 = &temp4; | |
34795 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
34796 | } | |
34797 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34798 | if (!SWIG_IsOK(ecode5)) { | |
34799 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
34800 | } | |
34801 | arg5 = static_cast< int >(val5); | |
34802 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34803 | if (!SWIG_IsOK(ecode6)) { | |
34804 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
34805 | } | |
34806 | arg6 = static_cast< wxOrientation >(val6); | |
34807 | if (obj6) { | |
34808 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
34809 | if (!SWIG_IsOK(ecode7)) { | |
34810 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
34811 | } | |
34812 | arg7 = static_cast< int >(val7); | |
34813 | } | |
34814 | { | |
34815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34816 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
34817 | wxPyEndAllowThreads(__tstate); | |
34818 | if (PyErr_Occurred()) SWIG_fail; | |
34819 | } | |
34820 | resultobj = SWIG_Py_Void(); | |
34821 | return resultobj; | |
34822 | fail: | |
34823 | return NULL; | |
34824 | } | |
34825 | ||
34826 | ||
34827 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34828 | PyObject *resultobj = 0; | |
34829 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34830 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34831 | wxDC *arg3 = 0 ; | |
34832 | wxRect *arg4 = 0 ; | |
34833 | int arg5 = (int) 0 ; | |
34834 | void *argp1 = 0 ; | |
34835 | int res1 = 0 ; | |
34836 | void *argp2 = 0 ; | |
34837 | int res2 = 0 ; | |
34838 | void *argp3 = 0 ; | |
34839 | int res3 = 0 ; | |
34840 | wxRect temp4 ; | |
34841 | int val5 ; | |
34842 | int ecode5 = 0 ; | |
34843 | PyObject * obj0 = 0 ; | |
34844 | PyObject * obj1 = 0 ; | |
34845 | PyObject * obj2 = 0 ; | |
34846 | PyObject * obj3 = 0 ; | |
34847 | PyObject * obj4 = 0 ; | |
34848 | char * kwnames[] = { | |
34849 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34850 | }; | |
34851 | ||
34852 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34853 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34854 | if (!SWIG_IsOK(res1)) { | |
34855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34856 | } | |
34857 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34858 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34859 | if (!SWIG_IsOK(res2)) { | |
34860 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34861 | } | |
34862 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34863 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34864 | if (!SWIG_IsOK(res3)) { | |
34865 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34866 | } | |
34867 | if (!argp3) { | |
34868 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34869 | } | |
34870 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34871 | { | |
34872 | arg4 = &temp4; | |
34873 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34874 | } | |
34875 | if (obj4) { | |
34876 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34877 | if (!SWIG_IsOK(ecode5)) { | |
34878 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
34879 | } | |
34880 | arg5 = static_cast< int >(val5); | |
34881 | } | |
34882 | { | |
34883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34884 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34885 | wxPyEndAllowThreads(__tstate); | |
34886 | if (PyErr_Occurred()) SWIG_fail; | |
34887 | } | |
34888 | resultobj = SWIG_Py_Void(); | |
34889 | return resultobj; | |
34890 | fail: | |
34891 | return NULL; | |
34892 | } | |
34893 | ||
34894 | ||
34895 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34896 | PyObject *resultobj = 0; | |
34897 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34898 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34899 | wxDC *arg3 = 0 ; | |
34900 | wxRect *arg4 = 0 ; | |
34901 | int arg5 = (int) 0 ; | |
34902 | void *argp1 = 0 ; | |
34903 | int res1 = 0 ; | |
34904 | void *argp2 = 0 ; | |
34905 | int res2 = 0 ; | |
34906 | void *argp3 = 0 ; | |
34907 | int res3 = 0 ; | |
34908 | wxRect temp4 ; | |
34909 | int val5 ; | |
34910 | int ecode5 = 0 ; | |
34911 | PyObject * obj0 = 0 ; | |
34912 | PyObject * obj1 = 0 ; | |
34913 | PyObject * obj2 = 0 ; | |
34914 | PyObject * obj3 = 0 ; | |
34915 | PyObject * obj4 = 0 ; | |
34916 | char * kwnames[] = { | |
34917 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34918 | }; | |
34919 | ||
34920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34922 | if (!SWIG_IsOK(res1)) { | |
34923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34924 | } | |
34925 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34926 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34927 | if (!SWIG_IsOK(res2)) { | |
34928 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34929 | } | |
34930 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34931 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34932 | if (!SWIG_IsOK(res3)) { | |
34933 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34934 | } | |
34935 | if (!argp3) { | |
34936 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34937 | } | |
34938 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34939 | { | |
34940 | arg4 = &temp4; | |
34941 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34942 | } | |
34943 | if (obj4) { | |
34944 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34945 | if (!SWIG_IsOK(ecode5)) { | |
34946 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
34947 | } | |
34948 | arg5 = static_cast< int >(val5); | |
34949 | } | |
34950 | { | |
34951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34952 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
34953 | wxPyEndAllowThreads(__tstate); | |
34954 | if (PyErr_Occurred()) SWIG_fail; | |
34955 | } | |
34956 | resultobj = SWIG_Py_Void(); | |
34957 | return resultobj; | |
34958 | fail: | |
34959 | return NULL; | |
34960 | } | |
34961 | ||
34962 | ||
01f6b6d3 RD |
34963 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34964 | PyObject *resultobj = 0; | |
34965 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
34966 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34967 | wxDC *arg3 = 0 ; | |
34968 | wxRect *arg4 = 0 ; | |
34969 | int arg5 = (int) 0 ; | |
34970 | void *argp1 = 0 ; | |
34971 | int res1 = 0 ; | |
34972 | void *argp2 = 0 ; | |
34973 | int res2 = 0 ; | |
34974 | void *argp3 = 0 ; | |
34975 | int res3 = 0 ; | |
34976 | wxRect temp4 ; | |
34977 | int val5 ; | |
34978 | int ecode5 = 0 ; | |
34979 | PyObject * obj0 = 0 ; | |
34980 | PyObject * obj1 = 0 ; | |
34981 | PyObject * obj2 = 0 ; | |
34982 | PyObject * obj3 = 0 ; | |
34983 | PyObject * obj4 = 0 ; | |
34984 | char * kwnames[] = { | |
34985 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
34986 | }; | |
34987 | ||
34988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
34990 | if (!SWIG_IsOK(res1)) { | |
34991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
34992 | } | |
34993 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
34994 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
34995 | if (!SWIG_IsOK(res2)) { | |
34996 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
34997 | } | |
34998 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
34999 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35000 | if (!SWIG_IsOK(res3)) { | |
35001 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35002 | } | |
35003 | if (!argp3) { | |
35004 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35005 | } | |
35006 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35007 | { | |
35008 | arg4 = &temp4; | |
35009 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35010 | } | |
35011 | if (obj4) { | |
35012 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35013 | if (!SWIG_IsOK(ecode5)) { | |
35014 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); | |
35015 | } | |
35016 | arg5 = static_cast< int >(val5); | |
35017 | } | |
35018 | { | |
35019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35020 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35021 | wxPyEndAllowThreads(__tstate); | |
35022 | if (PyErr_Occurred()) SWIG_fail; | |
35023 | } | |
35024 | resultobj = SWIG_Py_Void(); | |
35025 | return resultobj; | |
35026 | fail: | |
35027 | return NULL; | |
35028 | } | |
35029 | ||
35030 | ||
35031 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35032 | PyObject *resultobj = 0; | |
35033 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35034 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35035 | wxDC *arg3 = 0 ; | |
35036 | wxRect *arg4 = 0 ; | |
35037 | int arg5 = (int) 0 ; | |
35038 | void *argp1 = 0 ; | |
35039 | int res1 = 0 ; | |
35040 | void *argp2 = 0 ; | |
35041 | int res2 = 0 ; | |
35042 | void *argp3 = 0 ; | |
35043 | int res3 = 0 ; | |
35044 | wxRect temp4 ; | |
35045 | int val5 ; | |
35046 | int ecode5 = 0 ; | |
35047 | PyObject * obj0 = 0 ; | |
35048 | PyObject * obj1 = 0 ; | |
35049 | PyObject * obj2 = 0 ; | |
35050 | PyObject * obj3 = 0 ; | |
35051 | PyObject * obj4 = 0 ; | |
35052 | char * kwnames[] = { | |
35053 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35054 | }; | |
35055 | ||
35056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35058 | if (!SWIG_IsOK(res1)) { | |
35059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35060 | } | |
35061 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35062 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35063 | if (!SWIG_IsOK(res2)) { | |
35064 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35065 | } | |
35066 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35067 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35068 | if (!SWIG_IsOK(res3)) { | |
35069 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35070 | } | |
35071 | if (!argp3) { | |
35072 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35073 | } | |
35074 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35075 | { | |
35076 | arg4 = &temp4; | |
35077 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35078 | } | |
35079 | if (obj4) { | |
35080 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35081 | if (!SWIG_IsOK(ecode5)) { | |
35082 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
35083 | } | |
35084 | arg5 = static_cast< int >(val5); | |
35085 | } | |
35086 | { | |
35087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35088 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35089 | wxPyEndAllowThreads(__tstate); | |
35090 | if (PyErr_Occurred()) SWIG_fail; | |
35091 | } | |
35092 | resultobj = SWIG_Py_Void(); | |
35093 | return resultobj; | |
35094 | fail: | |
35095 | return NULL; | |
35096 | } | |
35097 | ||
35098 | ||
35099 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
50efceee RD |
35100 | PyObject *resultobj = 0; |
35101 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35102 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35103 | wxDC *arg3 = 0 ; | |
35104 | wxRect *arg4 = 0 ; | |
35105 | int arg5 = (int) 0 ; | |
35106 | void *argp1 = 0 ; | |
35107 | int res1 = 0 ; | |
35108 | void *argp2 = 0 ; | |
35109 | int res2 = 0 ; | |
35110 | void *argp3 = 0 ; | |
35111 | int res3 = 0 ; | |
35112 | wxRect temp4 ; | |
35113 | int val5 ; | |
35114 | int ecode5 = 0 ; | |
35115 | PyObject * obj0 = 0 ; | |
35116 | PyObject * obj1 = 0 ; | |
35117 | PyObject * obj2 = 0 ; | |
35118 | PyObject * obj3 = 0 ; | |
35119 | PyObject * obj4 = 0 ; | |
35120 | char * kwnames[] = { | |
35121 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35122 | }; | |
35123 | ||
01f6b6d3 | 35124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
50efceee RD |
35125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
35126 | if (!SWIG_IsOK(res1)) { | |
01f6b6d3 | 35127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
50efceee RD |
35128 | } |
35129 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35130 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35131 | if (!SWIG_IsOK(res2)) { | |
01f6b6d3 | 35132 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); |
50efceee RD |
35133 | } |
35134 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35135 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35136 | if (!SWIG_IsOK(res3)) { | |
01f6b6d3 | 35137 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
35138 | } |
35139 | if (!argp3) { | |
01f6b6d3 | 35140 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
35141 | } |
35142 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35143 | { | |
35144 | arg4 = &temp4; | |
35145 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35146 | } | |
35147 | if (obj4) { | |
35148 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35149 | if (!SWIG_IsOK(ecode5)) { | |
01f6b6d3 | 35150 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); |
50efceee RD |
35151 | } |
35152 | arg5 = static_cast< int >(val5); | |
35153 | } | |
35154 | { | |
35155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 35156 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); |
50efceee RD |
35157 | wxPyEndAllowThreads(__tstate); |
35158 | if (PyErr_Occurred()) SWIG_fail; | |
35159 | } | |
35160 | resultobj = SWIG_Py_Void(); | |
35161 | return resultobj; | |
35162 | fail: | |
35163 | return NULL; | |
35164 | } | |
35165 | ||
35166 | ||
0085ce49 RD |
35167 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35168 | PyObject *resultobj = 0; | |
35169 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35170 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35171 | SwigValueWrapper<wxSplitterRenderParams > result; | |
35172 | void *argp1 = 0 ; | |
35173 | int res1 = 0 ; | |
35174 | void *argp2 = 0 ; | |
35175 | int res2 = 0 ; | |
35176 | PyObject * obj0 = 0 ; | |
35177 | PyObject * obj1 = 0 ; | |
35178 | char * kwnames[] = { | |
35179 | (char *) "self",(char *) "win", NULL | |
35180 | }; | |
35181 | ||
35182 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
35183 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35184 | if (!SWIG_IsOK(res1)) { | |
35185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35186 | } | |
35187 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35188 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35189 | if (!SWIG_IsOK(res2)) { | |
35190 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
35191 | } | |
35192 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35193 | { | |
35194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35195 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
35196 | wxPyEndAllowThreads(__tstate); | |
35197 | if (PyErr_Occurred()) SWIG_fail; | |
35198 | } | |
35199 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
35200 | return resultobj; | |
35201 | fail: | |
35202 | return NULL; | |
35203 | } | |
35204 | ||
35205 | ||
35206 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35207 | PyObject *resultobj = 0; | |
35208 | wxRendererNative *result = 0 ; | |
35209 | ||
35210 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
35211 | { | |
704eda0c | 35212 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 35213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 35214 | { |
0085ce49 RD |
35215 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
35216 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 35217 | } |
0085ce49 RD |
35218 | wxPyEndAllowThreads(__tstate); |
35219 | if (PyErr_Occurred()) SWIG_fail; | |
35220 | } | |
35221 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35222 | return resultobj; | |
35223 | fail: | |
35224 | return NULL; | |
35225 | } | |
35226 | ||
35227 | ||
35228 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35229 | PyObject *resultobj = 0; | |
35230 | wxRendererNative *result = 0 ; | |
35231 | ||
35232 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
35233 | { | |
704eda0c | 35234 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 35235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 35236 | { |
0085ce49 RD |
35237 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
35238 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 35239 | } |
0085ce49 RD |
35240 | wxPyEndAllowThreads(__tstate); |
35241 | if (PyErr_Occurred()) SWIG_fail; | |
35242 | } | |
35243 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35244 | return resultobj; | |
35245 | fail: | |
35246 | return NULL; | |
35247 | } | |
35248 | ||
35249 | ||
35250 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35251 | PyObject *resultobj = 0; | |
35252 | wxRendererNative *result = 0 ; | |
35253 | ||
35254 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
35255 | { | |
704eda0c | 35256 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 35257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 35258 | { |
0085ce49 RD |
35259 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
35260 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 35261 | } |
0085ce49 RD |
35262 | wxPyEndAllowThreads(__tstate); |
35263 | if (PyErr_Occurred()) SWIG_fail; | |
35264 | } | |
35265 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35266 | return resultobj; | |
35267 | fail: | |
35268 | return NULL; | |
35269 | } | |
35270 | ||
35271 | ||
35272 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35273 | PyObject *resultobj = 0; | |
35274 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35275 | wxRendererNative *result = 0 ; | |
35276 | void *argp1 = 0 ; | |
35277 | int res1 = 0 ; | |
35278 | PyObject * obj0 = 0 ; | |
35279 | char * kwnames[] = { | |
35280 | (char *) "renderer", NULL | |
35281 | }; | |
35282 | ||
35283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
35284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35285 | if (!SWIG_IsOK(res1)) { | |
35286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35287 | } | |
35288 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35289 | { | |
704eda0c | 35290 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 RD |
35291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
35292 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
35293 | wxPyEndAllowThreads(__tstate); | |
35294 | if (PyErr_Occurred()) SWIG_fail; | |
35295 | } | |
35296 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35297 | return resultobj; | |
35298 | fail: | |
35299 | return NULL; | |
35300 | } | |
35301 | ||
35302 | ||
35303 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35304 | PyObject *resultobj = 0; | |
35305 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35306 | SwigValueWrapper<wxRendererVersion > result; | |
35307 | void *argp1 = 0 ; | |
35308 | int res1 = 0 ; | |
35309 | PyObject *swig_obj[1] ; | |
35310 | ||
35311 | if (!args) SWIG_fail; | |
35312 | swig_obj[0] = args; | |
35313 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35314 | if (!SWIG_IsOK(res1)) { | |
35315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
35316 | } | |
35317 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35318 | { | |
35319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35320 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
35321 | wxPyEndAllowThreads(__tstate); | |
35322 | if (PyErr_Occurred()) SWIG_fail; | |
35323 | } | |
35324 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
35325 | return resultobj; | |
35326 | fail: | |
35327 | return NULL; | |
35328 | } | |
35329 | ||
35330 | ||
35331 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35332 | PyObject *obj; | |
35333 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
35334 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
35335 | return SWIG_Py_Void(); | |
35336 | } | |
35337 | ||
27e45892 RD |
35338 | SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
35339 | PyObject *resultobj = 0; | |
35340 | wxPseudoDC *result = 0 ; | |
35341 | ||
35342 | if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail; | |
35343 | { | |
35344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35345 | result = (wxPseudoDC *)new wxPseudoDC(); | |
35346 | wxPyEndAllowThreads(__tstate); | |
35347 | if (PyErr_Occurred()) SWIG_fail; | |
35348 | } | |
35349 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 ); | |
35350 | return resultobj; | |
35351 | fail: | |
35352 | return NULL; | |
35353 | } | |
35354 | ||
35355 | ||
35356 | SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35357 | PyObject *resultobj = 0; | |
35358 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35359 | void *argp1 = 0 ; | |
35360 | int res1 = 0 ; | |
35361 | PyObject *swig_obj[1] ; | |
35362 | ||
35363 | if (!args) SWIG_fail; | |
35364 | swig_obj[0] = args; | |
35365 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35366 | if (!SWIG_IsOK(res1)) { | |
35367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35368 | } | |
35369 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35370 | { | |
35371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35372 | (arg1)->BeginDrawing(); | |
35373 | wxPyEndAllowThreads(__tstate); | |
35374 | if (PyErr_Occurred()) SWIG_fail; | |
35375 | } | |
35376 | resultobj = SWIG_Py_Void(); | |
35377 | return resultobj; | |
35378 | fail: | |
35379 | return NULL; | |
35380 | } | |
35381 | ||
35382 | ||
35383 | SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35384 | PyObject *resultobj = 0; | |
35385 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35386 | void *argp1 = 0 ; | |
35387 | int res1 = 0 ; | |
35388 | PyObject *swig_obj[1] ; | |
35389 | ||
35390 | if (!args) SWIG_fail; | |
35391 | swig_obj[0] = args; | |
35392 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35393 | if (!SWIG_IsOK(res1)) { | |
35394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35395 | } | |
35396 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35397 | { | |
35398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35399 | (arg1)->EndDrawing(); | |
35400 | wxPyEndAllowThreads(__tstate); | |
35401 | if (PyErr_Occurred()) SWIG_fail; | |
35402 | } | |
35403 | resultobj = SWIG_Py_Void(); | |
35404 | return resultobj; | |
35405 | fail: | |
35406 | return NULL; | |
35407 | } | |
35408 | ||
35409 | ||
35410 | SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35411 | PyObject *resultobj = 0; | |
35412 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35413 | void *argp1 = 0 ; | |
35414 | int res1 = 0 ; | |
35415 | PyObject *swig_obj[1] ; | |
35416 | ||
35417 | if (!args) SWIG_fail; | |
35418 | swig_obj[0] = args; | |
35419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 ); | |
35420 | if (!SWIG_IsOK(res1)) { | |
35421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35422 | } | |
35423 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35424 | { | |
35425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35426 | delete arg1; | |
35427 | ||
35428 | wxPyEndAllowThreads(__tstate); | |
35429 | if (PyErr_Occurred()) SWIG_fail; | |
35430 | } | |
35431 | resultobj = SWIG_Py_Void(); | |
35432 | return resultobj; | |
35433 | fail: | |
35434 | return NULL; | |
35435 | } | |
35436 | ||
35437 | ||
35438 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35439 | PyObject *resultobj = 0; | |
35440 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35441 | void *argp1 = 0 ; | |
35442 | int res1 = 0 ; | |
35443 | PyObject *swig_obj[1] ; | |
35444 | ||
35445 | if (!args) SWIG_fail; | |
35446 | swig_obj[0] = args; | |
35447 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35448 | if (!SWIG_IsOK(res1)) { | |
35449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35450 | } | |
35451 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35452 | { | |
35453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35454 | (arg1)->RemoveAll(); | |
35455 | wxPyEndAllowThreads(__tstate); | |
35456 | if (PyErr_Occurred()) SWIG_fail; | |
35457 | } | |
35458 | resultobj = SWIG_Py_Void(); | |
35459 | return resultobj; | |
35460 | fail: | |
35461 | return NULL; | |
35462 | } | |
35463 | ||
35464 | ||
35465 | SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35466 | PyObject *resultobj = 0; | |
35467 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35468 | int result; | |
35469 | void *argp1 = 0 ; | |
35470 | int res1 = 0 ; | |
35471 | PyObject *swig_obj[1] ; | |
35472 | ||
35473 | if (!args) SWIG_fail; | |
35474 | swig_obj[0] = args; | |
35475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35476 | if (!SWIG_IsOK(res1)) { | |
35477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35478 | } | |
35479 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35480 | { | |
35481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35482 | result = (int)(arg1)->GetLen(); | |
35483 | wxPyEndAllowThreads(__tstate); | |
35484 | if (PyErr_Occurred()) SWIG_fail; | |
35485 | } | |
35486 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35487 | return resultobj; | |
35488 | fail: | |
35489 | return NULL; | |
35490 | } | |
35491 | ||
35492 | ||
35493 | SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35494 | PyObject *resultobj = 0; | |
35495 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35496 | int arg2 ; | |
35497 | void *argp1 = 0 ; | |
35498 | int res1 = 0 ; | |
35499 | int val2 ; | |
35500 | int ecode2 = 0 ; | |
35501 | PyObject * obj0 = 0 ; | |
35502 | PyObject * obj1 = 0 ; | |
35503 | char * kwnames[] = { | |
35504 | (char *) "self",(char *) "id", NULL | |
35505 | }; | |
35506 | ||
35507 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
35508 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35509 | if (!SWIG_IsOK(res1)) { | |
35510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35511 | } | |
35512 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35513 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35514 | if (!SWIG_IsOK(ecode2)) { | |
35515 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'"); | |
35516 | } | |
35517 | arg2 = static_cast< int >(val2); | |
35518 | { | |
35519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35520 | (arg1)->SetId(arg2); | |
35521 | wxPyEndAllowThreads(__tstate); | |
35522 | if (PyErr_Occurred()) SWIG_fail; | |
35523 | } | |
35524 | resultobj = SWIG_Py_Void(); | |
35525 | return resultobj; | |
35526 | fail: | |
35527 | return NULL; | |
35528 | } | |
35529 | ||
35530 | ||
35531 | SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35532 | PyObject *resultobj = 0; | |
35533 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35534 | int arg2 ; | |
35535 | void *argp1 = 0 ; | |
35536 | int res1 = 0 ; | |
35537 | int val2 ; | |
35538 | int ecode2 = 0 ; | |
35539 | PyObject * obj0 = 0 ; | |
35540 | PyObject * obj1 = 0 ; | |
35541 | char * kwnames[] = { | |
35542 | (char *) "self",(char *) "id", NULL | |
35543 | }; | |
35544 | ||
35545 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail; | |
35546 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35547 | if (!SWIG_IsOK(res1)) { | |
35548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35549 | } | |
35550 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35551 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35552 | if (!SWIG_IsOK(ecode2)) { | |
35553 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'"); | |
35554 | } | |
35555 | arg2 = static_cast< int >(val2); | |
35556 | { | |
35557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35558 | (arg1)->ClearId(arg2); | |
35559 | wxPyEndAllowThreads(__tstate); | |
35560 | if (PyErr_Occurred()) SWIG_fail; | |
35561 | } | |
35562 | resultobj = SWIG_Py_Void(); | |
35563 | return resultobj; | |
35564 | fail: | |
35565 | return NULL; | |
35566 | } | |
35567 | ||
35568 | ||
35569 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35570 | PyObject *resultobj = 0; | |
35571 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35572 | int arg2 ; | |
35573 | void *argp1 = 0 ; | |
35574 | int res1 = 0 ; | |
35575 | int val2 ; | |
35576 | int ecode2 = 0 ; | |
35577 | PyObject * obj0 = 0 ; | |
35578 | PyObject * obj1 = 0 ; | |
35579 | char * kwnames[] = { | |
35580 | (char *) "self",(char *) "id", NULL | |
35581 | }; | |
35582 | ||
35583 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail; | |
35584 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35585 | if (!SWIG_IsOK(res1)) { | |
35586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35587 | } | |
35588 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35589 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35590 | if (!SWIG_IsOK(ecode2)) { | |
35591 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'"); | |
35592 | } | |
35593 | arg2 = static_cast< int >(val2); | |
35594 | { | |
35595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35596 | (arg1)->RemoveId(arg2); | |
35597 | wxPyEndAllowThreads(__tstate); | |
35598 | if (PyErr_Occurred()) SWIG_fail; | |
35599 | } | |
35600 | resultobj = SWIG_Py_Void(); | |
35601 | return resultobj; | |
35602 | fail: | |
35603 | return NULL; | |
35604 | } | |
35605 | ||
35606 | ||
35607 | SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35608 | PyObject *resultobj = 0; | |
35609 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35610 | int arg2 ; | |
35611 | int arg3 ; | |
35612 | int arg4 ; | |
35613 | void *argp1 = 0 ; | |
35614 | int res1 = 0 ; | |
35615 | int val2 ; | |
35616 | int ecode2 = 0 ; | |
35617 | int val3 ; | |
35618 | int ecode3 = 0 ; | |
35619 | int val4 ; | |
35620 | int ecode4 = 0 ; | |
35621 | PyObject * obj0 = 0 ; | |
35622 | PyObject * obj1 = 0 ; | |
35623 | PyObject * obj2 = 0 ; | |
35624 | PyObject * obj3 = 0 ; | |
35625 | char * kwnames[] = { | |
35626 | (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL | |
35627 | }; | |
35628 | ||
35629 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
35630 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35631 | if (!SWIG_IsOK(res1)) { | |
35632 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35633 | } | |
35634 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35635 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35636 | if (!SWIG_IsOK(ecode2)) { | |
35637 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'"); | |
35638 | } | |
35639 | arg2 = static_cast< int >(val2); | |
35640 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35641 | if (!SWIG_IsOK(ecode3)) { | |
35642 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'"); | |
35643 | } | |
35644 | arg3 = static_cast< int >(val3); | |
35645 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35646 | if (!SWIG_IsOK(ecode4)) { | |
35647 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'"); | |
35648 | } | |
35649 | arg4 = static_cast< int >(val4); | |
35650 | { | |
35651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35652 | (arg1)->TranslateId(arg2,arg3,arg4); | |
35653 | wxPyEndAllowThreads(__tstate); | |
35654 | if (PyErr_Occurred()) SWIG_fail; | |
35655 | } | |
35656 | resultobj = SWIG_Py_Void(); | |
35657 | return resultobj; | |
35658 | fail: | |
35659 | return NULL; | |
35660 | } | |
35661 | ||
35662 | ||
72ef6efb RD |
35663 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35664 | PyObject *resultobj = 0; | |
35665 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35666 | int arg2 ; | |
35667 | bool arg3 = (bool) true ; | |
35668 | void *argp1 = 0 ; | |
35669 | int res1 = 0 ; | |
35670 | int val2 ; | |
35671 | int ecode2 = 0 ; | |
35672 | bool val3 ; | |
35673 | int ecode3 = 0 ; | |
35674 | PyObject * obj0 = 0 ; | |
35675 | PyObject * obj1 = 0 ; | |
35676 | PyObject * obj2 = 0 ; | |
35677 | char * kwnames[] = { | |
35678 | (char *) "self",(char *) "id",(char *) "greyout", NULL | |
35679 | }; | |
35680 | ||
35681 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35682 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35683 | if (!SWIG_IsOK(res1)) { | |
35684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35685 | } | |
35686 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35687 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35688 | if (!SWIG_IsOK(ecode2)) { | |
35689 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
35690 | } | |
35691 | arg2 = static_cast< int >(val2); | |
35692 | if (obj2) { | |
35693 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
35694 | if (!SWIG_IsOK(ecode3)) { | |
35695 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'"); | |
35696 | } | |
35697 | arg3 = static_cast< bool >(val3); | |
35698 | } | |
35699 | { | |
35700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35701 | (arg1)->SetIdGreyedOut(arg2,arg3); | |
35702 | wxPyEndAllowThreads(__tstate); | |
35703 | if (PyErr_Occurred()) SWIG_fail; | |
35704 | } | |
35705 | resultobj = SWIG_Py_Void(); | |
35706 | return resultobj; | |
35707 | fail: | |
35708 | return NULL; | |
35709 | } | |
35710 | ||
35711 | ||
35712 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35713 | PyObject *resultobj = 0; | |
35714 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35715 | int arg2 ; | |
35716 | bool result; | |
35717 | void *argp1 = 0 ; | |
35718 | int res1 = 0 ; | |
35719 | int val2 ; | |
35720 | int ecode2 = 0 ; | |
35721 | PyObject * obj0 = 0 ; | |
35722 | PyObject * obj1 = 0 ; | |
35723 | char * kwnames[] = { | |
35724 | (char *) "self",(char *) "id", NULL | |
35725 | }; | |
35726 | ||
35727 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail; | |
35728 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35729 | if (!SWIG_IsOK(res1)) { | |
35730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35731 | } | |
35732 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35733 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35734 | if (!SWIG_IsOK(ecode2)) { | |
35735 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
35736 | } | |
35737 | arg2 = static_cast< int >(val2); | |
35738 | { | |
35739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35740 | result = (bool)(arg1)->GetIdGreyedOut(arg2); | |
35741 | wxPyEndAllowThreads(__tstate); | |
35742 | if (PyErr_Occurred()) SWIG_fail; | |
35743 | } | |
35744 | { | |
35745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35746 | } | |
35747 | return resultobj; | |
35748 | fail: | |
35749 | return NULL; | |
35750 | } | |
35751 | ||
35752 | ||
35753 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35754 | PyObject *resultobj = 0; | |
35755 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35756 | int arg2 ; | |
35757 | int arg3 ; | |
35758 | int arg4 = (int) 1 ; | |
59ccbf7f RD |
35759 | wxColour const &arg5_defvalue = *wxWHITE ; |
35760 | wxColour *arg5 = (wxColour *) &arg5_defvalue ; | |
72ef6efb RD |
35761 | PyObject *result = 0 ; |
35762 | void *argp1 = 0 ; | |
35763 | int res1 = 0 ; | |
35764 | int val2 ; | |
35765 | int ecode2 = 0 ; | |
35766 | int val3 ; | |
35767 | int ecode3 = 0 ; | |
35768 | int val4 ; | |
35769 | int ecode4 = 0 ; | |
59ccbf7f | 35770 | wxColour temp5 ; |
72ef6efb RD |
35771 | PyObject * obj0 = 0 ; |
35772 | PyObject * obj1 = 0 ; | |
35773 | PyObject * obj2 = 0 ; | |
35774 | PyObject * obj3 = 0 ; | |
35775 | PyObject * obj4 = 0 ; | |
35776 | char * kwnames[] = { | |
35777 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL | |
35778 | }; | |
35779 | ||
35780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35781 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35782 | if (!SWIG_IsOK(res1)) { | |
35783 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35784 | } | |
35785 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35786 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35787 | if (!SWIG_IsOK(ecode2)) { | |
35788 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'"); | |
35789 | } | |
35790 | arg2 = static_cast< int >(val2); | |
35791 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35792 | if (!SWIG_IsOK(ecode3)) { | |
35793 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'"); | |
35794 | } | |
35795 | arg3 = static_cast< int >(val3); | |
35796 | if (obj3) { | |
35797 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
35798 | if (!SWIG_IsOK(ecode4)) { | |
35799 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'"); | |
35800 | } | |
35801 | arg4 = static_cast< int >(val4); | |
35802 | } | |
35803 | if (obj4) { | |
59ccbf7f RD |
35804 | { |
35805 | arg5 = &temp5; | |
35806 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
72ef6efb | 35807 | } |
72ef6efb RD |
35808 | } |
35809 | { | |
59ccbf7f | 35810 | result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5); |
72ef6efb RD |
35811 | if (PyErr_Occurred()) SWIG_fail; |
35812 | } | |
35813 | resultobj = result; | |
35814 | return resultobj; | |
35815 | fail: | |
35816 | return NULL; | |
35817 | } | |
35818 | ||
35819 | ||
35820 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35821 | PyObject *resultobj = 0; | |
35822 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35823 | int arg2 ; | |
35824 | int arg3 ; | |
35825 | PyObject *result = 0 ; | |
35826 | void *argp1 = 0 ; | |
35827 | int res1 = 0 ; | |
35828 | int val2 ; | |
35829 | int ecode2 = 0 ; | |
35830 | int val3 ; | |
35831 | int ecode3 = 0 ; | |
35832 | PyObject * obj0 = 0 ; | |
35833 | PyObject * obj1 = 0 ; | |
35834 | PyObject * obj2 = 0 ; | |
35835 | char * kwnames[] = { | |
35836 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35837 | }; | |
35838 | ||
35839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35841 | if (!SWIG_IsOK(res1)) { | |
35842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35843 | } | |
35844 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35845 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35846 | if (!SWIG_IsOK(ecode2)) { | |
35847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'"); | |
35848 | } | |
35849 | arg2 = static_cast< int >(val2); | |
35850 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
35851 | if (!SWIG_IsOK(ecode3)) { | |
35852 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'"); | |
35853 | } | |
35854 | arg3 = static_cast< int >(val3); | |
35855 | { | |
35856 | result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3); | |
35857 | if (PyErr_Occurred()) SWIG_fail; | |
35858 | } | |
35859 | resultobj = result; | |
35860 | return resultobj; | |
35861 | fail: | |
35862 | return NULL; | |
35863 | } | |
35864 | ||
35865 | ||
27e45892 RD |
35866 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35867 | PyObject *resultobj = 0; | |
35868 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35869 | int arg2 ; | |
35870 | wxDC *arg3 = (wxDC *) 0 ; | |
35871 | void *argp1 = 0 ; | |
35872 | int res1 = 0 ; | |
35873 | int val2 ; | |
35874 | int ecode2 = 0 ; | |
35875 | void *argp3 = 0 ; | |
35876 | int res3 = 0 ; | |
35877 | PyObject * obj0 = 0 ; | |
35878 | PyObject * obj1 = 0 ; | |
35879 | PyObject * obj2 = 0 ; | |
35880 | char * kwnames[] = { | |
35881 | (char *) "self",(char *) "id",(char *) "dc", NULL | |
35882 | }; | |
35883 | ||
35884 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35885 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35886 | if (!SWIG_IsOK(res1)) { | |
35887 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35888 | } | |
35889 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35890 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35891 | if (!SWIG_IsOK(ecode2)) { | |
35892 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'"); | |
35893 | } | |
35894 | arg2 = static_cast< int >(val2); | |
35895 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 ); | |
35896 | if (!SWIG_IsOK(res3)) { | |
35897 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'"); | |
35898 | } | |
35899 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35900 | { | |
35901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35902 | (arg1)->DrawIdToDC(arg2,arg3); | |
35903 | wxPyEndAllowThreads(__tstate); | |
35904 | if (PyErr_Occurred()) SWIG_fail; | |
35905 | } | |
35906 | resultobj = SWIG_Py_Void(); | |
35907 | return resultobj; | |
35908 | fail: | |
35909 | return NULL; | |
35910 | } | |
35911 | ||
35912 | ||
35913 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35914 | PyObject *resultobj = 0; | |
35915 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35916 | int arg2 ; | |
35917 | wxRect *arg3 = 0 ; | |
35918 | void *argp1 = 0 ; | |
35919 | int res1 = 0 ; | |
35920 | int val2 ; | |
35921 | int ecode2 = 0 ; | |
35922 | wxRect temp3 ; | |
35923 | PyObject * obj0 = 0 ; | |
35924 | PyObject * obj1 = 0 ; | |
35925 | PyObject * obj2 = 0 ; | |
35926 | char * kwnames[] = { | |
35927 | (char *) "self",(char *) "id",(char *) "rect", NULL | |
35928 | }; | |
35929 | ||
35930 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
35931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35932 | if (!SWIG_IsOK(res1)) { | |
35933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35934 | } | |
35935 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35936 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35937 | if (!SWIG_IsOK(ecode2)) { | |
35938 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
35939 | } | |
35940 | arg2 = static_cast< int >(val2); | |
35941 | { | |
35942 | arg3 = &temp3; | |
35943 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
35944 | } | |
35945 | { | |
35946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35947 | (arg1)->SetIdBounds(arg2,*arg3); | |
35948 | wxPyEndAllowThreads(__tstate); | |
35949 | if (PyErr_Occurred()) SWIG_fail; | |
35950 | } | |
35951 | resultobj = SWIG_Py_Void(); | |
35952 | return resultobj; | |
35953 | fail: | |
35954 | return NULL; | |
35955 | } | |
35956 | ||
35957 | ||
35958 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35959 | PyObject *resultobj = 0; | |
35960 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35961 | int arg2 ; | |
35962 | wxRect result; | |
35963 | void *argp1 = 0 ; | |
35964 | int res1 = 0 ; | |
35965 | int val2 ; | |
35966 | int ecode2 = 0 ; | |
35967 | PyObject * obj0 = 0 ; | |
35968 | PyObject * obj1 = 0 ; | |
35969 | char * kwnames[] = { | |
35970 | (char *) "self",(char *) "id", NULL | |
35971 | }; | |
35972 | ||
35973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail; | |
35974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35975 | if (!SWIG_IsOK(res1)) { | |
35976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35977 | } | |
35978 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35979 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35980 | if (!SWIG_IsOK(ecode2)) { | |
35981 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
35982 | } | |
35983 | arg2 = static_cast< int >(val2); | |
35984 | { | |
35985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35986 | result = wxPseudoDC_GetIdBounds(arg1,arg2); | |
35987 | wxPyEndAllowThreads(__tstate); | |
35988 | if (PyErr_Occurred()) SWIG_fail; | |
35989 | } | |
35990 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
35991 | return resultobj; | |
35992 | fail: | |
35993 | return NULL; | |
35994 | } | |
35995 | ||
35996 | ||
35997 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35998 | PyObject *resultobj = 0; | |
35999 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36000 | wxDC *arg2 = (wxDC *) 0 ; | |
36001 | wxRect *arg3 = 0 ; | |
36002 | void *argp1 = 0 ; | |
36003 | int res1 = 0 ; | |
36004 | void *argp2 = 0 ; | |
36005 | int res2 = 0 ; | |
36006 | wxRect temp3 ; | |
36007 | PyObject * obj0 = 0 ; | |
36008 | PyObject * obj1 = 0 ; | |
36009 | PyObject * obj2 = 0 ; | |
36010 | char * kwnames[] = { | |
36011 | (char *) "self",(char *) "dc",(char *) "rect", NULL | |
36012 | }; | |
36013 | ||
36014 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36015 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36016 | if (!SWIG_IsOK(res1)) { | |
36017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36018 | } | |
36019 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36020 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36021 | if (!SWIG_IsOK(res2)) { | |
36022 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36023 | } | |
36024 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36025 | { | |
36026 | arg3 = &temp3; | |
36027 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
36028 | } | |
36029 | { | |
36030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36031 | (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3); | |
36032 | wxPyEndAllowThreads(__tstate); | |
36033 | if (PyErr_Occurred()) SWIG_fail; | |
36034 | } | |
36035 | resultobj = SWIG_Py_Void(); | |
36036 | return resultobj; | |
36037 | fail: | |
36038 | return NULL; | |
36039 | } | |
36040 | ||
36041 | ||
36042 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36043 | PyObject *resultobj = 0; | |
36044 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36045 | wxDC *arg2 = (wxDC *) 0 ; | |
36046 | wxRegion *arg3 = 0 ; | |
36047 | void *argp1 = 0 ; | |
36048 | int res1 = 0 ; | |
36049 | void *argp2 = 0 ; | |
36050 | int res2 = 0 ; | |
36051 | void *argp3 = 0 ; | |
36052 | int res3 = 0 ; | |
36053 | PyObject * obj0 = 0 ; | |
36054 | PyObject * obj1 = 0 ; | |
36055 | PyObject * obj2 = 0 ; | |
36056 | char * kwnames[] = { | |
36057 | (char *) "self",(char *) "dc",(char *) "region", NULL | |
36058 | }; | |
36059 | ||
36060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36062 | if (!SWIG_IsOK(res1)) { | |
36063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36064 | } | |
36065 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36066 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36067 | if (!SWIG_IsOK(res2)) { | |
36068 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36069 | } | |
36070 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36071 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0); | |
36072 | if (!SWIG_IsOK(res3)) { | |
36073 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
36074 | } | |
36075 | if (!argp3) { | |
36076 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
36077 | } | |
36078 | arg3 = reinterpret_cast< wxRegion * >(argp3); | |
36079 | { | |
36080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36081 | (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3); | |
36082 | wxPyEndAllowThreads(__tstate); | |
36083 | if (PyErr_Occurred()) SWIG_fail; | |
36084 | } | |
36085 | resultobj = SWIG_Py_Void(); | |
36086 | return resultobj; | |
36087 | fail: | |
36088 | return NULL; | |
36089 | } | |
36090 | ||
36091 | ||
36092 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36093 | PyObject *resultobj = 0; | |
36094 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36095 | wxDC *arg2 = (wxDC *) 0 ; | |
36096 | void *argp1 = 0 ; | |
36097 | int res1 = 0 ; | |
36098 | void *argp2 = 0 ; | |
36099 | int res2 = 0 ; | |
36100 | PyObject * obj0 = 0 ; | |
36101 | PyObject * obj1 = 0 ; | |
36102 | char * kwnames[] = { | |
36103 | (char *) "self",(char *) "dc", NULL | |
36104 | }; | |
36105 | ||
36106 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
36107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36108 | if (!SWIG_IsOK(res1)) { | |
36109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36110 | } | |
36111 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36112 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36113 | if (!SWIG_IsOK(res2)) { | |
36114 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36115 | } | |
36116 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36117 | { | |
36118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36119 | (arg1)->DrawToDC(arg2); | |
36120 | wxPyEndAllowThreads(__tstate); | |
36121 | if (PyErr_Occurred()) SWIG_fail; | |
36122 | } | |
36123 | resultobj = SWIG_Py_Void(); | |
36124 | return resultobj; | |
36125 | fail: | |
36126 | return NULL; | |
36127 | } | |
36128 | ||
36129 | ||
36130 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36131 | PyObject *resultobj = 0; | |
36132 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36133 | int arg2 ; | |
36134 | int arg3 ; | |
36135 | wxColour *arg4 = 0 ; | |
36136 | int arg5 = (int) wxFLOOD_SURFACE ; | |
36137 | void *argp1 = 0 ; | |
36138 | int res1 = 0 ; | |
36139 | int val2 ; | |
36140 | int ecode2 = 0 ; | |
36141 | int val3 ; | |
36142 | int ecode3 = 0 ; | |
36143 | wxColour temp4 ; | |
36144 | int val5 ; | |
36145 | int ecode5 = 0 ; | |
36146 | PyObject * obj0 = 0 ; | |
36147 | PyObject * obj1 = 0 ; | |
36148 | PyObject * obj2 = 0 ; | |
36149 | PyObject * obj3 = 0 ; | |
36150 | PyObject * obj4 = 0 ; | |
36151 | char * kwnames[] = { | |
36152 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
36153 | }; | |
36154 | ||
36155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36157 | if (!SWIG_IsOK(res1)) { | |
36158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36159 | } | |
36160 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36161 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36162 | if (!SWIG_IsOK(ecode2)) { | |
36163 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
36164 | } | |
36165 | arg2 = static_cast< int >(val2); | |
36166 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36167 | if (!SWIG_IsOK(ecode3)) { | |
36168 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
36169 | } | |
36170 | arg3 = static_cast< int >(val3); | |
36171 | { | |
36172 | arg4 = &temp4; | |
36173 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
36174 | } | |
36175 | if (obj4) { | |
36176 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36177 | if (!SWIG_IsOK(ecode5)) { | |
36178 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
36179 | } | |
36180 | arg5 = static_cast< int >(val5); | |
36181 | } | |
36182 | { | |
36183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36184 | (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
36185 | wxPyEndAllowThreads(__tstate); | |
36186 | if (PyErr_Occurred()) SWIG_fail; | |
36187 | } | |
36188 | resultobj = SWIG_Py_Void(); | |
36189 | return resultobj; | |
36190 | fail: | |
36191 | return NULL; | |
36192 | } | |
36193 | ||
36194 | ||
36195 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36196 | PyObject *resultobj = 0; | |
36197 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36198 | wxPoint *arg2 = 0 ; | |
36199 | wxColour *arg3 = 0 ; | |
36200 | int arg4 = (int) wxFLOOD_SURFACE ; | |
36201 | void *argp1 = 0 ; | |
36202 | int res1 = 0 ; | |
36203 | wxPoint temp2 ; | |
36204 | wxColour temp3 ; | |
36205 | int val4 ; | |
36206 | int ecode4 = 0 ; | |
36207 | PyObject * obj0 = 0 ; | |
36208 | PyObject * obj1 = 0 ; | |
36209 | PyObject * obj2 = 0 ; | |
36210 | PyObject * obj3 = 0 ; | |
36211 | char * kwnames[] = { | |
36212 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
36213 | }; | |
36214 | ||
36215 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36216 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36217 | if (!SWIG_IsOK(res1)) { | |
36218 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36219 | } | |
36220 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36221 | { | |
36222 | arg2 = &temp2; | |
36223 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36224 | } | |
36225 | { | |
36226 | arg3 = &temp3; | |
36227 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
36228 | } | |
36229 | if (obj3) { | |
36230 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36231 | if (!SWIG_IsOK(ecode4)) { | |
36232 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
36233 | } | |
36234 | arg4 = static_cast< int >(val4); | |
36235 | } | |
36236 | { | |
36237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36238 | (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
36239 | wxPyEndAllowThreads(__tstate); | |
36240 | if (PyErr_Occurred()) SWIG_fail; | |
36241 | } | |
36242 | resultobj = SWIG_Py_Void(); | |
36243 | return resultobj; | |
36244 | fail: | |
36245 | return NULL; | |
36246 | } | |
36247 | ||
36248 | ||
36249 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36250 | PyObject *resultobj = 0; | |
36251 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36252 | int arg2 ; | |
36253 | int arg3 ; | |
36254 | int arg4 ; | |
36255 | int arg5 ; | |
36256 | void *argp1 = 0 ; | |
36257 | int res1 = 0 ; | |
36258 | int val2 ; | |
36259 | int ecode2 = 0 ; | |
36260 | int val3 ; | |
36261 | int ecode3 = 0 ; | |
36262 | int val4 ; | |
36263 | int ecode4 = 0 ; | |
36264 | int val5 ; | |
36265 | int ecode5 = 0 ; | |
36266 | PyObject * obj0 = 0 ; | |
36267 | PyObject * obj1 = 0 ; | |
36268 | PyObject * obj2 = 0 ; | |
36269 | PyObject * obj3 = 0 ; | |
36270 | PyObject * obj4 = 0 ; | |
36271 | char * kwnames[] = { | |
36272 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
36273 | }; | |
36274 | ||
36275 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36276 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36277 | if (!SWIG_IsOK(res1)) { | |
36278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36279 | } | |
36280 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36281 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36282 | if (!SWIG_IsOK(ecode2)) { | |
36283 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
36284 | } | |
36285 | arg2 = static_cast< int >(val2); | |
36286 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36287 | if (!SWIG_IsOK(ecode3)) { | |
36288 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
36289 | } | |
36290 | arg3 = static_cast< int >(val3); | |
36291 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36292 | if (!SWIG_IsOK(ecode4)) { | |
36293 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
36294 | } | |
36295 | arg4 = static_cast< int >(val4); | |
36296 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36297 | if (!SWIG_IsOK(ecode5)) { | |
36298 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
36299 | } | |
36300 | arg5 = static_cast< int >(val5); | |
36301 | { | |
36302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36303 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
36304 | wxPyEndAllowThreads(__tstate); | |
36305 | if (PyErr_Occurred()) SWIG_fail; | |
36306 | } | |
36307 | resultobj = SWIG_Py_Void(); | |
36308 | return resultobj; | |
36309 | fail: | |
36310 | return NULL; | |
36311 | } | |
36312 | ||
36313 | ||
36314 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36315 | PyObject *resultobj = 0; | |
36316 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36317 | wxPoint *arg2 = 0 ; | |
36318 | wxPoint *arg3 = 0 ; | |
36319 | void *argp1 = 0 ; | |
36320 | int res1 = 0 ; | |
36321 | wxPoint temp2 ; | |
36322 | wxPoint temp3 ; | |
36323 | PyObject * obj0 = 0 ; | |
36324 | PyObject * obj1 = 0 ; | |
36325 | PyObject * obj2 = 0 ; | |
36326 | char * kwnames[] = { | |
36327 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
36328 | }; | |
36329 | ||
36330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36332 | if (!SWIG_IsOK(res1)) { | |
36333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36334 | } | |
36335 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36336 | { | |
36337 | arg2 = &temp2; | |
36338 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36339 | } | |
36340 | { | |
36341 | arg3 = &temp3; | |
36342 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36343 | } | |
36344 | { | |
36345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36346 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
36347 | wxPyEndAllowThreads(__tstate); | |
36348 | if (PyErr_Occurred()) SWIG_fail; | |
36349 | } | |
36350 | resultobj = SWIG_Py_Void(); | |
36351 | return resultobj; | |
36352 | fail: | |
36353 | return NULL; | |
36354 | } | |
36355 | ||
36356 | ||
36357 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36358 | PyObject *resultobj = 0; | |
36359 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36360 | int arg2 ; | |
36361 | int arg3 ; | |
36362 | void *argp1 = 0 ; | |
36363 | int res1 = 0 ; | |
36364 | int val2 ; | |
36365 | int ecode2 = 0 ; | |
36366 | int val3 ; | |
36367 | int ecode3 = 0 ; | |
36368 | PyObject * obj0 = 0 ; | |
36369 | PyObject * obj1 = 0 ; | |
36370 | PyObject * obj2 = 0 ; | |
36371 | char * kwnames[] = { | |
36372 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36373 | }; | |
36374 | ||
36375 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36376 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36377 | if (!SWIG_IsOK(res1)) { | |
36378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36379 | } | |
36380 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36381 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36382 | if (!SWIG_IsOK(ecode2)) { | |
36383 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
36384 | } | |
36385 | arg2 = static_cast< int >(val2); | |
36386 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36387 | if (!SWIG_IsOK(ecode3)) { | |
36388 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
36389 | } | |
36390 | arg3 = static_cast< int >(val3); | |
36391 | { | |
36392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36393 | (arg1)->CrossHair(arg2,arg3); | |
36394 | wxPyEndAllowThreads(__tstate); | |
36395 | if (PyErr_Occurred()) SWIG_fail; | |
36396 | } | |
36397 | resultobj = SWIG_Py_Void(); | |
36398 | return resultobj; | |
36399 | fail: | |
36400 | return NULL; | |
36401 | } | |
36402 | ||
36403 | ||
36404 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36405 | PyObject *resultobj = 0; | |
36406 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36407 | wxPoint *arg2 = 0 ; | |
36408 | void *argp1 = 0 ; | |
36409 | int res1 = 0 ; | |
36410 | wxPoint temp2 ; | |
36411 | PyObject * obj0 = 0 ; | |
36412 | PyObject * obj1 = 0 ; | |
36413 | char * kwnames[] = { | |
36414 | (char *) "self",(char *) "pt", NULL | |
36415 | }; | |
36416 | ||
36417 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
36418 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36419 | if (!SWIG_IsOK(res1)) { | |
36420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36421 | } | |
36422 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36423 | { | |
36424 | arg2 = &temp2; | |
36425 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36426 | } | |
36427 | { | |
36428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36429 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
36430 | wxPyEndAllowThreads(__tstate); | |
36431 | if (PyErr_Occurred()) SWIG_fail; | |
36432 | } | |
36433 | resultobj = SWIG_Py_Void(); | |
36434 | return resultobj; | |
36435 | fail: | |
36436 | return NULL; | |
36437 | } | |
36438 | ||
36439 | ||
36440 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36441 | PyObject *resultobj = 0; | |
36442 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36443 | int arg2 ; | |
36444 | int arg3 ; | |
36445 | int arg4 ; | |
36446 | int arg5 ; | |
36447 | int arg6 ; | |
36448 | int arg7 ; | |
36449 | void *argp1 = 0 ; | |
36450 | int res1 = 0 ; | |
36451 | int val2 ; | |
36452 | int ecode2 = 0 ; | |
36453 | int val3 ; | |
36454 | int ecode3 = 0 ; | |
36455 | int val4 ; | |
36456 | int ecode4 = 0 ; | |
36457 | int val5 ; | |
36458 | int ecode5 = 0 ; | |
36459 | int val6 ; | |
36460 | int ecode6 = 0 ; | |
36461 | int val7 ; | |
36462 | int ecode7 = 0 ; | |
36463 | PyObject * obj0 = 0 ; | |
36464 | PyObject * obj1 = 0 ; | |
36465 | PyObject * obj2 = 0 ; | |
36466 | PyObject * obj3 = 0 ; | |
36467 | PyObject * obj4 = 0 ; | |
36468 | PyObject * obj5 = 0 ; | |
36469 | PyObject * obj6 = 0 ; | |
36470 | char * kwnames[] = { | |
36471 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
36472 | }; | |
36473 | ||
36474 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36475 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36476 | if (!SWIG_IsOK(res1)) { | |
36477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36478 | } | |
36479 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36480 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36481 | if (!SWIG_IsOK(ecode2)) { | |
36482 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
36483 | } | |
36484 | arg2 = static_cast< int >(val2); | |
36485 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36486 | if (!SWIG_IsOK(ecode3)) { | |
36487 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
36488 | } | |
36489 | arg3 = static_cast< int >(val3); | |
36490 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36491 | if (!SWIG_IsOK(ecode4)) { | |
36492 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
36493 | } | |
36494 | arg4 = static_cast< int >(val4); | |
36495 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36496 | if (!SWIG_IsOK(ecode5)) { | |
36497 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
36498 | } | |
36499 | arg5 = static_cast< int >(val5); | |
36500 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
36501 | if (!SWIG_IsOK(ecode6)) { | |
36502 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
36503 | } | |
36504 | arg6 = static_cast< int >(val6); | |
36505 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
36506 | if (!SWIG_IsOK(ecode7)) { | |
36507 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
36508 | } | |
36509 | arg7 = static_cast< int >(val7); | |
36510 | { | |
36511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36512 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
36513 | wxPyEndAllowThreads(__tstate); | |
36514 | if (PyErr_Occurred()) SWIG_fail; | |
36515 | } | |
36516 | resultobj = SWIG_Py_Void(); | |
36517 | return resultobj; | |
36518 | fail: | |
36519 | return NULL; | |
36520 | } | |
36521 | ||
36522 | ||
36523 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36524 | PyObject *resultobj = 0; | |
36525 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36526 | wxPoint *arg2 = 0 ; | |
36527 | wxPoint *arg3 = 0 ; | |
36528 | wxPoint *arg4 = 0 ; | |
36529 | void *argp1 = 0 ; | |
36530 | int res1 = 0 ; | |
36531 | wxPoint temp2 ; | |
36532 | wxPoint temp3 ; | |
36533 | wxPoint temp4 ; | |
36534 | PyObject * obj0 = 0 ; | |
36535 | PyObject * obj1 = 0 ; | |
36536 | PyObject * obj2 = 0 ; | |
36537 | PyObject * obj3 = 0 ; | |
36538 | char * kwnames[] = { | |
36539 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
36540 | }; | |
36541 | ||
36542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36544 | if (!SWIG_IsOK(res1)) { | |
36545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36546 | } | |
36547 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36548 | { | |
36549 | arg2 = &temp2; | |
36550 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36551 | } | |
36552 | { | |
36553 | arg3 = &temp3; | |
36554 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
36555 | } | |
36556 | { | |
36557 | arg4 = &temp4; | |
36558 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
36559 | } | |
36560 | { | |
36561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36562 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
36563 | wxPyEndAllowThreads(__tstate); | |
36564 | if (PyErr_Occurred()) SWIG_fail; | |
36565 | } | |
36566 | resultobj = SWIG_Py_Void(); | |
36567 | return resultobj; | |
36568 | fail: | |
36569 | return NULL; | |
36570 | } | |
36571 | ||
36572 | ||
36573 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36574 | PyObject *resultobj = 0; | |
36575 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36576 | int arg2 ; | |
36577 | int arg3 ; | |
36578 | int arg4 ; | |
36579 | int arg5 ; | |
36580 | void *argp1 = 0 ; | |
36581 | int res1 = 0 ; | |
36582 | int val2 ; | |
36583 | int ecode2 = 0 ; | |
36584 | int val3 ; | |
36585 | int ecode3 = 0 ; | |
36586 | int val4 ; | |
36587 | int ecode4 = 0 ; | |
36588 | int val5 ; | |
36589 | int ecode5 = 0 ; | |
36590 | PyObject * obj0 = 0 ; | |
36591 | PyObject * obj1 = 0 ; | |
36592 | PyObject * obj2 = 0 ; | |
36593 | PyObject * obj3 = 0 ; | |
36594 | PyObject * obj4 = 0 ; | |
36595 | char * kwnames[] = { | |
36596 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36597 | }; | |
36598 | ||
36599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36600 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36601 | if (!SWIG_IsOK(res1)) { | |
36602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36603 | } | |
36604 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36605 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36606 | if (!SWIG_IsOK(ecode2)) { | |
36607 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
36608 | } | |
36609 | arg2 = static_cast< int >(val2); | |
36610 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36611 | if (!SWIG_IsOK(ecode3)) { | |
36612 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
36613 | } | |
36614 | arg3 = static_cast< int >(val3); | |
36615 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36616 | if (!SWIG_IsOK(ecode4)) { | |
36617 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
36618 | } | |
36619 | arg4 = static_cast< int >(val4); | |
36620 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36621 | if (!SWIG_IsOK(ecode5)) { | |
36622 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
36623 | } | |
36624 | arg5 = static_cast< int >(val5); | |
36625 | { | |
36626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36627 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
36628 | wxPyEndAllowThreads(__tstate); | |
36629 | if (PyErr_Occurred()) SWIG_fail; | |
36630 | } | |
36631 | resultobj = SWIG_Py_Void(); | |
36632 | return resultobj; | |
36633 | fail: | |
36634 | return NULL; | |
36635 | } | |
36636 | ||
36637 | ||
36638 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36639 | PyObject *resultobj = 0; | |
36640 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36641 | wxRect *arg2 = 0 ; | |
36642 | void *argp1 = 0 ; | |
36643 | int res1 = 0 ; | |
36644 | wxRect temp2 ; | |
36645 | PyObject * obj0 = 0 ; | |
36646 | PyObject * obj1 = 0 ; | |
36647 | char * kwnames[] = { | |
36648 | (char *) "self",(char *) "rect", NULL | |
36649 | }; | |
36650 | ||
36651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
36652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36653 | if (!SWIG_IsOK(res1)) { | |
36654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36655 | } | |
36656 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36657 | { | |
36658 | arg2 = &temp2; | |
36659 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36660 | } | |
36661 | { | |
36662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36663 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
36664 | wxPyEndAllowThreads(__tstate); | |
36665 | if (PyErr_Occurred()) SWIG_fail; | |
36666 | } | |
36667 | resultobj = SWIG_Py_Void(); | |
36668 | return resultobj; | |
36669 | fail: | |
36670 | return NULL; | |
36671 | } | |
36672 | ||
36673 | ||
36674 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36675 | PyObject *resultobj = 0; | |
36676 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36677 | int arg2 ; | |
36678 | int arg3 ; | |
36679 | int arg4 ; | |
36680 | int arg5 ; | |
36681 | double arg6 ; | |
36682 | double arg7 ; | |
36683 | void *argp1 = 0 ; | |
36684 | int res1 = 0 ; | |
36685 | int val2 ; | |
36686 | int ecode2 = 0 ; | |
36687 | int val3 ; | |
36688 | int ecode3 = 0 ; | |
36689 | int val4 ; | |
36690 | int ecode4 = 0 ; | |
36691 | int val5 ; | |
36692 | int ecode5 = 0 ; | |
36693 | double val6 ; | |
36694 | int ecode6 = 0 ; | |
36695 | double val7 ; | |
36696 | int ecode7 = 0 ; | |
36697 | PyObject * obj0 = 0 ; | |
36698 | PyObject * obj1 = 0 ; | |
36699 | PyObject * obj2 = 0 ; | |
36700 | PyObject * obj3 = 0 ; | |
36701 | PyObject * obj4 = 0 ; | |
36702 | PyObject * obj5 = 0 ; | |
36703 | PyObject * obj6 = 0 ; | |
36704 | char * kwnames[] = { | |
36705 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
36706 | }; | |
36707 | ||
36708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
36709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36710 | if (!SWIG_IsOK(res1)) { | |
36711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36712 | } | |
36713 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36714 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36715 | if (!SWIG_IsOK(ecode2)) { | |
36716 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
36717 | } | |
36718 | arg2 = static_cast< int >(val2); | |
36719 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36720 | if (!SWIG_IsOK(ecode3)) { | |
36721 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
36722 | } | |
36723 | arg3 = static_cast< int >(val3); | |
36724 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36725 | if (!SWIG_IsOK(ecode4)) { | |
36726 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
36727 | } | |
36728 | arg4 = static_cast< int >(val4); | |
36729 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36730 | if (!SWIG_IsOK(ecode5)) { | |
36731 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
36732 | } | |
36733 | arg5 = static_cast< int >(val5); | |
36734 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
36735 | if (!SWIG_IsOK(ecode6)) { | |
36736 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
36737 | } | |
36738 | arg6 = static_cast< double >(val6); | |
36739 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
36740 | if (!SWIG_IsOK(ecode7)) { | |
36741 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
36742 | } | |
36743 | arg7 = static_cast< double >(val7); | |
36744 | { | |
36745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36746 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
36747 | wxPyEndAllowThreads(__tstate); | |
36748 | if (PyErr_Occurred()) SWIG_fail; | |
36749 | } | |
36750 | resultobj = SWIG_Py_Void(); | |
36751 | return resultobj; | |
36752 | fail: | |
36753 | return NULL; | |
36754 | } | |
36755 | ||
36756 | ||
36757 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36758 | PyObject *resultobj = 0; | |
36759 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36760 | wxPoint *arg2 = 0 ; | |
36761 | wxSize *arg3 = 0 ; | |
36762 | double arg4 ; | |
36763 | double arg5 ; | |
36764 | void *argp1 = 0 ; | |
36765 | int res1 = 0 ; | |
36766 | wxPoint temp2 ; | |
36767 | wxSize temp3 ; | |
36768 | double val4 ; | |
36769 | int ecode4 = 0 ; | |
36770 | double val5 ; | |
36771 | int ecode5 = 0 ; | |
36772 | PyObject * obj0 = 0 ; | |
36773 | PyObject * obj1 = 0 ; | |
36774 | PyObject * obj2 = 0 ; | |
36775 | PyObject * obj3 = 0 ; | |
36776 | PyObject * obj4 = 0 ; | |
36777 | char * kwnames[] = { | |
36778 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
36779 | }; | |
36780 | ||
36781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36783 | if (!SWIG_IsOK(res1)) { | |
36784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36785 | } | |
36786 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36787 | { | |
36788 | arg2 = &temp2; | |
36789 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36790 | } | |
36791 | { | |
36792 | arg3 = &temp3; | |
36793 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36794 | } | |
36795 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
36796 | if (!SWIG_IsOK(ecode4)) { | |
36797 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
36798 | } | |
36799 | arg4 = static_cast< double >(val4); | |
36800 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
36801 | if (!SWIG_IsOK(ecode5)) { | |
36802 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
36803 | } | |
36804 | arg5 = static_cast< double >(val5); | |
36805 | { | |
36806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36807 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
36808 | wxPyEndAllowThreads(__tstate); | |
36809 | if (PyErr_Occurred()) SWIG_fail; | |
36810 | } | |
36811 | resultobj = SWIG_Py_Void(); | |
36812 | return resultobj; | |
36813 | fail: | |
36814 | return NULL; | |
36815 | } | |
36816 | ||
36817 | ||
36818 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36819 | PyObject *resultobj = 0; | |
36820 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36821 | int arg2 ; | |
36822 | int arg3 ; | |
36823 | void *argp1 = 0 ; | |
36824 | int res1 = 0 ; | |
36825 | int val2 ; | |
36826 | int ecode2 = 0 ; | |
36827 | int val3 ; | |
36828 | int ecode3 = 0 ; | |
36829 | PyObject * obj0 = 0 ; | |
36830 | PyObject * obj1 = 0 ; | |
36831 | PyObject * obj2 = 0 ; | |
36832 | char * kwnames[] = { | |
36833 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36834 | }; | |
36835 | ||
36836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36838 | if (!SWIG_IsOK(res1)) { | |
36839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36840 | } | |
36841 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36842 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36843 | if (!SWIG_IsOK(ecode2)) { | |
36844 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
36845 | } | |
36846 | arg2 = static_cast< int >(val2); | |
36847 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36848 | if (!SWIG_IsOK(ecode3)) { | |
36849 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
36850 | } | |
36851 | arg3 = static_cast< int >(val3); | |
36852 | { | |
36853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36854 | (arg1)->DrawPoint(arg2,arg3); | |
36855 | wxPyEndAllowThreads(__tstate); | |
36856 | if (PyErr_Occurred()) SWIG_fail; | |
36857 | } | |
36858 | resultobj = SWIG_Py_Void(); | |
36859 | return resultobj; | |
36860 | fail: | |
36861 | return NULL; | |
36862 | } | |
36863 | ||
36864 | ||
36865 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36866 | PyObject *resultobj = 0; | |
36867 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36868 | wxPoint *arg2 = 0 ; | |
36869 | void *argp1 = 0 ; | |
36870 | int res1 = 0 ; | |
36871 | wxPoint temp2 ; | |
36872 | PyObject * obj0 = 0 ; | |
36873 | PyObject * obj1 = 0 ; | |
36874 | char * kwnames[] = { | |
36875 | (char *) "self",(char *) "pt", NULL | |
36876 | }; | |
36877 | ||
36878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
36879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36880 | if (!SWIG_IsOK(res1)) { | |
36881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36882 | } | |
36883 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36884 | { | |
36885 | arg2 = &temp2; | |
36886 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36887 | } | |
36888 | { | |
36889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36890 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
36891 | wxPyEndAllowThreads(__tstate); | |
36892 | if (PyErr_Occurred()) SWIG_fail; | |
36893 | } | |
36894 | resultobj = SWIG_Py_Void(); | |
36895 | return resultobj; | |
36896 | fail: | |
36897 | return NULL; | |
36898 | } | |
36899 | ||
36900 | ||
36901 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36902 | PyObject *resultobj = 0; | |
36903 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36904 | int arg2 ; | |
36905 | int arg3 ; | |
36906 | int arg4 ; | |
36907 | int arg5 ; | |
36908 | void *argp1 = 0 ; | |
36909 | int res1 = 0 ; | |
36910 | int val2 ; | |
36911 | int ecode2 = 0 ; | |
36912 | int val3 ; | |
36913 | int ecode3 = 0 ; | |
36914 | int val4 ; | |
36915 | int ecode4 = 0 ; | |
36916 | int val5 ; | |
36917 | int ecode5 = 0 ; | |
36918 | PyObject * obj0 = 0 ; | |
36919 | PyObject * obj1 = 0 ; | |
36920 | PyObject * obj2 = 0 ; | |
36921 | PyObject * obj3 = 0 ; | |
36922 | PyObject * obj4 = 0 ; | |
36923 | char * kwnames[] = { | |
36924 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36925 | }; | |
36926 | ||
36927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36929 | if (!SWIG_IsOK(res1)) { | |
36930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36931 | } | |
36932 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36933 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36934 | if (!SWIG_IsOK(ecode2)) { | |
36935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
36936 | } | |
36937 | arg2 = static_cast< int >(val2); | |
36938 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36939 | if (!SWIG_IsOK(ecode3)) { | |
36940 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
36941 | } | |
36942 | arg3 = static_cast< int >(val3); | |
36943 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36944 | if (!SWIG_IsOK(ecode4)) { | |
36945 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
36946 | } | |
36947 | arg4 = static_cast< int >(val4); | |
36948 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36949 | if (!SWIG_IsOK(ecode5)) { | |
36950 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
36951 | } | |
36952 | arg5 = static_cast< int >(val5); | |
36953 | { | |
36954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36955 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
36956 | wxPyEndAllowThreads(__tstate); | |
36957 | if (PyErr_Occurred()) SWIG_fail; | |
36958 | } | |
36959 | resultobj = SWIG_Py_Void(); | |
36960 | return resultobj; | |
36961 | fail: | |
36962 | return NULL; | |
36963 | } | |
36964 | ||
36965 | ||
36966 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36967 | PyObject *resultobj = 0; | |
36968 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36969 | wxRect *arg2 = 0 ; | |
36970 | void *argp1 = 0 ; | |
36971 | int res1 = 0 ; | |
36972 | wxRect temp2 ; | |
36973 | PyObject * obj0 = 0 ; | |
36974 | PyObject * obj1 = 0 ; | |
36975 | char * kwnames[] = { | |
36976 | (char *) "self",(char *) "rect", NULL | |
36977 | }; | |
36978 | ||
36979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
36980 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36981 | if (!SWIG_IsOK(res1)) { | |
36982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36983 | } | |
36984 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36985 | { | |
36986 | arg2 = &temp2; | |
36987 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
36988 | } | |
36989 | { | |
36990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36991 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
36992 | wxPyEndAllowThreads(__tstate); | |
36993 | if (PyErr_Occurred()) SWIG_fail; | |
36994 | } | |
36995 | resultobj = SWIG_Py_Void(); | |
36996 | return resultobj; | |
36997 | fail: | |
36998 | return NULL; | |
36999 | } | |
37000 | ||
37001 | ||
37002 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37003 | PyObject *resultobj = 0; | |
37004 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37005 | wxPoint *arg2 = 0 ; | |
37006 | wxSize *arg3 = 0 ; | |
37007 | void *argp1 = 0 ; | |
37008 | int res1 = 0 ; | |
37009 | wxPoint temp2 ; | |
37010 | wxSize temp3 ; | |
37011 | PyObject * obj0 = 0 ; | |
37012 | PyObject * obj1 = 0 ; | |
37013 | PyObject * obj2 = 0 ; | |
37014 | char * kwnames[] = { | |
37015 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
37016 | }; | |
37017 | ||
37018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37019 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37020 | if (!SWIG_IsOK(res1)) { | |
37021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37022 | } | |
37023 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37024 | { | |
37025 | arg2 = &temp2; | |
37026 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37027 | } | |
37028 | { | |
37029 | arg3 = &temp3; | |
37030 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37031 | } | |
37032 | { | |
37033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37034 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
37035 | wxPyEndAllowThreads(__tstate); | |
37036 | if (PyErr_Occurred()) SWIG_fail; | |
37037 | } | |
37038 | resultobj = SWIG_Py_Void(); | |
37039 | return resultobj; | |
37040 | fail: | |
37041 | return NULL; | |
37042 | } | |
37043 | ||
37044 | ||
37045 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37046 | PyObject *resultobj = 0; | |
37047 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37048 | int arg2 ; | |
37049 | int arg3 ; | |
37050 | int arg4 ; | |
37051 | int arg5 ; | |
37052 | double arg6 ; | |
37053 | void *argp1 = 0 ; | |
37054 | int res1 = 0 ; | |
37055 | int val2 ; | |
37056 | int ecode2 = 0 ; | |
37057 | int val3 ; | |
37058 | int ecode3 = 0 ; | |
37059 | int val4 ; | |
37060 | int ecode4 = 0 ; | |
37061 | int val5 ; | |
37062 | int ecode5 = 0 ; | |
37063 | double val6 ; | |
37064 | int ecode6 = 0 ; | |
37065 | PyObject * obj0 = 0 ; | |
37066 | PyObject * obj1 = 0 ; | |
37067 | PyObject * obj2 = 0 ; | |
37068 | PyObject * obj3 = 0 ; | |
37069 | PyObject * obj4 = 0 ; | |
37070 | PyObject * obj5 = 0 ; | |
37071 | char * kwnames[] = { | |
37072 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
37073 | }; | |
37074 | ||
37075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_DrawRoundedRectangle" "', 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_DrawRoundedRectangle" "', 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_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
37089 | } | |
37090 | arg3 = static_cast< int >(val3); | |
37091 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37092 | if (!SWIG_IsOK(ecode4)) { | |
37093 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
37094 | } | |
37095 | arg4 = static_cast< int >(val4); | |
37096 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37097 | if (!SWIG_IsOK(ecode5)) { | |
37098 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
37099 | } | |
37100 | arg5 = static_cast< int >(val5); | |
37101 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
37102 | if (!SWIG_IsOK(ecode6)) { | |
37103 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
37104 | } | |
37105 | arg6 = static_cast< double >(val6); | |
37106 | { | |
37107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37108 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
37109 | wxPyEndAllowThreads(__tstate); | |
37110 | if (PyErr_Occurred()) SWIG_fail; | |
37111 | } | |
37112 | resultobj = SWIG_Py_Void(); | |
37113 | return resultobj; | |
37114 | fail: | |
37115 | return NULL; | |
37116 | } | |
37117 | ||
37118 | ||
37119 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37120 | PyObject *resultobj = 0; | |
37121 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37122 | wxRect *arg2 = 0 ; | |
37123 | double arg3 ; | |
37124 | void *argp1 = 0 ; | |
37125 | int res1 = 0 ; | |
37126 | wxRect temp2 ; | |
37127 | double val3 ; | |
37128 | int ecode3 = 0 ; | |
37129 | PyObject * obj0 = 0 ; | |
37130 | PyObject * obj1 = 0 ; | |
37131 | PyObject * obj2 = 0 ; | |
37132 | char * kwnames[] = { | |
37133 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
37134 | }; | |
37135 | ||
37136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37138 | if (!SWIG_IsOK(res1)) { | |
37139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37140 | } | |
37141 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37142 | { | |
37143 | arg2 = &temp2; | |
37144 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37145 | } | |
37146 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
37147 | if (!SWIG_IsOK(ecode3)) { | |
37148 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
37149 | } | |
37150 | arg3 = static_cast< double >(val3); | |
37151 | { | |
37152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37153 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
37154 | wxPyEndAllowThreads(__tstate); | |
37155 | if (PyErr_Occurred()) SWIG_fail; | |
37156 | } | |
37157 | resultobj = SWIG_Py_Void(); | |
37158 | return resultobj; | |
37159 | fail: | |
37160 | return NULL; | |
37161 | } | |
37162 | ||
37163 | ||
37164 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37165 | PyObject *resultobj = 0; | |
37166 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37167 | wxPoint *arg2 = 0 ; | |
37168 | wxSize *arg3 = 0 ; | |
37169 | double arg4 ; | |
37170 | void *argp1 = 0 ; | |
37171 | int res1 = 0 ; | |
37172 | wxPoint temp2 ; | |
37173 | wxSize temp3 ; | |
37174 | double val4 ; | |
37175 | int ecode4 = 0 ; | |
37176 | PyObject * obj0 = 0 ; | |
37177 | PyObject * obj1 = 0 ; | |
37178 | PyObject * obj2 = 0 ; | |
37179 | PyObject * obj3 = 0 ; | |
37180 | char * kwnames[] = { | |
37181 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
37182 | }; | |
37183 | ||
37184 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37185 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37186 | if (!SWIG_IsOK(res1)) { | |
37187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37188 | } | |
37189 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37190 | { | |
37191 | arg2 = &temp2; | |
37192 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37193 | } | |
37194 | { | |
37195 | arg3 = &temp3; | |
37196 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37197 | } | |
37198 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37199 | if (!SWIG_IsOK(ecode4)) { | |
37200 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
37201 | } | |
37202 | arg4 = static_cast< double >(val4); | |
37203 | { | |
37204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37205 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
37206 | wxPyEndAllowThreads(__tstate); | |
37207 | if (PyErr_Occurred()) SWIG_fail; | |
37208 | } | |
37209 | resultobj = SWIG_Py_Void(); | |
37210 | return resultobj; | |
37211 | fail: | |
37212 | return NULL; | |
37213 | } | |
37214 | ||
37215 | ||
37216 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37217 | PyObject *resultobj = 0; | |
37218 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37219 | int arg2 ; | |
37220 | int arg3 ; | |
37221 | int arg4 ; | |
37222 | void *argp1 = 0 ; | |
37223 | int res1 = 0 ; | |
37224 | int val2 ; | |
37225 | int ecode2 = 0 ; | |
37226 | int val3 ; | |
37227 | int ecode3 = 0 ; | |
37228 | int val4 ; | |
37229 | int ecode4 = 0 ; | |
37230 | PyObject * obj0 = 0 ; | |
37231 | PyObject * obj1 = 0 ; | |
37232 | PyObject * obj2 = 0 ; | |
37233 | PyObject * obj3 = 0 ; | |
37234 | char * kwnames[] = { | |
37235 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
37236 | }; | |
37237 | ||
37238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37240 | if (!SWIG_IsOK(res1)) { | |
37241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37242 | } | |
37243 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37244 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37245 | if (!SWIG_IsOK(ecode2)) { | |
37246 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
37247 | } | |
37248 | arg2 = static_cast< int >(val2); | |
37249 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37250 | if (!SWIG_IsOK(ecode3)) { | |
37251 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
37252 | } | |
37253 | arg3 = static_cast< int >(val3); | |
37254 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37255 | if (!SWIG_IsOK(ecode4)) { | |
37256 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
37257 | } | |
37258 | arg4 = static_cast< int >(val4); | |
37259 | { | |
37260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37261 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
37262 | wxPyEndAllowThreads(__tstate); | |
37263 | if (PyErr_Occurred()) SWIG_fail; | |
37264 | } | |
37265 | resultobj = SWIG_Py_Void(); | |
37266 | return resultobj; | |
37267 | fail: | |
37268 | return NULL; | |
37269 | } | |
37270 | ||
37271 | ||
37272 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37273 | PyObject *resultobj = 0; | |
37274 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37275 | wxPoint *arg2 = 0 ; | |
37276 | int arg3 ; | |
37277 | void *argp1 = 0 ; | |
37278 | int res1 = 0 ; | |
37279 | wxPoint temp2 ; | |
37280 | int val3 ; | |
37281 | int ecode3 = 0 ; | |
37282 | PyObject * obj0 = 0 ; | |
37283 | PyObject * obj1 = 0 ; | |
37284 | PyObject * obj2 = 0 ; | |
37285 | char * kwnames[] = { | |
37286 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
37287 | }; | |
37288 | ||
37289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37291 | if (!SWIG_IsOK(res1)) { | |
37292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37293 | } | |
37294 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37295 | { | |
37296 | arg2 = &temp2; | |
37297 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37298 | } | |
37299 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37300 | if (!SWIG_IsOK(ecode3)) { | |
37301 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
37302 | } | |
37303 | arg3 = static_cast< int >(val3); | |
37304 | { | |
37305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37306 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
37307 | wxPyEndAllowThreads(__tstate); | |
37308 | if (PyErr_Occurred()) SWIG_fail; | |
37309 | } | |
37310 | resultobj = SWIG_Py_Void(); | |
37311 | return resultobj; | |
37312 | fail: | |
37313 | return NULL; | |
37314 | } | |
37315 | ||
37316 | ||
37317 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37318 | PyObject *resultobj = 0; | |
37319 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37320 | int arg2 ; | |
37321 | int arg3 ; | |
37322 | int arg4 ; | |
37323 | int arg5 ; | |
37324 | void *argp1 = 0 ; | |
37325 | int res1 = 0 ; | |
37326 | int val2 ; | |
37327 | int ecode2 = 0 ; | |
37328 | int val3 ; | |
37329 | int ecode3 = 0 ; | |
37330 | int val4 ; | |
37331 | int ecode4 = 0 ; | |
37332 | int val5 ; | |
37333 | int ecode5 = 0 ; | |
37334 | PyObject * obj0 = 0 ; | |
37335 | PyObject * obj1 = 0 ; | |
37336 | PyObject * obj2 = 0 ; | |
37337 | PyObject * obj3 = 0 ; | |
37338 | PyObject * obj4 = 0 ; | |
37339 | char * kwnames[] = { | |
37340 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37341 | }; | |
37342 | ||
37343 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37344 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37345 | if (!SWIG_IsOK(res1)) { | |
37346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37347 | } | |
37348 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37349 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37350 | if (!SWIG_IsOK(ecode2)) { | |
37351 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
37352 | } | |
37353 | arg2 = static_cast< int >(val2); | |
37354 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37355 | if (!SWIG_IsOK(ecode3)) { | |
37356 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
37357 | } | |
37358 | arg3 = static_cast< int >(val3); | |
37359 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37360 | if (!SWIG_IsOK(ecode4)) { | |
37361 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
37362 | } | |
37363 | arg4 = static_cast< int >(val4); | |
37364 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37365 | if (!SWIG_IsOK(ecode5)) { | |
37366 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
37367 | } | |
37368 | arg5 = static_cast< int >(val5); | |
37369 | { | |
37370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37371 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
37372 | wxPyEndAllowThreads(__tstate); | |
37373 | if (PyErr_Occurred()) SWIG_fail; | |
37374 | } | |
37375 | resultobj = SWIG_Py_Void(); | |
37376 | return resultobj; | |
37377 | fail: | |
37378 | return NULL; | |
37379 | } | |
37380 | ||
37381 | ||
37382 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37383 | PyObject *resultobj = 0; | |
37384 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37385 | wxRect *arg2 = 0 ; | |
37386 | void *argp1 = 0 ; | |
37387 | int res1 = 0 ; | |
37388 | wxRect temp2 ; | |
37389 | PyObject * obj0 = 0 ; | |
37390 | PyObject * obj1 = 0 ; | |
37391 | char * kwnames[] = { | |
37392 | (char *) "self",(char *) "rect", NULL | |
37393 | }; | |
37394 | ||
37395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37397 | if (!SWIG_IsOK(res1)) { | |
37398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37399 | } | |
37400 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37401 | { | |
37402 | arg2 = &temp2; | |
37403 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37404 | } | |
37405 | { | |
37406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37407 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
37408 | wxPyEndAllowThreads(__tstate); | |
37409 | if (PyErr_Occurred()) SWIG_fail; | |
37410 | } | |
37411 | resultobj = SWIG_Py_Void(); | |
37412 | return resultobj; | |
37413 | fail: | |
37414 | return NULL; | |
37415 | } | |
37416 | ||
37417 | ||
37418 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37419 | PyObject *resultobj = 0; | |
37420 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37421 | wxPoint *arg2 = 0 ; | |
37422 | wxSize *arg3 = 0 ; | |
37423 | void *argp1 = 0 ; | |
37424 | int res1 = 0 ; | |
37425 | wxPoint temp2 ; | |
37426 | wxSize temp3 ; | |
37427 | PyObject * obj0 = 0 ; | |
37428 | PyObject * obj1 = 0 ; | |
37429 | PyObject * obj2 = 0 ; | |
37430 | char * kwnames[] = { | |
37431 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
37432 | }; | |
37433 | ||
37434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37436 | if (!SWIG_IsOK(res1)) { | |
37437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37438 | } | |
37439 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37440 | { | |
37441 | arg2 = &temp2; | |
37442 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37443 | } | |
37444 | { | |
37445 | arg3 = &temp3; | |
37446 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37447 | } | |
37448 | { | |
37449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37450 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
37451 | wxPyEndAllowThreads(__tstate); | |
37452 | if (PyErr_Occurred()) SWIG_fail; | |
37453 | } | |
37454 | resultobj = SWIG_Py_Void(); | |
37455 | return resultobj; | |
37456 | fail: | |
37457 | return NULL; | |
37458 | } | |
37459 | ||
37460 | ||
37461 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37462 | PyObject *resultobj = 0; | |
37463 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37464 | wxIcon *arg2 = 0 ; | |
37465 | int arg3 ; | |
37466 | int arg4 ; | |
37467 | void *argp1 = 0 ; | |
37468 | int res1 = 0 ; | |
37469 | void *argp2 = 0 ; | |
37470 | int res2 = 0 ; | |
37471 | int val3 ; | |
37472 | int ecode3 = 0 ; | |
37473 | int val4 ; | |
37474 | int ecode4 = 0 ; | |
37475 | PyObject * obj0 = 0 ; | |
37476 | PyObject * obj1 = 0 ; | |
37477 | PyObject * obj2 = 0 ; | |
37478 | PyObject * obj3 = 0 ; | |
37479 | char * kwnames[] = { | |
37480 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
37481 | }; | |
37482 | ||
37483 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37484 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37485 | if (!SWIG_IsOK(res1)) { | |
37486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37487 | } | |
37488 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37489 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
37490 | if (!SWIG_IsOK(res2)) { | |
37491 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37492 | } | |
37493 | if (!argp2) { | |
37494 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37495 | } | |
37496 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
37497 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37498 | if (!SWIG_IsOK(ecode3)) { | |
37499 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
37500 | } | |
37501 | arg3 = static_cast< int >(val3); | |
37502 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37503 | if (!SWIG_IsOK(ecode4)) { | |
37504 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
37505 | } | |
37506 | arg4 = static_cast< int >(val4); | |
37507 | { | |
37508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37509 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
37510 | wxPyEndAllowThreads(__tstate); | |
37511 | if (PyErr_Occurred()) SWIG_fail; | |
37512 | } | |
37513 | resultobj = SWIG_Py_Void(); | |
37514 | return resultobj; | |
37515 | fail: | |
37516 | return NULL; | |
37517 | } | |
37518 | ||
37519 | ||
37520 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37521 | PyObject *resultobj = 0; | |
37522 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37523 | wxIcon *arg2 = 0 ; | |
37524 | wxPoint *arg3 = 0 ; | |
37525 | void *argp1 = 0 ; | |
37526 | int res1 = 0 ; | |
37527 | void *argp2 = 0 ; | |
37528 | int res2 = 0 ; | |
37529 | wxPoint temp3 ; | |
37530 | PyObject * obj0 = 0 ; | |
37531 | PyObject * obj1 = 0 ; | |
37532 | PyObject * obj2 = 0 ; | |
37533 | char * kwnames[] = { | |
37534 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
37535 | }; | |
37536 | ||
37537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37539 | if (!SWIG_IsOK(res1)) { | |
37540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37541 | } | |
37542 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37543 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
37544 | if (!SWIG_IsOK(res2)) { | |
37545 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37546 | } | |
37547 | if (!argp2) { | |
37548 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
37549 | } | |
37550 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
37551 | { | |
37552 | arg3 = &temp3; | |
37553 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37554 | } | |
37555 | { | |
37556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37557 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
37558 | wxPyEndAllowThreads(__tstate); | |
37559 | if (PyErr_Occurred()) SWIG_fail; | |
37560 | } | |
37561 | resultobj = SWIG_Py_Void(); | |
37562 | return resultobj; | |
37563 | fail: | |
37564 | return NULL; | |
37565 | } | |
37566 | ||
37567 | ||
37568 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37569 | PyObject *resultobj = 0; | |
37570 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37571 | wxBitmap *arg2 = 0 ; | |
37572 | int arg3 ; | |
37573 | int arg4 ; | |
37574 | bool arg5 = (bool) false ; | |
37575 | void *argp1 = 0 ; | |
37576 | int res1 = 0 ; | |
37577 | void *argp2 = 0 ; | |
37578 | int res2 = 0 ; | |
37579 | int val3 ; | |
37580 | int ecode3 = 0 ; | |
37581 | int val4 ; | |
37582 | int ecode4 = 0 ; | |
37583 | bool val5 ; | |
37584 | int ecode5 = 0 ; | |
37585 | PyObject * obj0 = 0 ; | |
37586 | PyObject * obj1 = 0 ; | |
37587 | PyObject * obj2 = 0 ; | |
37588 | PyObject * obj3 = 0 ; | |
37589 | PyObject * obj4 = 0 ; | |
37590 | char * kwnames[] = { | |
37591 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
37592 | }; | |
37593 | ||
37594 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37595 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37596 | if (!SWIG_IsOK(res1)) { | |
37597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37598 | } | |
37599 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37600 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37601 | if (!SWIG_IsOK(res2)) { | |
37602 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37603 | } | |
37604 | if (!argp2) { | |
37605 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37606 | } | |
37607 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
37608 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37609 | if (!SWIG_IsOK(ecode3)) { | |
37610 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
37611 | } | |
37612 | arg3 = static_cast< int >(val3); | |
37613 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37614 | if (!SWIG_IsOK(ecode4)) { | |
37615 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
37616 | } | |
37617 | arg4 = static_cast< int >(val4); | |
37618 | if (obj4) { | |
37619 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
37620 | if (!SWIG_IsOK(ecode5)) { | |
37621 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
37622 | } | |
37623 | arg5 = static_cast< bool >(val5); | |
37624 | } | |
37625 | { | |
37626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37627 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
37628 | wxPyEndAllowThreads(__tstate); | |
37629 | if (PyErr_Occurred()) SWIG_fail; | |
37630 | } | |
37631 | resultobj = SWIG_Py_Void(); | |
37632 | return resultobj; | |
37633 | fail: | |
37634 | return NULL; | |
37635 | } | |
37636 | ||
37637 | ||
37638 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37639 | PyObject *resultobj = 0; | |
37640 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37641 | wxBitmap *arg2 = 0 ; | |
37642 | wxPoint *arg3 = 0 ; | |
37643 | bool arg4 = (bool) false ; | |
37644 | void *argp1 = 0 ; | |
37645 | int res1 = 0 ; | |
37646 | void *argp2 = 0 ; | |
37647 | int res2 = 0 ; | |
37648 | wxPoint temp3 ; | |
37649 | bool val4 ; | |
37650 | int ecode4 = 0 ; | |
37651 | PyObject * obj0 = 0 ; | |
37652 | PyObject * obj1 = 0 ; | |
37653 | PyObject * obj2 = 0 ; | |
37654 | PyObject * obj3 = 0 ; | |
37655 | char * kwnames[] = { | |
37656 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
37657 | }; | |
37658 | ||
37659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37661 | if (!SWIG_IsOK(res1)) { | |
37662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37663 | } | |
37664 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37665 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
37666 | if (!SWIG_IsOK(res2)) { | |
37667 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37668 | } | |
37669 | if (!argp2) { | |
37670 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
37671 | } | |
37672 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
37673 | { | |
37674 | arg3 = &temp3; | |
37675 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37676 | } | |
37677 | if (obj3) { | |
37678 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
37679 | if (!SWIG_IsOK(ecode4)) { | |
37680 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
37681 | } | |
37682 | arg4 = static_cast< bool >(val4); | |
37683 | } | |
37684 | { | |
37685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37686 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
37687 | wxPyEndAllowThreads(__tstate); | |
37688 | if (PyErr_Occurred()) SWIG_fail; | |
37689 | } | |
37690 | resultobj = SWIG_Py_Void(); | |
37691 | return resultobj; | |
37692 | fail: | |
37693 | return NULL; | |
37694 | } | |
37695 | ||
37696 | ||
37697 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37698 | PyObject *resultobj = 0; | |
37699 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37700 | wxString *arg2 = 0 ; | |
37701 | int arg3 ; | |
37702 | int arg4 ; | |
37703 | void *argp1 = 0 ; | |
37704 | int res1 = 0 ; | |
37705 | bool temp2 = false ; | |
37706 | int val3 ; | |
37707 | int ecode3 = 0 ; | |
37708 | int val4 ; | |
37709 | int ecode4 = 0 ; | |
37710 | PyObject * obj0 = 0 ; | |
37711 | PyObject * obj1 = 0 ; | |
37712 | PyObject * obj2 = 0 ; | |
37713 | PyObject * obj3 = 0 ; | |
37714 | char * kwnames[] = { | |
37715 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
37716 | }; | |
37717 | ||
37718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37722 | } | |
37723 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37724 | { | |
37725 | arg2 = wxString_in_helper(obj1); | |
37726 | if (arg2 == NULL) SWIG_fail; | |
37727 | temp2 = true; | |
37728 | } | |
37729 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37730 | if (!SWIG_IsOK(ecode3)) { | |
37731 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
37732 | } | |
37733 | arg3 = static_cast< int >(val3); | |
37734 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37735 | if (!SWIG_IsOK(ecode4)) { | |
37736 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
37737 | } | |
37738 | arg4 = static_cast< int >(val4); | |
37739 | { | |
37740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37741 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
37742 | wxPyEndAllowThreads(__tstate); | |
37743 | if (PyErr_Occurred()) SWIG_fail; | |
37744 | } | |
37745 | resultobj = SWIG_Py_Void(); | |
37746 | { | |
37747 | if (temp2) | |
37748 | delete arg2; | |
37749 | } | |
37750 | return resultobj; | |
37751 | fail: | |
37752 | { | |
37753 | if (temp2) | |
37754 | delete arg2; | |
37755 | } | |
37756 | return NULL; | |
37757 | } | |
37758 | ||
37759 | ||
37760 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37761 | PyObject *resultobj = 0; | |
37762 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37763 | wxString *arg2 = 0 ; | |
37764 | wxPoint *arg3 = 0 ; | |
37765 | void *argp1 = 0 ; | |
37766 | int res1 = 0 ; | |
37767 | bool temp2 = false ; | |
37768 | wxPoint temp3 ; | |
37769 | PyObject * obj0 = 0 ; | |
37770 | PyObject * obj1 = 0 ; | |
37771 | PyObject * obj2 = 0 ; | |
37772 | char * kwnames[] = { | |
37773 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
37774 | }; | |
37775 | ||
37776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37777 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37778 | if (!SWIG_IsOK(res1)) { | |
37779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37780 | } | |
37781 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37782 | { | |
37783 | arg2 = wxString_in_helper(obj1); | |
37784 | if (arg2 == NULL) SWIG_fail; | |
37785 | temp2 = true; | |
37786 | } | |
37787 | { | |
37788 | arg3 = &temp3; | |
37789 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37790 | } | |
37791 | { | |
37792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37793 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
37794 | wxPyEndAllowThreads(__tstate); | |
37795 | if (PyErr_Occurred()) SWIG_fail; | |
37796 | } | |
37797 | resultobj = SWIG_Py_Void(); | |
37798 | { | |
37799 | if (temp2) | |
37800 | delete arg2; | |
37801 | } | |
37802 | return resultobj; | |
37803 | fail: | |
37804 | { | |
37805 | if (temp2) | |
37806 | delete arg2; | |
37807 | } | |
37808 | return NULL; | |
37809 | } | |
37810 | ||
37811 | ||
37812 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37813 | PyObject *resultobj = 0; | |
37814 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37815 | wxString *arg2 = 0 ; | |
37816 | int arg3 ; | |
37817 | int arg4 ; | |
37818 | double arg5 ; | |
37819 | void *argp1 = 0 ; | |
37820 | int res1 = 0 ; | |
37821 | bool temp2 = false ; | |
37822 | int val3 ; | |
37823 | int ecode3 = 0 ; | |
37824 | int val4 ; | |
37825 | int ecode4 = 0 ; | |
37826 | double val5 ; | |
37827 | int ecode5 = 0 ; | |
37828 | PyObject * obj0 = 0 ; | |
37829 | PyObject * obj1 = 0 ; | |
37830 | PyObject * obj2 = 0 ; | |
37831 | PyObject * obj3 = 0 ; | |
37832 | PyObject * obj4 = 0 ; | |
37833 | char * kwnames[] = { | |
37834 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
37835 | }; | |
37836 | ||
37837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37839 | if (!SWIG_IsOK(res1)) { | |
37840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37841 | } | |
37842 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37843 | { | |
37844 | arg2 = wxString_in_helper(obj1); | |
37845 | if (arg2 == NULL) SWIG_fail; | |
37846 | temp2 = true; | |
37847 | } | |
37848 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37849 | if (!SWIG_IsOK(ecode3)) { | |
37850 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
37851 | } | |
37852 | arg3 = static_cast< int >(val3); | |
37853 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37854 | if (!SWIG_IsOK(ecode4)) { | |
37855 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
37856 | } | |
37857 | arg4 = static_cast< int >(val4); | |
37858 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
37859 | if (!SWIG_IsOK(ecode5)) { | |
37860 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
37861 | } | |
37862 | arg5 = static_cast< double >(val5); | |
37863 | { | |
37864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37865 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
37866 | wxPyEndAllowThreads(__tstate); | |
37867 | if (PyErr_Occurred()) SWIG_fail; | |
37868 | } | |
37869 | resultobj = SWIG_Py_Void(); | |
37870 | { | |
37871 | if (temp2) | |
37872 | delete arg2; | |
37873 | } | |
37874 | return resultobj; | |
37875 | fail: | |
37876 | { | |
37877 | if (temp2) | |
37878 | delete arg2; | |
37879 | } | |
37880 | return NULL; | |
37881 | } | |
37882 | ||
37883 | ||
37884 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37885 | PyObject *resultobj = 0; | |
37886 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37887 | wxString *arg2 = 0 ; | |
37888 | wxPoint *arg3 = 0 ; | |
37889 | double arg4 ; | |
37890 | void *argp1 = 0 ; | |
37891 | int res1 = 0 ; | |
37892 | bool temp2 = false ; | |
37893 | wxPoint temp3 ; | |
37894 | double val4 ; | |
37895 | int ecode4 = 0 ; | |
37896 | PyObject * obj0 = 0 ; | |
37897 | PyObject * obj1 = 0 ; | |
37898 | PyObject * obj2 = 0 ; | |
37899 | PyObject * obj3 = 0 ; | |
37900 | char * kwnames[] = { | |
37901 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
37902 | }; | |
37903 | ||
37904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37906 | if (!SWIG_IsOK(res1)) { | |
37907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37908 | } | |
37909 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37910 | { | |
37911 | arg2 = wxString_in_helper(obj1); | |
37912 | if (arg2 == NULL) SWIG_fail; | |
37913 | temp2 = true; | |
37914 | } | |
37915 | { | |
37916 | arg3 = &temp3; | |
37917 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37918 | } | |
37919 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37920 | if (!SWIG_IsOK(ecode4)) { | |
37921 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
37922 | } | |
37923 | arg4 = static_cast< double >(val4); | |
37924 | { | |
37925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37926 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
37927 | wxPyEndAllowThreads(__tstate); | |
37928 | if (PyErr_Occurred()) SWIG_fail; | |
37929 | } | |
37930 | resultobj = SWIG_Py_Void(); | |
37931 | { | |
37932 | if (temp2) | |
37933 | delete arg2; | |
37934 | } | |
37935 | return resultobj; | |
37936 | fail: | |
37937 | { | |
37938 | if (temp2) | |
37939 | delete arg2; | |
37940 | } | |
37941 | return NULL; | |
37942 | } | |
37943 | ||
37944 | ||
37945 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37946 | PyObject *resultobj = 0; | |
37947 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37948 | int arg2 ; | |
37949 | wxPoint *arg3 = (wxPoint *) 0 ; | |
37950 | int arg4 = (int) 0 ; | |
37951 | int arg5 = (int) 0 ; | |
37952 | void *argp1 = 0 ; | |
37953 | int res1 = 0 ; | |
37954 | int val4 ; | |
37955 | int ecode4 = 0 ; | |
37956 | int val5 ; | |
37957 | int ecode5 = 0 ; | |
37958 | PyObject * obj0 = 0 ; | |
37959 | PyObject * obj1 = 0 ; | |
37960 | PyObject * obj2 = 0 ; | |
37961 | PyObject * obj3 = 0 ; | |
37962 | char * kwnames[] = { | |
37963 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
37964 | }; | |
37965 | ||
37966 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37967 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37968 | if (!SWIG_IsOK(res1)) { | |
37969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37970 | } | |
37971 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37972 | { | |
37973 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
37974 | if (arg3 == NULL) SWIG_fail; | |
37975 | } | |
37976 | if (obj2) { | |
37977 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
37978 | if (!SWIG_IsOK(ecode4)) { | |
37979 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
37980 | } | |
37981 | arg4 = static_cast< int >(val4); | |
37982 | } | |
37983 | if (obj3) { | |
37984 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
37985 | if (!SWIG_IsOK(ecode5)) { | |
37986 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
37987 | } | |
37988 | arg5 = static_cast< int >(val5); | |
37989 | } | |
37990 | { | |
37991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37992 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
37993 | wxPyEndAllowThreads(__tstate); | |
37994 | if (PyErr_Occurred()) SWIG_fail; | |
37995 | } | |
37996 | resultobj = SWIG_Py_Void(); | |
37997 | { | |
37998 | if (arg3) delete [] arg3; | |
37999 | } | |
38000 | return resultobj; | |
38001 | fail: | |
38002 | { | |
38003 | if (arg3) delete [] arg3; | |
38004 | } | |
38005 | return NULL; | |
38006 | } | |
38007 | ||
38008 | ||
38009 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38010 | PyObject *resultobj = 0; | |
38011 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38012 | int arg2 ; | |
38013 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38014 | int arg4 = (int) 0 ; | |
38015 | int arg5 = (int) 0 ; | |
38016 | int arg6 = (int) wxODDEVEN_RULE ; | |
38017 | void *argp1 = 0 ; | |
38018 | int res1 = 0 ; | |
38019 | int val4 ; | |
38020 | int ecode4 = 0 ; | |
38021 | int val5 ; | |
38022 | int ecode5 = 0 ; | |
38023 | int val6 ; | |
38024 | int ecode6 = 0 ; | |
38025 | PyObject * obj0 = 0 ; | |
38026 | PyObject * obj1 = 0 ; | |
38027 | PyObject * obj2 = 0 ; | |
38028 | PyObject * obj3 = 0 ; | |
38029 | PyObject * obj4 = 0 ; | |
38030 | char * kwnames[] = { | |
38031 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
38032 | }; | |
38033 | ||
38034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38035 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38036 | if (!SWIG_IsOK(res1)) { | |
38037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38038 | } | |
38039 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38040 | { | |
38041 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38042 | if (arg3 == NULL) SWIG_fail; | |
38043 | } | |
38044 | if (obj2) { | |
38045 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
38046 | if (!SWIG_IsOK(ecode4)) { | |
38047 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
38048 | } | |
38049 | arg4 = static_cast< int >(val4); | |
38050 | } | |
38051 | if (obj3) { | |
38052 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
38053 | if (!SWIG_IsOK(ecode5)) { | |
38054 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
38055 | } | |
38056 | arg5 = static_cast< int >(val5); | |
38057 | } | |
38058 | if (obj4) { | |
38059 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
38060 | if (!SWIG_IsOK(ecode6)) { | |
38061 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
38062 | } | |
38063 | arg6 = static_cast< int >(val6); | |
38064 | } | |
38065 | { | |
38066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38067 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
38068 | wxPyEndAllowThreads(__tstate); | |
38069 | if (PyErr_Occurred()) SWIG_fail; | |
38070 | } | |
38071 | resultobj = SWIG_Py_Void(); | |
38072 | { | |
38073 | if (arg3) delete [] arg3; | |
38074 | } | |
38075 | return resultobj; | |
38076 | fail: | |
38077 | { | |
38078 | if (arg3) delete [] arg3; | |
38079 | } | |
38080 | return NULL; | |
38081 | } | |
38082 | ||
38083 | ||
38084 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38085 | PyObject *resultobj = 0; | |
38086 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38087 | wxString *arg2 = 0 ; | |
38088 | wxRect *arg3 = 0 ; | |
38089 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
38090 | int arg5 = (int) -1 ; | |
38091 | void *argp1 = 0 ; | |
38092 | int res1 = 0 ; | |
38093 | bool temp2 = false ; | |
38094 | wxRect temp3 ; | |
38095 | int val4 ; | |
38096 | int ecode4 = 0 ; | |
38097 | int val5 ; | |
38098 | int ecode5 = 0 ; | |
38099 | PyObject * obj0 = 0 ; | |
38100 | PyObject * obj1 = 0 ; | |
38101 | PyObject * obj2 = 0 ; | |
38102 | PyObject * obj3 = 0 ; | |
38103 | PyObject * obj4 = 0 ; | |
38104 | char * kwnames[] = { | |
38105 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
38106 | }; | |
38107 | ||
38108 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38109 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38110 | if (!SWIG_IsOK(res1)) { | |
38111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38112 | } | |
38113 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38114 | { | |
38115 | arg2 = wxString_in_helper(obj1); | |
38116 | if (arg2 == NULL) SWIG_fail; | |
38117 | temp2 = true; | |
38118 | } | |
38119 | { | |
38120 | arg3 = &temp3; | |
38121 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
38122 | } | |
38123 | if (obj3) { | |
38124 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38125 | if (!SWIG_IsOK(ecode4)) { | |
38126 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
38127 | } | |
38128 | arg4 = static_cast< int >(val4); | |
38129 | } | |
38130 | if (obj4) { | |
38131 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38132 | if (!SWIG_IsOK(ecode5)) { | |
38133 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
38134 | } | |
38135 | arg5 = static_cast< int >(val5); | |
38136 | } | |
38137 | { | |
38138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38139 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
38140 | wxPyEndAllowThreads(__tstate); | |
38141 | if (PyErr_Occurred()) SWIG_fail; | |
38142 | } | |
38143 | resultobj = SWIG_Py_Void(); | |
38144 | { | |
38145 | if (temp2) | |
38146 | delete arg2; | |
38147 | } | |
38148 | return resultobj; | |
38149 | fail: | |
38150 | { | |
38151 | if (temp2) | |
38152 | delete arg2; | |
38153 | } | |
38154 | return NULL; | |
38155 | } | |
38156 | ||
38157 | ||
38158 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38159 | PyObject *resultobj = 0; | |
38160 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38161 | wxString *arg2 = 0 ; | |
38162 | wxBitmap *arg3 = 0 ; | |
38163 | wxRect *arg4 = 0 ; | |
38164 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
38165 | int arg6 = (int) -1 ; | |
38166 | void *argp1 = 0 ; | |
38167 | int res1 = 0 ; | |
38168 | bool temp2 = false ; | |
38169 | void *argp3 = 0 ; | |
38170 | int res3 = 0 ; | |
38171 | wxRect temp4 ; | |
38172 | int val5 ; | |
38173 | int ecode5 = 0 ; | |
38174 | int val6 ; | |
38175 | int ecode6 = 0 ; | |
38176 | PyObject * obj0 = 0 ; | |
38177 | PyObject * obj1 = 0 ; | |
38178 | PyObject * obj2 = 0 ; | |
38179 | PyObject * obj3 = 0 ; | |
38180 | PyObject * obj4 = 0 ; | |
38181 | PyObject * obj5 = 0 ; | |
38182 | char * kwnames[] = { | |
38183 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
38184 | }; | |
38185 | ||
38186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
38187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38188 | if (!SWIG_IsOK(res1)) { | |
38189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38190 | } | |
38191 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38192 | { | |
38193 | arg2 = wxString_in_helper(obj1); | |
38194 | if (arg2 == NULL) SWIG_fail; | |
38195 | temp2 = true; | |
38196 | } | |
38197 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38198 | if (!SWIG_IsOK(res3)) { | |
38199 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
38200 | } | |
38201 | if (!argp3) { | |
38202 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
38203 | } | |
38204 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
38205 | { | |
38206 | arg4 = &temp4; | |
38207 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
38208 | } | |
38209 | if (obj4) { | |
38210 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38211 | if (!SWIG_IsOK(ecode5)) { | |
38212 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
38213 | } | |
38214 | arg5 = static_cast< int >(val5); | |
38215 | } | |
38216 | if (obj5) { | |
38217 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
38218 | if (!SWIG_IsOK(ecode6)) { | |
38219 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
38220 | } | |
38221 | arg6 = static_cast< int >(val6); | |
38222 | } | |
38223 | { | |
38224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38225 | (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
38226 | wxPyEndAllowThreads(__tstate); | |
38227 | if (PyErr_Occurred()) SWIG_fail; | |
38228 | } | |
38229 | resultobj = SWIG_Py_Void(); | |
38230 | { | |
38231 | if (temp2) | |
38232 | delete arg2; | |
38233 | } | |
38234 | return resultobj; | |
38235 | fail: | |
38236 | { | |
38237 | if (temp2) | |
38238 | delete arg2; | |
38239 | } | |
38240 | return NULL; | |
38241 | } | |
38242 | ||
38243 | ||
38244 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38245 | PyObject *resultobj = 0; | |
38246 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38247 | int arg2 ; | |
38248 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38249 | void *argp1 = 0 ; | |
38250 | int res1 = 0 ; | |
38251 | PyObject * obj0 = 0 ; | |
38252 | PyObject * obj1 = 0 ; | |
38253 | char * kwnames[] = { | |
38254 | (char *) "self",(char *) "points", NULL | |
38255 | }; | |
38256 | ||
38257 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
38258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38259 | if (!SWIG_IsOK(res1)) { | |
38260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38261 | } | |
38262 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38263 | { | |
38264 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38265 | if (arg3 == NULL) SWIG_fail; | |
38266 | } | |
38267 | { | |
38268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38269 | (arg1)->DrawSpline(arg2,arg3); | |
38270 | wxPyEndAllowThreads(__tstate); | |
38271 | if (PyErr_Occurred()) SWIG_fail; | |
38272 | } | |
38273 | resultobj = SWIG_Py_Void(); | |
38274 | { | |
38275 | if (arg3) delete [] arg3; | |
38276 | } | |
38277 | return resultobj; | |
38278 | fail: | |
38279 | { | |
38280 | if (arg3) delete [] arg3; | |
38281 | } | |
38282 | return NULL; | |
38283 | } | |
38284 | ||
38285 | ||
38286 | SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38287 | PyObject *resultobj = 0; | |
38288 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38289 | void *argp1 = 0 ; | |
38290 | int res1 = 0 ; | |
38291 | PyObject *swig_obj[1] ; | |
38292 | ||
38293 | if (!args) SWIG_fail; | |
38294 | swig_obj[0] = args; | |
38295 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38296 | if (!SWIG_IsOK(res1)) { | |
38297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38298 | } | |
38299 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38300 | { | |
38301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38302 | (arg1)->Clear(); | |
38303 | wxPyEndAllowThreads(__tstate); | |
38304 | if (PyErr_Occurred()) SWIG_fail; | |
38305 | } | |
38306 | resultobj = SWIG_Py_Void(); | |
38307 | return resultobj; | |
38308 | fail: | |
38309 | return NULL; | |
38310 | } | |
38311 | ||
38312 | ||
38313 | SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38314 | PyObject *resultobj = 0; | |
38315 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38316 | wxFont *arg2 = 0 ; | |
38317 | void *argp1 = 0 ; | |
38318 | int res1 = 0 ; | |
38319 | void *argp2 = 0 ; | |
38320 | int res2 = 0 ; | |
38321 | PyObject * obj0 = 0 ; | |
38322 | PyObject * obj1 = 0 ; | |
38323 | char * kwnames[] = { | |
38324 | (char *) "self",(char *) "font", NULL | |
38325 | }; | |
38326 | ||
38327 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
38328 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38329 | if (!SWIG_IsOK(res1)) { | |
38330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38331 | } | |
38332 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38333 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
38334 | if (!SWIG_IsOK(res2)) { | |
38335 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
38336 | } | |
38337 | if (!argp2) { | |
38338 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
38339 | } | |
38340 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
38341 | { | |
38342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38343 | (arg1)->SetFont((wxFont const &)*arg2); | |
38344 | wxPyEndAllowThreads(__tstate); | |
38345 | if (PyErr_Occurred()) SWIG_fail; | |
38346 | } | |
38347 | resultobj = SWIG_Py_Void(); | |
38348 | return resultobj; | |
38349 | fail: | |
38350 | return NULL; | |
38351 | } | |
38352 | ||
38353 | ||
38354 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38355 | PyObject *resultobj = 0; | |
38356 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38357 | wxPen *arg2 = 0 ; | |
38358 | void *argp1 = 0 ; | |
38359 | int res1 = 0 ; | |
38360 | void *argp2 = 0 ; | |
38361 | int res2 = 0 ; | |
38362 | PyObject * obj0 = 0 ; | |
38363 | PyObject * obj1 = 0 ; | |
38364 | char * kwnames[] = { | |
38365 | (char *) "self",(char *) "pen", NULL | |
38366 | }; | |
38367 | ||
38368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
38369 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38370 | if (!SWIG_IsOK(res1)) { | |
38371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38372 | } | |
38373 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38374 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
38375 | if (!SWIG_IsOK(res2)) { | |
38376 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
38377 | } | |
38378 | if (!argp2) { | |
38379 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
38380 | } | |
38381 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
38382 | { | |
38383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38384 | (arg1)->SetPen((wxPen const &)*arg2); | |
38385 | wxPyEndAllowThreads(__tstate); | |
38386 | if (PyErr_Occurred()) SWIG_fail; | |
38387 | } | |
38388 | resultobj = SWIG_Py_Void(); | |
38389 | return resultobj; | |
38390 | fail: | |
38391 | return NULL; | |
38392 | } | |
38393 | ||
38394 | ||
38395 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38396 | PyObject *resultobj = 0; | |
38397 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38398 | wxBrush *arg2 = 0 ; | |
38399 | void *argp1 = 0 ; | |
38400 | int res1 = 0 ; | |
38401 | void *argp2 = 0 ; | |
38402 | int res2 = 0 ; | |
38403 | PyObject * obj0 = 0 ; | |
38404 | PyObject * obj1 = 0 ; | |
38405 | char * kwnames[] = { | |
38406 | (char *) "self",(char *) "brush", NULL | |
38407 | }; | |
38408 | ||
38409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
38410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38411 | if (!SWIG_IsOK(res1)) { | |
38412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38413 | } | |
38414 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38415 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
38416 | if (!SWIG_IsOK(res2)) { | |
38417 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38418 | } | |
38419 | if (!argp2) { | |
38420 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38421 | } | |
38422 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
38423 | { | |
38424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38425 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
38426 | wxPyEndAllowThreads(__tstate); | |
38427 | if (PyErr_Occurred()) SWIG_fail; | |
38428 | } | |
38429 | resultobj = SWIG_Py_Void(); | |
38430 | return resultobj; | |
38431 | fail: | |
38432 | return NULL; | |
38433 | } | |
38434 | ||
38435 | ||
38436 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38437 | PyObject *resultobj = 0; | |
38438 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38439 | wxBrush *arg2 = 0 ; | |
38440 | void *argp1 = 0 ; | |
38441 | int res1 = 0 ; | |
38442 | void *argp2 = 0 ; | |
38443 | int res2 = 0 ; | |
38444 | PyObject * obj0 = 0 ; | |
38445 | PyObject * obj1 = 0 ; | |
38446 | char * kwnames[] = { | |
38447 | (char *) "self",(char *) "brush", NULL | |
38448 | }; | |
38449 | ||
38450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38452 | if (!SWIG_IsOK(res1)) { | |
38453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38454 | } | |
38455 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38456 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
38457 | if (!SWIG_IsOK(res2)) { | |
38458 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38459 | } | |
38460 | if (!argp2) { | |
38461 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
38462 | } | |
38463 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
38464 | { | |
38465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38466 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
38467 | wxPyEndAllowThreads(__tstate); | |
38468 | if (PyErr_Occurred()) SWIG_fail; | |
38469 | } | |
38470 | resultobj = SWIG_Py_Void(); | |
38471 | return resultobj; | |
38472 | fail: | |
38473 | return NULL; | |
38474 | } | |
38475 | ||
38476 | ||
38477 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38478 | PyObject *resultobj = 0; | |
38479 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38480 | int arg2 ; | |
38481 | void *argp1 = 0 ; | |
38482 | int res1 = 0 ; | |
38483 | int val2 ; | |
38484 | int ecode2 = 0 ; | |
38485 | PyObject * obj0 = 0 ; | |
38486 | PyObject * obj1 = 0 ; | |
38487 | char * kwnames[] = { | |
38488 | (char *) "self",(char *) "mode", NULL | |
38489 | }; | |
38490 | ||
38491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
38492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38493 | if (!SWIG_IsOK(res1)) { | |
38494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38495 | } | |
38496 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38497 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38498 | if (!SWIG_IsOK(ecode2)) { | |
38499 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
38500 | } | |
38501 | arg2 = static_cast< int >(val2); | |
38502 | { | |
38503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38504 | (arg1)->SetBackgroundMode(arg2); | |
38505 | wxPyEndAllowThreads(__tstate); | |
38506 | if (PyErr_Occurred()) SWIG_fail; | |
38507 | } | |
38508 | resultobj = SWIG_Py_Void(); | |
38509 | return resultobj; | |
38510 | fail: | |
38511 | return NULL; | |
38512 | } | |
38513 | ||
38514 | ||
38515 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38516 | PyObject *resultobj = 0; | |
38517 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38518 | wxPalette *arg2 = 0 ; | |
38519 | void *argp1 = 0 ; | |
38520 | int res1 = 0 ; | |
38521 | void *argp2 = 0 ; | |
38522 | int res2 = 0 ; | |
38523 | PyObject * obj0 = 0 ; | |
38524 | PyObject * obj1 = 0 ; | |
38525 | char * kwnames[] = { | |
38526 | (char *) "self",(char *) "palette", NULL | |
38527 | }; | |
38528 | ||
38529 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
38530 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38531 | if (!SWIG_IsOK(res1)) { | |
38532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38533 | } | |
38534 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38535 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
38536 | if (!SWIG_IsOK(res2)) { | |
38537 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
38538 | } | |
38539 | if (!argp2) { | |
38540 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
38541 | } | |
38542 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
38543 | { | |
38544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38545 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
38546 | wxPyEndAllowThreads(__tstate); | |
38547 | if (PyErr_Occurred()) SWIG_fail; | |
38548 | } | |
38549 | resultobj = SWIG_Py_Void(); | |
38550 | return resultobj; | |
38551 | fail: | |
38552 | return NULL; | |
38553 | } | |
38554 | ||
38555 | ||
38556 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38557 | PyObject *resultobj = 0; | |
38558 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38559 | wxColour *arg2 = 0 ; | |
38560 | void *argp1 = 0 ; | |
38561 | int res1 = 0 ; | |
38562 | wxColour temp2 ; | |
38563 | PyObject * obj0 = 0 ; | |
38564 | PyObject * obj1 = 0 ; | |
38565 | char * kwnames[] = { | |
38566 | (char *) "self",(char *) "colour", NULL | |
38567 | }; | |
38568 | ||
38569 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38570 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38571 | if (!SWIG_IsOK(res1)) { | |
38572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38573 | } | |
38574 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38575 | { | |
38576 | arg2 = &temp2; | |
38577 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
38578 | } | |
38579 | { | |
38580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38581 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
38582 | wxPyEndAllowThreads(__tstate); | |
38583 | if (PyErr_Occurred()) SWIG_fail; | |
38584 | } | |
38585 | resultobj = SWIG_Py_Void(); | |
38586 | return resultobj; | |
38587 | fail: | |
38588 | return NULL; | |
38589 | } | |
38590 | ||
38591 | ||
38592 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38593 | PyObject *resultobj = 0; | |
38594 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38595 | wxColour *arg2 = 0 ; | |
38596 | void *argp1 = 0 ; | |
38597 | int res1 = 0 ; | |
38598 | wxColour temp2 ; | |
38599 | PyObject * obj0 = 0 ; | |
38600 | PyObject * obj1 = 0 ; | |
38601 | char * kwnames[] = { | |
38602 | (char *) "self",(char *) "colour", NULL | |
38603 | }; | |
38604 | ||
38605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
38606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38607 | if (!SWIG_IsOK(res1)) { | |
38608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38609 | } | |
38610 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38611 | { | |
38612 | arg2 = &temp2; | |
38613 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
38614 | } | |
38615 | { | |
38616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38617 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
38618 | wxPyEndAllowThreads(__tstate); | |
38619 | if (PyErr_Occurred()) SWIG_fail; | |
38620 | } | |
38621 | resultobj = SWIG_Py_Void(); | |
38622 | return resultobj; | |
38623 | fail: | |
38624 | return NULL; | |
38625 | } | |
38626 | ||
38627 | ||
38628 | SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38629 | PyObject *resultobj = 0; | |
38630 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38631 | int arg2 ; | |
38632 | void *argp1 = 0 ; | |
38633 | int res1 = 0 ; | |
38634 | int val2 ; | |
38635 | int ecode2 = 0 ; | |
38636 | PyObject * obj0 = 0 ; | |
38637 | PyObject * obj1 = 0 ; | |
38638 | char * kwnames[] = { | |
38639 | (char *) "self",(char *) "function", NULL | |
38640 | }; | |
38641 | ||
38642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
38643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38644 | if (!SWIG_IsOK(res1)) { | |
38645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38646 | } | |
38647 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38648 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38649 | if (!SWIG_IsOK(ecode2)) { | |
38650 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
38651 | } | |
38652 | arg2 = static_cast< int >(val2); | |
38653 | { | |
38654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38655 | (arg1)->SetLogicalFunction(arg2); | |
38656 | wxPyEndAllowThreads(__tstate); | |
38657 | if (PyErr_Occurred()) SWIG_fail; | |
38658 | } | |
38659 | resultobj = SWIG_Py_Void(); | |
38660 | return resultobj; | |
38661 | fail: | |
38662 | return NULL; | |
38663 | } | |
38664 | ||
38665 | ||
38666 | SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38667 | PyObject *obj; | |
38668 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
38669 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj)); | |
38670 | return SWIG_Py_Void(); | |
38671 | } | |
38672 | ||
38673 | SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
38674 | return SWIG_Python_InitShadowInstance(args); | |
38675 | } | |
38676 | ||
38677 | static PyMethodDef SwigMethods[] = { | |
38678 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
38679 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
38680 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
38681 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
38682 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
38683 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38684 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38685 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38686 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
38687 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
38688 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
38689 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
fc46b7f3 | 38690 | { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, |
b39fe951 | 38691 | { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL}, |
27e45892 RD |
38692 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
38693 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38694 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38695 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38696 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
38697 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38698 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fc46b7f3 | 38699 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
38700 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, |
38701 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
38702 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
38703 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38704 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
38705 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38706 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38707 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
b39fe951 | 38708 | { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL}, |
27e45892 RD |
38709 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, |
38710 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
38711 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38712 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
38713 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
38714 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
38715 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
38716 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
38717 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
b39fe951 | 38718 | { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL}, |
27e45892 RD |
38719 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, |
38720 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38721 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38722 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38723 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38724 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38725 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
38726 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38727 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
38728 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38729 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38730 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
38731 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
38732 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38733 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38734 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
38735 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38736 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38737 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38738 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
38739 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
38740 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
38741 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
b39fe951 | 38742 | { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL}, |
27e45892 RD |
38743 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, |
38744 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
38745 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38746 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
38747 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38748 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38749 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38750 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38751 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38752 | { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL}, |
27e45892 RD |
38753 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, |
38754 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
38755 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
38756 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
38757 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
38758 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
38759 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38760 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38761 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38762 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38763 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38764 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
38765 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38766 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38767 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38768 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38769 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 RD |
38770 | { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, |
38771 | { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
38772 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
38773 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38774 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
38775 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
38776 | { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
38777 | { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38778 | { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38779 | { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL}, | |
38780 | { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL}, | |
38781 | { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL}, | |
38782 | { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL}, | |
38783 | { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL}, | |
38784 | { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL}, | |
38785 | { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL}, | |
38786 | { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL}, | |
38787 | { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL}, | |
38788 | { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL}, | |
38789 | { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL}, | |
38790 | { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL}, | |
38791 | { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL}, | |
38792 | { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL}, | |
38793 | { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL}, | |
38794 | { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38795 | { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL}, | |
38796 | { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL}, | |
38797 | { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38798 | { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38799 | { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38800 | { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38801 | { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38802 | { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL}, | |
38803 | { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
38804 | { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
38805 | { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL}, | |
38806 | { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL}, | |
38807 | { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL}, | |
38808 | { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL}, | |
38809 | { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL}, | |
38810 | { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL}, | |
38811 | { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL}, | |
38812 | { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL}, | |
38813 | { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL}, | |
38814 | { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38815 | { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL}, | |
38816 | { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL}, | |
38817 | { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38818 | { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38819 | { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38820 | { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38821 | { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38822 | { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL}, | |
38823 | { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
38824 | { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
27e45892 RD |
38825 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, |
38826 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
38827 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
38828 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
38829 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38830 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
38831 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
38832 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38833 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38834 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38835 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38836 | { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL}, |
27e45892 RD |
38837 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, |
38838 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
38839 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
38840 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38841 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38842 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38843 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38844 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
38845 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
38846 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38847 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
38848 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
38849 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38850 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
38851 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38852 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
38853 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
38854 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
38855 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
38856 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38857 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38858 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
8c3a7183 | 38859 | { (char *)"IconBundle_IsOk", (PyCFunction)_wrap_IconBundle_IsOk, METH_O, NULL}, |
27e45892 RD |
38860 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, |
38861 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38862 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8c3a7183 RD |
38863 | { (char *)"IconBundle_GetIconOfExactSize", (PyCFunction) _wrap_IconBundle_GetIconOfExactSize, METH_VARARGS | METH_KEYWORDS, NULL}, |
38864 | { (char *)"IconBundle_GetIconCount", (PyCFunction)_wrap_IconBundle_GetIconCount, METH_O, NULL}, | |
38865 | { (char *)"IconBundle_GetIconByIndex", (PyCFunction) _wrap_IconBundle_GetIconByIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38866 | { (char *)"IconBundle_IsEmpty", (PyCFunction)_wrap_IconBundle_IsEmpty, METH_O, NULL}, | |
27e45892 RD |
38867 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, |
38868 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
38869 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38870 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
38871 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38872 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38873 | { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL}, |
27e45892 RD |
38874 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, |
38875 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
38876 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38877 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38878 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38879 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38880 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
38881 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
38882 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38883 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38884 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38885 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38886 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38887 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
38888 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38889 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38890 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38891 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
f5263701 | 38892 | { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
38893 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, |
38894 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38895 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38896 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38897 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38898 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38899 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38900 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38901 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38902 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
38903 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38904 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38905 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
38906 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
38907 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38908 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
38909 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
38910 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
38911 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
38912 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
38913 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
38914 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
38915 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
38916 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
38917 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
38918 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
38919 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
38920 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
38921 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
38922 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
38923 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
38924 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
38925 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38926 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
38927 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
38928 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
38929 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
38930 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
38931 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
38932 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
38933 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38934 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38935 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38936 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38937 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38938 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38939 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38940 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38941 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
38942 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
38943 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38944 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
38945 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
38946 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
38947 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
38948 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
38949 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
38950 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
38951 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
38952 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
38953 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38954 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
38955 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
38956 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
38957 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38958 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38959 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
38960 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
38961 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
38962 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38963 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38964 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
38965 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38966 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38967 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38968 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38969 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38970 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
38971 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38972 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38973 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38974 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38975 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
38976 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
38977 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38978 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
38979 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38980 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38981 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38982 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
38983 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 38984 | { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL}, |
27e45892 | 38985 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
38986 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, |
38987 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
38988 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
38989 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
38990 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
38991 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
38992 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
38993 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
38994 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
38995 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
38996 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
38997 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
38998 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
38999 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
39000 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39001 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39002 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39003 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39004 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39005 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39006 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39007 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39008 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39009 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39010 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39011 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
39012 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
39013 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
39014 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39015 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
39016 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
39017 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39018 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
39019 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
39020 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
39021 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
39022 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39023 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39024 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
39025 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
39026 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
39027 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
39028 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
39029 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
39030 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
39031 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
39032 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
39033 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
39034 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
39035 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
39036 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
39037 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39038 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
39039 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39040 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39041 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
39042 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
39043 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
39044 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
39045 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
39046 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
39047 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
39048 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
39049 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39050 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b | 39051 | { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
39052 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, |
39053 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39054 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39055 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39056 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39057 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39058 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
39059 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
39060 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
39061 | { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL}, |
39062 | { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL}, | |
39063 | { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39064 | { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39065 | { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39066 | { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL}, | |
39067 | { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39068 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, |
39069 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
39070 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
39071 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
39072 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39073 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39074 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39075 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39076 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39077 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
39078 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
39079 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
39080 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39081 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39082 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39083 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39084 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39085 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39086 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39087 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39088 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39089 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39090 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39091 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39092 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39093 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39094 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39095 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39096 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39097 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39098 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39099 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39100 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39101 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39102 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39103 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39104 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39105 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39106 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39107 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39108 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39109 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39110 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39111 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39112 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39113 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39114 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39115 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39116 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39117 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39118 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
cbfc9df6 RD |
39119 | { (char *)"DC_StretchBlit", (PyCFunction) _wrap_DC_StretchBlit, METH_VARARGS | METH_KEYWORDS, NULL}, |
39120 | { (char *)"DC_StretchBlitPointSize", (PyCFunction) _wrap_DC_StretchBlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 | 39121 | { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
39122 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
39123 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39124 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39125 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39126 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39127 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39128 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39129 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39130 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39131 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
39132 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39133 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
39134 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
39135 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
39136 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39137 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39138 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39139 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39140 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39141 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39142 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
39143 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
39144 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
39145 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
39146 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
39147 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39148 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39149 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39150 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39151 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
39152 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
39153 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
39154 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
39155 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39156 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39157 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39158 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39159 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39160 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39161 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39162 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39163 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
39164 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
39165 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
39166 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
b39fe951 | 39167 | { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL}, |
0085ce49 RD |
39168 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, |
39169 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
39170 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
39171 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
39172 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
39173 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
39174 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
39175 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39176 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39177 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
39178 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39179 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
39180 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39181 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
39182 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39183 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
39184 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
39185 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39186 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39187 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
39188 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
39189 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39190 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39191 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39192 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
39193 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39194 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
39195 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39196 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39197 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
39198 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
39199 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
39200 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
39201 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
39202 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
b39fe951 RD |
39203 | { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL}, |
39204 | { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
39205 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, |
39206 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39207 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39208 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39209 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39210 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39211 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
70d7cb34 RD |
39212 | { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL}, |
39213 | { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL}, | |
39214 | { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL}, | |
39215 | { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL}, | |
39216 | { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39217 | { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL}, | |
39218 | { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL}, | |
39219 | { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL}, | |
39220 | { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39221 | { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL}, | |
39222 | { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL}, | |
39223 | { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL}, | |
39224 | { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL}, | |
39225 | { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL}, | |
39226 | { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL}, | |
39227 | { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39228 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, |
39229 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39230 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39231 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
39232 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
39233 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
72ef6efb RD |
39234 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39235 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
39236 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39237 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39238 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
39239 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
39240 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39241 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
39242 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
26c4d26f RD |
39243 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39244 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39245 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39246 | { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39247 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
39248 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
24f6c4e8 RD |
39249 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, |
39250 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
39251 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
b6df5cf9 RD |
39252 | { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
39253 | { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL}, | |
24f6c4e8 RD |
39254 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, |
39255 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
39256 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39257 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39258 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
39259 | { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39260 | { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39261 | { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 39262 | { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
39263 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39264 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
39265 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
39266 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39267 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
39268 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39269 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39270 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
39271 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
39272 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
39273 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39274 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
39275 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
39276 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39277 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
39278 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
39279 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39280 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
39281 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
a7830320 | 39282 | { (char *)"SVGFileDC_swigregister", SVGFileDC_swigregister, METH_VARARGS, NULL}, |
70d7cb34 RD |
39283 | { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL}, |
39284 | { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL}, | |
39285 | { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL}, | |
39286 | { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL}, | |
39287 | { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL}, | |
39288 | { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL}, | |
39289 | { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL}, | |
39290 | { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL}, | |
39291 | { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL}, | |
39292 | { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL}, | |
39293 | { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL}, | |
39294 | { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL}, | |
39295 | { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL}, | |
39296 | { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL}, | |
39297 | { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL}, | |
39298 | { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL}, | |
39299 | { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL}, | |
39300 | { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL}, | |
5c8c7dd3 RD |
39301 | { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL}, |
39302 | { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 | 39303 | { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
248802d0 | 39304 | { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL}, |
5c8c7dd3 RD |
39305 | { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL}, |
39306 | { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39307 | { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL}, | |
39308 | { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39309 | { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39310 | { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39311 | { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39312 | { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39313 | { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL}, | |
39314 | { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL}, | |
72ef6efb | 39315 | { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL}, |
70d7cb34 RD |
39316 | { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL}, |
39317 | { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL}, | |
39318 | { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL}, | |
39319 | { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39320 | { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL}, |
39321 | { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL}, | |
70d7cb34 | 39322 | { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL}, |
72ef6efb RD |
39323 | { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
39324 | { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39325 | { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39326 | { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 RD |
39327 | { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, |
39328 | { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39329 | { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL}, | |
39330 | { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39331 | { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39332 | { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL}, | |
39333 | { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL}, | |
72ef6efb RD |
39334 | { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL}, |
39335 | { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL}, | |
0a27f394 | 39336 | { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL}, |
f89238b9 | 39337 | { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL}, |
0a27f394 | 39338 | { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL}, |
70d7cb34 | 39339 | { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 39340 | { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL}, |
70d7cb34 RD |
39341 | { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
39342 | { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39343 | { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39344 | { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39345 | { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39346 | { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39347 | { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL}, |
39348 | { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL}, | |
0a27f394 | 39349 | { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 39350 | { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL}, |
0a27f394 RD |
39351 | { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL}, |
39352 | { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL}, | |
c8aaaf9e RD |
39353 | { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL}, |
39354 | { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39355 | { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, |
39356 | { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39357 | { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
39358 | { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL}, |
39359 | { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39360 | { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL}, | |
70d7cb34 RD |
39361 | { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL}, |
39362 | { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL}, | |
39363 | { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL}, | |
72ef6efb RD |
39364 | { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
39365 | { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39366 | { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
39367 | { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, |
39368 | { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be68621e | 39369 | { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
39370 | { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
39371 | { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39372 | { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39373 | { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39374 | { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39375 | { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
f8eb59b9 | 39376 | { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
39377 | { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
39378 | { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39379 | { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39380 | { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 39381 | { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL}, |
72ef6efb | 39382 | { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL}, |
70d7cb34 RD |
39383 | { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL}, |
39384 | { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL}, | |
39385 | { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL}, | |
f89238b9 | 39386 | { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL}, |
70d7cb34 RD |
39387 | { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL}, |
39388 | { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39389 | { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL}, | |
39390 | { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39391 | { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39392 | { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39393 | { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39394 | { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39395 | { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39396 | { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL}, | |
48a0c021 | 39397 | { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL}, |
72ef6efb | 39398 | { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL}, |
0a27f394 RD |
39399 | { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL}, |
39400 | { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39401 | { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL}, |
39402 | { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL}, | |
b39fe951 RD |
39403 | { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL}, |
39404 | { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL}, | |
39405 | { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL}, | |
39406 | { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL}, | |
39407 | { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL}, | |
39408 | { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL}, | |
39409 | { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL}, | |
39410 | { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL}, | |
39411 | { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL}, | |
39412 | { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39413 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, |
39414 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
39415 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39416 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39417 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39418 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39419 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39420 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39421 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39422 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
39423 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39424 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
39425 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39426 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
39427 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
39428 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
39429 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
39430 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
39431 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
39432 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39433 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39434 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39435 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39436 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39437 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
39438 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
39439 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
39440 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
39441 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
39442 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
0085ce49 | 39443 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39444 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 39445 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 39446 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
50efceee | 39447 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 39448 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, |
0085ce49 RD |
39449 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
39450 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
39451 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39452 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39453 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39454 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39455 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
39456 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
39457 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
39458 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
39459 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
39460 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
0085ce49 RD |
39461 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
39462 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
39463 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
39464 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
39465 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
39466 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
39467 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39468 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39469 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39470 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39471 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39472 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39473 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39474 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39475 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
39476 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
39477 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39478 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
39479 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
39480 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
39481 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
39482 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
39483 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
33d6fd3b RD |
39484 | { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL}, |
39485 | { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL}, | |
39486 | { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL}, | |
39487 | { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL}, | |
39488 | { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL}, | |
39489 | { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL}, | |
39490 | { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL}, | |
39491 | { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL}, | |
39492 | { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL}, | |
39493 | { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL}, | |
39494 | { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL}, | |
39495 | { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL}, | |
39496 | { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL}, | |
39497 | { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL}, | |
39498 | { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL}, | |
39499 | { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL}, | |
39500 | { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL}, | |
39501 | { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39502 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
39503 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
39504 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39505 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
39506 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
39507 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
39508 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
39509 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b RD |
39510 | { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL}, |
39511 | { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
39512 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
39513 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39514 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39515 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39516 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
01f6b6d3 RD |
39517 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
39518 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39519 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
39520 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
39521 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
39522 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
39523 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
39524 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39525 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
39526 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
27e45892 RD |
39527 | { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL}, |
39528 | { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL}, | |
39529 | { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL}, | |
39530 | { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL}, | |
39531 | { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL}, | |
39532 | { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL}, | |
39533 | { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39534 | { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39535 | { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39536 | { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
39537 | { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, |
39538 | { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39539 | { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39540 | { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
39541 | { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39542 | { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39543 | { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39544 | { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39545 | { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39546 | { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39547 | { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39548 | { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39549 | { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39550 | { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39551 | { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39552 | { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39553 | { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39554 | { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39555 | { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39556 | { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39557 | { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39558 | { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39559 | { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39560 | { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39561 | { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39562 | { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39563 | { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39564 | { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39565 | { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39566 | { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39567 | { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39568 | { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39569 | { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39570 | { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39571 | { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39572 | { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39573 | { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39574 | { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39575 | { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39576 | { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39577 | { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39578 | { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39579 | { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39580 | { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39581 | { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39582 | { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39583 | { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39584 | { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39585 | { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL}, | |
39586 | { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39587 | { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39588 | { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39589 | { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39590 | { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39591 | { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39592 | { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39593 | { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39594 | { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39595 | { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL}, | |
39596 | { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
39597 | { NULL, NULL, 0, NULL } |
39598 | }; | |
39599 | ||
39600 | ||
39601 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
39602 | ||
72ef6efb RD |
39603 | static void *_p_wxPaintDCTo_p_wxClientDC(void *x) { |
39604 | return (void *)((wxClientDC *) ((wxPaintDC *) x)); | |
39605 | } | |
8e99bda9 RD |
39606 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
39607 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
39608 | } | |
39609 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
39610 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39611 | } | |
26c4d26f RD |
39612 | static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) { |
39613 | return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
39614 | } | |
39615 | static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) { | |
39616 | return (void *)((wxWindowDC *) ((wxMemoryDC *) x)); | |
39617 | } | |
72ef6efb RD |
39618 | static void *_p_wxClientDCTo_p_wxWindowDC(void *x) { |
39619 | return (void *)((wxWindowDC *) ((wxClientDC *) x)); | |
39620 | } | |
39621 | static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) { | |
39622 | return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x)); | |
39623 | } | |
26c4d26f RD |
39624 | static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) { |
39625 | return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39626 | } | |
fc46b7f3 RD |
39627 | static void *_p_wxPyLocaleTo_p_wxLocale(void *x) { |
39628 | return (void *)((wxLocale *) ((wxPyLocale *) x)); | |
39629 | } | |
70d7cb34 RD |
39630 | static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) { |
39631 | return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
39632 | } | |
39633 | static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) { | |
39634 | return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
39635 | } | |
39636 | static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) { | |
39637 | return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
39638 | } | |
39639 | static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) { | |
39640 | return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
39641 | } | |
39642 | static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) { | |
39643 | return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
39644 | } | |
39645 | static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) { | |
39646 | return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
39647 | } | |
0085ce49 RD |
39648 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
39649 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
39650 | } | |
39651 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
39652 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
39653 | } | |
39654 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
39655 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
39656 | } | |
39657 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
39658 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
39659 | } | |
39660 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
39661 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
39662 | } | |
39663 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
39664 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
39665 | } | |
39666 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
39667 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
39668 | } | |
39669 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
39670 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
39671 | } | |
a7830320 RD |
39672 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { |
39673 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
0085ce49 | 39674 | } |
a7830320 RD |
39675 | static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) { |
39676 | return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
24f6c4e8 | 39677 | } |
a7830320 RD |
39678 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { |
39679 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
0085ce49 | 39680 | } |
a7830320 RD |
39681 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { |
39682 | return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); | |
0085ce49 | 39683 | } |
a7830320 RD |
39684 | static void *_p_wxSVGFileDCTo_p_wxDC(void *x) { |
39685 | return (void *)((wxDC *) ((wxSVGFileDC *) x)); | |
26c4d26f | 39686 | } |
0085ce49 RD |
39687 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { |
39688 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
39689 | } | |
0085ce49 | 39690 | static void *_p_wxClientDCTo_p_wxDC(void *x) { |
72ef6efb | 39691 | return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x)); |
0085ce49 | 39692 | } |
a7830320 RD |
39693 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { |
39694 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
0085ce49 | 39695 | } |
a7830320 RD |
39696 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { |
39697 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
24f6c4e8 | 39698 | } |
a7830320 RD |
39699 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
39700 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
24f6c4e8 | 39701 | } |
a7830320 RD |
39702 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
39703 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
0085ce49 | 39704 | } |
a7830320 RD |
39705 | static void *_p_wxGCDCTo_p_wxDC(void *x) { |
39706 | return (void *)((wxDC *) ((wxGCDC *) x)); | |
39707 | } | |
39708 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
39709 | return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x)); | |
39710 | } | |
39711 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
39712 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
0085ce49 | 39713 | } |
50efceee RD |
39714 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
39715 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
39716 | } | |
39717 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
39718 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
39719 | } | |
39720 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
39721 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
39722 | } | |
0085ce49 RD |
39723 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
39724 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
39725 | } | |
39726 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
39727 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
39728 | } | |
39729 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
39730 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
39731 | } | |
39732 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
39733 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
39734 | } | |
4976f996 RD |
39735 | static void *_p_wxEventBlockerTo_p_wxObject(void *x) { |
39736 | return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x)); | |
39737 | } | |
0085ce49 RD |
39738 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
39739 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
39740 | } | |
34e0a3bb RD |
39741 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
39742 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
39743 | } | |
0085ce49 RD |
39744 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
39745 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
39746 | } | |
39747 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
39748 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
39749 | } | |
39750 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
39751 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
39752 | } | |
39753 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
39754 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
39755 | } | |
39756 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
39757 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
39758 | } | |
39759 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
39760 | return (void *)((wxObject *) ((wxSizer *) x)); | |
39761 | } | |
39762 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
39763 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
39764 | } | |
39765 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
39766 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
39767 | } | |
0085ce49 RD |
39768 | static void *_p_wxEventTo_p_wxObject(void *x) { |
39769 | return (void *)((wxObject *) ((wxEvent *) x)); | |
39770 | } | |
0085ce49 RD |
39771 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
39772 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
39773 | } | |
4976f996 RD |
39774 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { |
39775 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
39776 | } | |
0085ce49 RD |
39777 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { |
39778 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
39779 | } | |
27e45892 RD |
39780 | static void *_p_wxPseudoDCTo_p_wxObject(void *x) { |
39781 | return (void *)((wxObject *) ((wxPseudoDC *) x)); | |
39782 | } | |
2131d850 RD |
39783 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
39784 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
39785 | } | |
0085ce49 RD |
39786 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
39787 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
39788 | } | |
39789 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
39790 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
39791 | } | |
39792 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
39793 | return (void *)((wxObject *) ((wxDC *) x)); | |
39794 | } | |
39795 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
39796 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
39797 | } | |
39798 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
39799 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
39800 | } | |
39801 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
39802 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
39803 | } | |
39804 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
39805 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
39806 | } | |
39807 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
39808 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
39809 | } | |
70d7cb34 RD |
39810 | static void *_p_wxGraphicsPenTo_p_wxObject(void *x) { |
39811 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
39812 | } | |
0085ce49 RD |
39813 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
39814 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
39815 | } | |
39816 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
72ef6efb | 39817 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x)); |
0085ce49 RD |
39818 | } |
39819 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
39820 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
39821 | } | |
39822 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
26c4d26f | 39823 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x)); |
0085ce49 RD |
39824 | } |
39825 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
39826 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
39827 | } | |
39828 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
39829 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
39830 | } | |
39831 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
39832 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
39833 | } | |
39834 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
39835 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
39836 | } | |
70d7cb34 RD |
39837 | static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) { |
39838 | return (void *)((wxObject *) ((wxGraphicsObject *) x)); | |
39839 | } | |
39840 | static void *_p_wxGraphicsPathTo_p_wxObject(void *x) { | |
39841 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
39842 | } | |
0085ce49 RD |
39843 | static void *_p_wxEffectsTo_p_wxObject(void *x) { |
39844 | return (void *)((wxObject *) ((wxEffects *) x)); | |
39845 | } | |
39846 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
39847 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
39848 | } | |
39849 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
39850 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
39851 | } | |
39852 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
39853 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
39854 | } | |
70d7cb34 RD |
39855 | static void *_p_wxGraphicsContextTo_p_wxObject(void *x) { |
39856 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
39857 | } | |
0085ce49 RD |
39858 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
39859 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
39860 | } | |
39861 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
39862 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
39863 | } | |
39864 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
39865 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
39866 | } | |
39867 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
39868 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
39869 | } | |
39870 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
39871 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
39872 | } | |
39873 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
39874 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
39875 | } | |
39876 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
39877 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
39878 | } | |
39879 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
39880 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
39881 | } | |
39882 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
39883 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
39884 | } | |
39885 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
39886 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
39887 | } | |
39888 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
39889 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
39890 | } | |
39891 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
39892 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
39893 | } | |
39894 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
39895 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
39896 | } | |
39897 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
39898 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
39899 | } | |
39900 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
39901 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
39902 | } | |
39903 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
39904 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
39905 | } | |
39906 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
39907 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
39908 | } | |
39909 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
39910 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
39911 | } | |
39912 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
39913 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
39914 | } | |
39915 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
39916 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
39917 | } | |
39918 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
39919 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
39920 | } | |
39921 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
39922 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
39923 | } | |
39924 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
39925 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
39926 | } | |
39927 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
39928 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
39929 | } | |
580080c5 RD |
39930 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
39931 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
39932 | } | |
0085ce49 RD |
39933 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
39934 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
39935 | } | |
34e0a3bb RD |
39936 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
39937 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
39938 | } | |
24f6c4e8 RD |
39939 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { |
39940 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); | |
39941 | } | |
0085ce49 | 39942 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { |
26c4d26f | 39943 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
0085ce49 | 39944 | } |
24f6c4e8 RD |
39945 | static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) { |
39946 | return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
0085ce49 RD |
39947 | } |
39948 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
39949 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
39950 | } | |
39951 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
39952 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
39953 | } | |
0085ce49 RD |
39954 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
39955 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
39956 | } | |
580080c5 RD |
39957 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
39958 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
39959 | } | |
0085ce49 RD |
39960 | static void *_p_wxImageTo_p_wxObject(void *x) { |
39961 | return (void *)((wxObject *) ((wxImage *) x)); | |
39962 | } | |
39963 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
39964 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
39965 | } | |
70d7cb34 RD |
39966 | static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) { |
39967 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
39968 | } | |
39969 | static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) { | |
39970 | return (void *)((wxObject *) ((wxGraphicsRenderer *) x)); | |
39971 | } | |
0085ce49 RD |
39972 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
39973 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
39974 | } | |
39975 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
26c4d26f | 39976 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
0085ce49 RD |
39977 | } |
39978 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
39979 | return (void *)((wxObject *) ((wxImageList *) x)); | |
39980 | } | |
72ef6efb RD |
39981 | static void *_p_wxGCDCTo_p_wxObject(void *x) { |
39982 | return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x)); | |
39983 | } | |
0085ce49 RD |
39984 | static void *_p_wxCursorTo_p_wxObject(void *x) { |
39985 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
39986 | } | |
39987 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
39988 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
39989 | } | |
39990 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
39991 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
39992 | } | |
70d7cb34 RD |
39993 | static void *_p_wxGraphicsFontTo_p_wxObject(void *x) { |
39994 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
39995 | } | |
0085ce49 RD |
39996 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
39997 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
39998 | } | |
39999 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
40000 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40001 | } | |
40002 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
40003 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
40004 | } | |
40005 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
40006 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
40007 | } | |
40008 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
40009 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
40010 | } | |
40011 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
40012 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
40013 | } | |
40014 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
40015 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
40016 | } | |
a7830320 RD |
40017 | static void *_p_wxSVGFileDCTo_p_wxObject(void *x) { |
40018 | return (void *)((wxObject *) (wxDC *) ((wxSVGFileDC *) x)); | |
40019 | } | |
0085ce49 RD |
40020 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
40021 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
40022 | } | |
40023 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
40024 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
40025 | } | |
40026 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
40027 | return (void *)((wxObject *) ((wxMask *) x)); | |
40028 | } | |
70d7cb34 RD |
40029 | static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) { |
40030 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
40031 | } | |
0085ce49 RD |
40032 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
40033 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40034 | } | |
40035 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
40036 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
40037 | } | |
40038 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
40039 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
40040 | } | |
40041 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
40042 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
40043 | } | |
40044 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
40045 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
40046 | } | |
40047 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
40048 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
40049 | } | |
40050 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
40051 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40052 | } | |
40053 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
40054 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
40055 | } | |
40056 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
40057 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
40058 | } | |
40059 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
40060 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
40061 | } | |
40062 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
40063 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40064 | } | |
40065 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
40066 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
40067 | } | |
40068 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
40069 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
40070 | } | |
40071 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
40072 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
40073 | } | |
40074 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
40075 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40076 | } | |
40077 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
40078 | return (void *)((wxObject *) ((wxColour *) x)); | |
40079 | } | |
0085ce49 RD |
40080 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
40081 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
40082 | } | |
40083 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
40084 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
40085 | } | |
40086 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
40087 | return (void *)((wxWindow *) ((wxControl *) x)); | |
40088 | } | |
40089 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
40090 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
40091 | } | |
40092 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
40093 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
40094 | } | |
fc46b7f3 RD |
40095 | static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) { |
40096 | return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x)); | |
40097 | } | |
40098 | static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) { | |
40099 | return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x)); | |
40100 | } | |
40101 | static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0}; | |
0085ce49 | 40102 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
72ef6efb | 40103 | static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40104 | 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}; |
40105 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
40106 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
40107 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
40108 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 40109 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
fc46b7f3 RD |
40110 | static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; |
40111 | static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; | |
24f6c4e8 | 40112 | static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40113 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
40114 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
40115 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
40116 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
40117 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
40118 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; | |
40119 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
40120 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
40121 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
40122 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
70d7cb34 RD |
40123 | static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0}; |
40124 | static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0}; | |
b39fe951 | 40125 | static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40126 | static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0}; |
40127 | static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
40128 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; |
40129 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
40130 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
40131 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
40132 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
40133 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
40134 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
72ef6efb | 40135 | static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0}; |
50efceee | 40136 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 40137 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
70d7cb34 | 40138 | static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0}; |
72ef6efb | 40139 | static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40140 | static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0}; |
40141 | static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0}; | |
40142 | static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0}; | |
72ef6efb | 40143 | static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40144 | static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0}; |
40145 | static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0}; | |
33d6fd3b | 40146 | static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40147 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
40148 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
40149 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
40150 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
40151 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
40152 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
40153 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
40154 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
40155 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
40156 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
40157 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
40158 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
40159 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
40160 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
40161 | static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0}; |
40162 | static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
40163 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
40164 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
4976f996 | 40165 | static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0}; |
0085ce49 | 40166 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 40167 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
0085ce49 RD |
40168 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
40169 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
40170 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
40171 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
40172 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
40173 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
40174 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
40175 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
40176 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
0085ce49 | 40177 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; |
4976f996 | 40178 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; |
0085ce49 | 40179 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; |
2131d850 | 40180 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
40181 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
40182 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
40183 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
40184 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
40185 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
40186 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
40187 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
40188 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
40189 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
40190 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
40191 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
40192 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
40193 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
40194 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
0085ce49 RD |
40195 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; |
40196 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
40197 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
40198 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
40199 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
40200 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
40201 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
a7830320 | 40202 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; |
4976f996 | 40203 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; |
0085ce49 | 40204 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; |
580080c5 | 40205 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
70d7cb34 RD |
40206 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; |
40207 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
40208 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
40209 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
40210 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
40211 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
24f6c4e8 | 40212 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
72ef6efb | 40213 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
27e45892 | 40214 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
2131d850 | 40215 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
0085ce49 RD |
40216 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
40217 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
40218 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
34e0a3bb | 40219 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
0085ce49 | 40220 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 40221 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
0085ce49 RD |
40222 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; |
40223 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
40224 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
40225 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
40226 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
40227 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
40228 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
40229 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
40230 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
40231 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
40232 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
40233 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
40234 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
40235 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
40236 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
40237 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
40238 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
40239 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
40240 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
40241 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
b39fe951 | 40242 | static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40243 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; |
40244 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
40245 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
40246 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
40247 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 40248 | static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 40249 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
72ef6efb | 40250 | static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40251 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; |
40252 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
40253 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
27e45892 | 40254 | static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0}; |
0085ce49 | 40255 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; |
fc46b7f3 | 40256 | static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0}; |
0085ce49 | 40257 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; |
4fe9ce47 | 40258 | static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40259 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; |
40260 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
40261 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
40262 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
a7830320 | 40263 | static swig_type_info _swigt__p_wxSVGFileDC = {"_p_wxSVGFileDC", "wxSVGFileDC *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40264 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; |
40265 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
40266 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
50efceee | 40267 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
40268 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
40269 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
40270 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
40271 | ||
40272 | static swig_type_info *swig_type_initial[] = { | |
fc46b7f3 | 40273 | &_swigt__p_buffer, |
0085ce49 RD |
40274 | &_swigt__p_char, |
40275 | &_swigt__p_double, | |
40276 | &_swigt__p_form_ops_t, | |
40277 | &_swigt__p_int, | |
40278 | &_swigt__p_unsigned_char, | |
40279 | &_swigt__p_unsigned_int, | |
40280 | &_swigt__p_unsigned_long, | |
0a27f394 | 40281 | &_swigt__p_void, |
0085ce49 RD |
40282 | &_swigt__p_wxANIHandler, |
40283 | &_swigt__p_wxAcceleratorTable, | |
40284 | &_swigt__p_wxActivateEvent, | |
fc46b7f3 RD |
40285 | &_swigt__p_wxAlphaPixelData, |
40286 | &_swigt__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 40287 | &_swigt__p_wxAutoBufferedPaintDC, |
0085ce49 RD |
40288 | &_swigt__p_wxBMPHandler, |
40289 | &_swigt__p_wxBitmap, | |
40290 | &_swigt__p_wxBoxSizer, | |
40291 | &_swigt__p_wxBrush, | |
40292 | &_swigt__p_wxBrushList, | |
40293 | &_swigt__p_wxBufferedDC, | |
40294 | &_swigt__p_wxBufferedPaintDC, | |
40295 | &_swigt__p_wxCURHandler, | |
40296 | &_swigt__p_wxChildFocusEvent, | |
40297 | &_swigt__p_wxClientDC, | |
2131d850 | 40298 | &_swigt__p_wxClipboardTextEvent, |
0085ce49 RD |
40299 | &_swigt__p_wxCloseEvent, |
40300 | &_swigt__p_wxColour, | |
40301 | &_swigt__p_wxColourDatabase, | |
40302 | &_swigt__p_wxCommandEvent, | |
40303 | &_swigt__p_wxContextMenuEvent, | |
40304 | &_swigt__p_wxControl, | |
40305 | &_swigt__p_wxControlWithItems, | |
40306 | &_swigt__p_wxCursor, | |
40307 | &_swigt__p_wxDC, | |
70d7cb34 RD |
40308 | &_swigt__p_wxDCBrushChanger, |
40309 | &_swigt__p_wxDCClipper, | |
b39fe951 | 40310 | &_swigt__p_wxDCOverlay, |
70d7cb34 RD |
40311 | &_swigt__p_wxDCPenChanger, |
40312 | &_swigt__p_wxDCTextColourChanger, | |
0085ce49 RD |
40313 | &_swigt__p_wxDash, |
40314 | &_swigt__p_wxDateEvent, | |
40315 | &_swigt__p_wxDisplayChangedEvent, | |
40316 | &_swigt__p_wxDropFilesEvent, | |
40317 | &_swigt__p_wxDuplexMode, | |
40318 | &_swigt__p_wxEffects, | |
40319 | &_swigt__p_wxEncodingConverter, | |
40320 | &_swigt__p_wxEraseEvent, | |
40321 | &_swigt__p_wxEvent, | |
4976f996 | 40322 | &_swigt__p_wxEventBlocker, |
0085ce49 RD |
40323 | &_swigt__p_wxEvtHandler, |
40324 | &_swigt__p_wxFSFile, | |
40325 | &_swigt__p_wxFileSystem, | |
40326 | &_swigt__p_wxFlexGridSizer, | |
40327 | &_swigt__p_wxFocusEvent, | |
40328 | &_swigt__p_wxFont, | |
40329 | &_swigt__p_wxFontList, | |
40330 | &_swigt__p_wxFontMapper, | |
40331 | &_swigt__p_wxGBSizerItem, | |
72ef6efb | 40332 | &_swigt__p_wxGCDC, |
50efceee | 40333 | &_swigt__p_wxGDIObjListBase, |
0085ce49 RD |
40334 | &_swigt__p_wxGDIObject, |
40335 | &_swigt__p_wxGIFHandler, | |
70d7cb34 | 40336 | &_swigt__p_wxGraphicsBrush, |
72ef6efb | 40337 | &_swigt__p_wxGraphicsContext, |
70d7cb34 RD |
40338 | &_swigt__p_wxGraphicsFont, |
40339 | &_swigt__p_wxGraphicsMatrix, | |
40340 | &_swigt__p_wxGraphicsObject, | |
72ef6efb | 40341 | &_swigt__p_wxGraphicsPath, |
70d7cb34 RD |
40342 | &_swigt__p_wxGraphicsPen, |
40343 | &_swigt__p_wxGraphicsRenderer, | |
0085ce49 RD |
40344 | &_swigt__p_wxGridBagSizer, |
40345 | &_swigt__p_wxGridSizer, | |
33d6fd3b | 40346 | &_swigt__p_wxHeaderButtonParams, |
0085ce49 RD |
40347 | &_swigt__p_wxICOHandler, |
40348 | &_swigt__p_wxIcon, | |
40349 | &_swigt__p_wxIconBundle, | |
40350 | &_swigt__p_wxIconLocation, | |
40351 | &_swigt__p_wxIconizeEvent, | |
40352 | &_swigt__p_wxIdleEvent, | |
40353 | &_swigt__p_wxImage, | |
40354 | &_swigt__p_wxImageHandler, | |
40355 | &_swigt__p_wxImageList, | |
40356 | &_swigt__p_wxIndividualLayoutConstraint, | |
40357 | &_swigt__p_wxInitDialogEvent, | |
40358 | &_swigt__p_wxJPEGHandler, | |
40359 | &_swigt__p_wxKeyEvent, | |
40360 | &_swigt__p_wxLanguageInfo, | |
40361 | &_swigt__p_wxLayoutConstraints, | |
40362 | &_swigt__p_wxLocale, | |
40363 | &_swigt__p_wxMask, | |
40364 | &_swigt__p_wxMaximizeEvent, | |
40365 | &_swigt__p_wxMemoryDC, | |
40366 | &_swigt__p_wxMenu, | |
40367 | &_swigt__p_wxMenuBar, | |
40368 | &_swigt__p_wxMenuEvent, | |
40369 | &_swigt__p_wxMenuItem, | |
40370 | &_swigt__p_wxMetaFile, | |
40371 | &_swigt__p_wxMetaFileDC, | |
40372 | &_swigt__p_wxMirrorDC, | |
40373 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 40374 | &_swigt__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
40375 | &_swigt__p_wxMouseEvent, |
40376 | &_swigt__p_wxMoveEvent, | |
40377 | &_swigt__p_wxNativeEncodingInfo, | |
40378 | &_swigt__p_wxNativeFontInfo, | |
fc46b7f3 RD |
40379 | &_swigt__p_wxNativePixelData, |
40380 | &_swigt__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
40381 | &_swigt__p_wxNavigationKeyEvent, |
40382 | &_swigt__p_wxNcPaintEvent, | |
40383 | &_swigt__p_wxNotifyEvent, | |
40384 | &_swigt__p_wxObject, | |
b39fe951 | 40385 | &_swigt__p_wxOverlay, |
0085ce49 RD |
40386 | &_swigt__p_wxPCXHandler, |
40387 | &_swigt__p_wxPNGHandler, | |
40388 | &_swigt__p_wxPNMHandler, | |
40389 | &_swigt__p_wxPaintDC, | |
40390 | &_swigt__p_wxPaintEvent, | |
40391 | &_swigt__p_wxPalette, | |
40392 | &_swigt__p_wxPaletteChangedEvent, | |
40393 | &_swigt__p_wxPaperSize, | |
40394 | &_swigt__p_wxPen, | |
40395 | &_swigt__p_wxPenList, | |
fc46b7f3 | 40396 | &_swigt__p_wxPixelDataBase, |
0085ce49 | 40397 | &_swigt__p_wxPoint, |
72ef6efb | 40398 | &_swigt__p_wxPoint2D, |
0085ce49 RD |
40399 | &_swigt__p_wxPostScriptDC, |
40400 | &_swigt__p_wxPrintData, | |
40401 | &_swigt__p_wxPrinterDC, | |
27e45892 | 40402 | &_swigt__p_wxPseudoDC, |
0085ce49 RD |
40403 | &_swigt__p_wxPyApp, |
40404 | &_swigt__p_wxPyCommandEvent, | |
40405 | &_swigt__p_wxPyEvent, | |
40406 | &_swigt__p_wxPyFontEnumerator, | |
40407 | &_swigt__p_wxPyImageHandler, | |
fc46b7f3 | 40408 | &_swigt__p_wxPyLocale, |
0085ce49 RD |
40409 | &_swigt__p_wxPySizer, |
40410 | &_swigt__p_wxPyValidator, | |
40411 | &_swigt__p_wxQueryNewPaletteEvent, | |
40412 | &_swigt__p_wxRect, | |
4fe9ce47 | 40413 | &_swigt__p_wxRect2D, |
0085ce49 RD |
40414 | &_swigt__p_wxRegion, |
40415 | &_swigt__p_wxRegionIterator, | |
40416 | &_swigt__p_wxRendererNative, | |
40417 | &_swigt__p_wxRendererVersion, | |
a7830320 | 40418 | &_swigt__p_wxSVGFileDC, |
0085ce49 RD |
40419 | &_swigt__p_wxScreenDC, |
40420 | &_swigt__p_wxScrollEvent, | |
40421 | &_swigt__p_wxScrollWinEvent, | |
40422 | &_swigt__p_wxSetCursorEvent, | |
40423 | &_swigt__p_wxShowEvent, | |
40424 | &_swigt__p_wxSize, | |
40425 | &_swigt__p_wxSizeEvent, | |
40426 | &_swigt__p_wxSizer, | |
40427 | &_swigt__p_wxSizerItem, | |
40428 | &_swigt__p_wxSplitterRenderParams, | |
40429 | &_swigt__p_wxStaticBoxSizer, | |
40430 | &_swigt__p_wxStdDialogButtonSizer, | |
50efceee | 40431 | &_swigt__p_wxStockGDI, |
0085ce49 RD |
40432 | &_swigt__p_wxString, |
40433 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 40434 | &_swigt__p_wxTGAHandler, |
0085ce49 RD |
40435 | &_swigt__p_wxTIFFHandler, |
40436 | &_swigt__p_wxUpdateUIEvent, | |
40437 | &_swigt__p_wxValidator, | |
40438 | &_swigt__p_wxWindow, | |
40439 | &_swigt__p_wxWindowCreateEvent, | |
40440 | &_swigt__p_wxWindowDC, | |
40441 | &_swigt__p_wxWindowDestroyEvent, | |
40442 | &_swigt__p_wxXPMHandler, | |
40443 | }; | |
40444 | ||
fc46b7f3 | 40445 | static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40446 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
40447 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
40448 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
40449 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
40450 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
40451 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
40452 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 40453 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 RD |
40454 | static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; |
40455 | static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40456 | static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40457 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
40458 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
40459 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
40460 | 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}}; | |
40461 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 40462 | 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}}; |
0085ce49 RD |
40463 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
40464 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
40465 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
a7830320 | 40466 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxSVGFileDC, _p_wxSVGFileDCTo_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 |
40467 | static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}}; |
40468 | static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}}; | |
b39fe951 | 40469 | static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40470 | static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}}; |
40471 | static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
40472 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; |
40473 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
40474 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
40475 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
40476 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
40477 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
40478 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 40479 | static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}}; |
50efceee | 40480 | static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40481 | 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 | 40482 | static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40483 | static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40484 | static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}}; |
40485 | static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}}; | |
40486 | 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 | 40487 | static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40488 | static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}}; |
40489 | static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}}; | |
33d6fd3b | 40490 | static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40491 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
40492 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
40493 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
40494 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
40495 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
40496 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40497 | static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40498 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; |
8e99bda9 | 40499 | 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}}; |
0085ce49 RD |
40500 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; |
40501 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40502 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
40503 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
40504 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
40505 | static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}}; |
40506 | static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 40507 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
4976f996 | 40508 | static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40509 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 40510 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40511 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40512 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
40513 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40514 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40515 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40516 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40517 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40518 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
40519 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 40520 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; |
4976f996 | 40521 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40522 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 40523 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40524 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40525 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40526 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40527 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40528 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40529 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40530 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
40531 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40532 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
40533 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
40534 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40535 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40536 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40537 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
40538 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40539 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40540 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40541 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40542 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40543 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40544 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
a7830320 | 40545 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; |
4976f996 | 40546 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40547 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 40548 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
40549 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
40550 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40551 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40552 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40553 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40554 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 40555 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40556 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 40557 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 40558 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40559 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
40560 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
40561 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 40562 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40563 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 40564 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40565 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; |
40566 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40567 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40568 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40569 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
40570 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
40571 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40572 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40573 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
40574 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40575 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40576 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40577 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40578 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40579 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40580 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40581 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
40582 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
40583 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
40584 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
a7830320 | 40585 | 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_wxEventBlocker, _p_wxEventBlockerTo_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_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_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_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_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_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_wxSVGFileDC, _p_wxSVGFileDCTo_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 | 40586 | static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40587 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
40588 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
40589 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
40590 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
40591 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 40592 | static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40593 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 40594 | static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40595 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; |
40596 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
40597 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 40598 | static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40599 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 | 40600 | static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 40601 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; |
4fe9ce47 | 40602 | static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40603 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; |
40604 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
40605 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
40606 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
a7830320 | 40607 | static swig_cast_info _swigc__p_wxSVGFileDC[] = { {&_swigt__p_wxSVGFileDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40608 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; |
40609 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
40610 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 40611 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
40612 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
40613 | 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 | 40614 | 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}}; |
0085ce49 RD |
40615 | |
40616 | static swig_cast_info *swig_cast_initial[] = { | |
fc46b7f3 | 40617 | _swigc__p_buffer, |
0085ce49 RD |
40618 | _swigc__p_char, |
40619 | _swigc__p_double, | |
40620 | _swigc__p_form_ops_t, | |
40621 | _swigc__p_int, | |
40622 | _swigc__p_unsigned_char, | |
40623 | _swigc__p_unsigned_int, | |
40624 | _swigc__p_unsigned_long, | |
0a27f394 | 40625 | _swigc__p_void, |
0085ce49 RD |
40626 | _swigc__p_wxANIHandler, |
40627 | _swigc__p_wxAcceleratorTable, | |
40628 | _swigc__p_wxActivateEvent, | |
fc46b7f3 RD |
40629 | _swigc__p_wxAlphaPixelData, |
40630 | _swigc__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 40631 | _swigc__p_wxAutoBufferedPaintDC, |
0085ce49 RD |
40632 | _swigc__p_wxBMPHandler, |
40633 | _swigc__p_wxBitmap, | |
40634 | _swigc__p_wxBoxSizer, | |
40635 | _swigc__p_wxBrush, | |
40636 | _swigc__p_wxBrushList, | |
40637 | _swigc__p_wxBufferedDC, | |
40638 | _swigc__p_wxBufferedPaintDC, | |
40639 | _swigc__p_wxCURHandler, | |
40640 | _swigc__p_wxChildFocusEvent, | |
40641 | _swigc__p_wxClientDC, | |
2131d850 | 40642 | _swigc__p_wxClipboardTextEvent, |
0085ce49 RD |
40643 | _swigc__p_wxCloseEvent, |
40644 | _swigc__p_wxColour, | |
40645 | _swigc__p_wxColourDatabase, | |
40646 | _swigc__p_wxCommandEvent, | |
40647 | _swigc__p_wxContextMenuEvent, | |
40648 | _swigc__p_wxControl, | |
40649 | _swigc__p_wxControlWithItems, | |
40650 | _swigc__p_wxCursor, | |
40651 | _swigc__p_wxDC, | |
70d7cb34 RD |
40652 | _swigc__p_wxDCBrushChanger, |
40653 | _swigc__p_wxDCClipper, | |
b39fe951 | 40654 | _swigc__p_wxDCOverlay, |
70d7cb34 RD |
40655 | _swigc__p_wxDCPenChanger, |
40656 | _swigc__p_wxDCTextColourChanger, | |
0085ce49 RD |
40657 | _swigc__p_wxDash, |
40658 | _swigc__p_wxDateEvent, | |
40659 | _swigc__p_wxDisplayChangedEvent, | |
40660 | _swigc__p_wxDropFilesEvent, | |
40661 | _swigc__p_wxDuplexMode, | |
40662 | _swigc__p_wxEffects, | |
40663 | _swigc__p_wxEncodingConverter, | |
40664 | _swigc__p_wxEraseEvent, | |
40665 | _swigc__p_wxEvent, | |
4976f996 | 40666 | _swigc__p_wxEventBlocker, |
0085ce49 RD |
40667 | _swigc__p_wxEvtHandler, |
40668 | _swigc__p_wxFSFile, | |
40669 | _swigc__p_wxFileSystem, | |
40670 | _swigc__p_wxFlexGridSizer, | |
40671 | _swigc__p_wxFocusEvent, | |
40672 | _swigc__p_wxFont, | |
40673 | _swigc__p_wxFontList, | |
40674 | _swigc__p_wxFontMapper, | |
40675 | _swigc__p_wxGBSizerItem, | |
72ef6efb | 40676 | _swigc__p_wxGCDC, |
50efceee | 40677 | _swigc__p_wxGDIObjListBase, |
0085ce49 RD |
40678 | _swigc__p_wxGDIObject, |
40679 | _swigc__p_wxGIFHandler, | |
70d7cb34 | 40680 | _swigc__p_wxGraphicsBrush, |
72ef6efb | 40681 | _swigc__p_wxGraphicsContext, |
70d7cb34 RD |
40682 | _swigc__p_wxGraphicsFont, |
40683 | _swigc__p_wxGraphicsMatrix, | |
40684 | _swigc__p_wxGraphicsObject, | |
72ef6efb | 40685 | _swigc__p_wxGraphicsPath, |
70d7cb34 RD |
40686 | _swigc__p_wxGraphicsPen, |
40687 | _swigc__p_wxGraphicsRenderer, | |
0085ce49 RD |
40688 | _swigc__p_wxGridBagSizer, |
40689 | _swigc__p_wxGridSizer, | |
33d6fd3b | 40690 | _swigc__p_wxHeaderButtonParams, |
0085ce49 RD |
40691 | _swigc__p_wxICOHandler, |
40692 | _swigc__p_wxIcon, | |
40693 | _swigc__p_wxIconBundle, | |
40694 | _swigc__p_wxIconLocation, | |
40695 | _swigc__p_wxIconizeEvent, | |
40696 | _swigc__p_wxIdleEvent, | |
40697 | _swigc__p_wxImage, | |
40698 | _swigc__p_wxImageHandler, | |
40699 | _swigc__p_wxImageList, | |
40700 | _swigc__p_wxIndividualLayoutConstraint, | |
40701 | _swigc__p_wxInitDialogEvent, | |
40702 | _swigc__p_wxJPEGHandler, | |
40703 | _swigc__p_wxKeyEvent, | |
40704 | _swigc__p_wxLanguageInfo, | |
40705 | _swigc__p_wxLayoutConstraints, | |
40706 | _swigc__p_wxLocale, | |
40707 | _swigc__p_wxMask, | |
40708 | _swigc__p_wxMaximizeEvent, | |
40709 | _swigc__p_wxMemoryDC, | |
40710 | _swigc__p_wxMenu, | |
40711 | _swigc__p_wxMenuBar, | |
40712 | _swigc__p_wxMenuEvent, | |
40713 | _swigc__p_wxMenuItem, | |
40714 | _swigc__p_wxMetaFile, | |
40715 | _swigc__p_wxMetaFileDC, | |
40716 | _swigc__p_wxMirrorDC, | |
40717 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 40718 | _swigc__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
40719 | _swigc__p_wxMouseEvent, |
40720 | _swigc__p_wxMoveEvent, | |
40721 | _swigc__p_wxNativeEncodingInfo, | |
40722 | _swigc__p_wxNativeFontInfo, | |
fc46b7f3 RD |
40723 | _swigc__p_wxNativePixelData, |
40724 | _swigc__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
40725 | _swigc__p_wxNavigationKeyEvent, |
40726 | _swigc__p_wxNcPaintEvent, | |
40727 | _swigc__p_wxNotifyEvent, | |
40728 | _swigc__p_wxObject, | |
b39fe951 | 40729 | _swigc__p_wxOverlay, |
0085ce49 RD |
40730 | _swigc__p_wxPCXHandler, |
40731 | _swigc__p_wxPNGHandler, | |
40732 | _swigc__p_wxPNMHandler, | |
40733 | _swigc__p_wxPaintDC, | |
40734 | _swigc__p_wxPaintEvent, | |
40735 | _swigc__p_wxPalette, | |
40736 | _swigc__p_wxPaletteChangedEvent, | |
40737 | _swigc__p_wxPaperSize, | |
40738 | _swigc__p_wxPen, | |
40739 | _swigc__p_wxPenList, | |
fc46b7f3 | 40740 | _swigc__p_wxPixelDataBase, |
0085ce49 | 40741 | _swigc__p_wxPoint, |
72ef6efb | 40742 | _swigc__p_wxPoint2D, |
0085ce49 RD |
40743 | _swigc__p_wxPostScriptDC, |
40744 | _swigc__p_wxPrintData, | |
40745 | _swigc__p_wxPrinterDC, | |
27e45892 | 40746 | _swigc__p_wxPseudoDC, |
0085ce49 RD |
40747 | _swigc__p_wxPyApp, |
40748 | _swigc__p_wxPyCommandEvent, | |
40749 | _swigc__p_wxPyEvent, | |
40750 | _swigc__p_wxPyFontEnumerator, | |
40751 | _swigc__p_wxPyImageHandler, | |
fc46b7f3 | 40752 | _swigc__p_wxPyLocale, |
0085ce49 RD |
40753 | _swigc__p_wxPySizer, |
40754 | _swigc__p_wxPyValidator, | |
40755 | _swigc__p_wxQueryNewPaletteEvent, | |
40756 | _swigc__p_wxRect, | |
4fe9ce47 | 40757 | _swigc__p_wxRect2D, |
0085ce49 RD |
40758 | _swigc__p_wxRegion, |
40759 | _swigc__p_wxRegionIterator, | |
40760 | _swigc__p_wxRendererNative, | |
40761 | _swigc__p_wxRendererVersion, | |
a7830320 | 40762 | _swigc__p_wxSVGFileDC, |
0085ce49 RD |
40763 | _swigc__p_wxScreenDC, |
40764 | _swigc__p_wxScrollEvent, | |
40765 | _swigc__p_wxScrollWinEvent, | |
40766 | _swigc__p_wxSetCursorEvent, | |
40767 | _swigc__p_wxShowEvent, | |
40768 | _swigc__p_wxSize, | |
40769 | _swigc__p_wxSizeEvent, | |
40770 | _swigc__p_wxSizer, | |
40771 | _swigc__p_wxSizerItem, | |
40772 | _swigc__p_wxSplitterRenderParams, | |
40773 | _swigc__p_wxStaticBoxSizer, | |
40774 | _swigc__p_wxStdDialogButtonSizer, | |
50efceee | 40775 | _swigc__p_wxStockGDI, |
0085ce49 RD |
40776 | _swigc__p_wxString, |
40777 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 40778 | _swigc__p_wxTGAHandler, |
0085ce49 RD |
40779 | _swigc__p_wxTIFFHandler, |
40780 | _swigc__p_wxUpdateUIEvent, | |
40781 | _swigc__p_wxValidator, | |
40782 | _swigc__p_wxWindow, | |
40783 | _swigc__p_wxWindowCreateEvent, | |
40784 | _swigc__p_wxWindowDC, | |
40785 | _swigc__p_wxWindowDestroyEvent, | |
40786 | _swigc__p_wxXPMHandler, | |
40787 | }; | |
40788 | ||
40789 | ||
40790 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
40791 | ||
40792 | static swig_const_info swig_const_table[] = { | |
40793 | {0, 0, 0, 0.0, 0, 0}}; | |
40794 | ||
40795 | #ifdef __cplusplus | |
40796 | } | |
40797 | #endif | |
40798 | /* ----------------------------------------------------------------------------- | |
40799 | * Type initialization: | |
40800 | * This problem is tough by the requirement that no dynamic | |
40801 | * memory is used. Also, since swig_type_info structures store pointers to | |
40802 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
40803 | * to swig_type_info structures, we need some lookup code at initialization. | |
40804 | * The idea is that swig generates all the structures that are needed. | |
40805 | * The runtime then collects these partially filled structures. | |
40806 | * The SWIG_InitializeModule function takes these initial arrays out of | |
40807 | * swig_module, and does all the lookup, filling in the swig_module.types | |
40808 | * array with the correct data and linking the correct swig_cast_info | |
40809 | * structures together. | |
40810 | * | |
40811 | * The generated swig_type_info structures are assigned staticly to an initial | |
40812 | * array. We just loop though that array, and handle each type individually. | |
40813 | * First we lookup if this type has been already loaded, and if so, use the | |
40814 | * loaded structure instead of the generated one. Then we have to fill in the | |
40815 | * cast linked list. The cast data is initially stored in something like a | |
40816 | * two-dimensional array. Each row corresponds to a type (there are the same | |
40817 | * number of rows as there are in the swig_type_initial array). Each entry in | |
40818 | * a column is one of the swig_cast_info structures for that type. | |
40819 | * The cast_initial array is actually an array of arrays, because each row has | |
40820 | * a variable number of columns. So to actually build the cast linked list, | |
40821 | * we find the array of casts associated with the type, and loop through it | |
40822 | * adding the casts to the list. The one last trick we need to do is making | |
40823 | * sure the type pointer in the swig_cast_info struct is correct. | |
40824 | * | |
40825 | * First off, we lookup the cast->type name to see if it is already loaded. | |
40826 | * There are three cases to handle: | |
40827 | * 1) If the cast->type has already been loaded AND the type we are adding | |
40828 | * casting info to has not been loaded (it is in this module), THEN we | |
40829 | * replace the cast->type pointer with the type pointer that has already | |
40830 | * been loaded. | |
40831 | * 2) If BOTH types (the one we are adding casting info to, and the | |
40832 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
40833 | * the previous module so we just ignore it. | |
40834 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
40835 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
40836 | * be correct. | |
40837 | * ----------------------------------------------------------------------------- */ | |
40838 | ||
40839 | #ifdef __cplusplus | |
40840 | extern "C" { | |
40841 | #if 0 | |
40842 | } /* c-mode */ | |
40843 | #endif | |
40844 | #endif | |
40845 | ||
40846 | #if 0 | |
40847 | #define SWIGRUNTIME_DEBUG | |
40848 | #endif | |
40849 | ||
40850 | SWIGRUNTIME void | |
40851 | SWIG_InitializeModule(void *clientdata) { | |
40852 | size_t i; | |
40853 | swig_module_info *module_head; | |
40854 | static int init_run = 0; | |
40855 | ||
40856 | clientdata = clientdata; | |
40857 | ||
40858 | if (init_run) return; | |
40859 | init_run = 1; | |
40860 | ||
40861 | /* Initialize the swig_module */ | |
40862 | swig_module.type_initial = swig_type_initial; | |
40863 | swig_module.cast_initial = swig_cast_initial; | |
40864 | ||
40865 | /* Try and load any already created modules */ | |
40866 | module_head = SWIG_GetModule(clientdata); | |
40867 | if (module_head) { | |
40868 | swig_module.next = module_head->next; | |
40869 | module_head->next = &swig_module; | |
40870 | } else { | |
40871 | /* This is the first module loaded */ | |
40872 | swig_module.next = &swig_module; | |
40873 | SWIG_SetModule(clientdata, &swig_module); | |
40874 | } | |
40875 | ||
40876 | /* Now work on filling in swig_module.types */ | |
40877 | #ifdef SWIGRUNTIME_DEBUG | |
40878 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
40879 | #endif | |
40880 | for (i = 0; i < swig_module.size; ++i) { | |
40881 | swig_type_info *type = 0; | |
40882 | swig_type_info *ret; | |
40883 | swig_cast_info *cast; | |
40884 | ||
40885 | #ifdef SWIGRUNTIME_DEBUG | |
40886 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
40887 | #endif | |
40888 | ||
40889 | /* if there is another module already loaded */ | |
40890 | if (swig_module.next != &swig_module) { | |
40891 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
8d38bd1d | 40892 | } |
0085ce49 RD |
40893 | if (type) { |
40894 | /* Overwrite clientdata field */ | |
40895 | #ifdef SWIGRUNTIME_DEBUG | |
40896 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
40897 | #endif | |
40898 | if (swig_module.type_initial[i]->clientdata) { | |
40899 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
40900 | #ifdef SWIGRUNTIME_DEBUG | |
40901 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
40902 | #endif | |
40903 | } | |
40904 | } else { | |
40905 | type = swig_module.type_initial[i]; | |
8d38bd1d | 40906 | } |
0085ce49 RD |
40907 | |
40908 | /* Insert casting types */ | |
40909 | cast = swig_module.cast_initial[i]; | |
40910 | while (cast->type) { | |
40911 | /* Don't need to add information already in the list */ | |
40912 | ret = 0; | |
40913 | #ifdef SWIGRUNTIME_DEBUG | |
40914 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
40915 | #endif | |
40916 | if (swig_module.next != &swig_module) { | |
40917 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
40918 | #ifdef SWIGRUNTIME_DEBUG | |
40919 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
40920 | #endif | |
40921 | } | |
40922 | if (ret) { | |
40923 | if (type == swig_module.type_initial[i]) { | |
40924 | #ifdef SWIGRUNTIME_DEBUG | |
40925 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
40926 | #endif | |
40927 | cast->type = ret; | |
40928 | ret = 0; | |
40929 | } else { | |
40930 | /* Check for casting already in the list */ | |
40931 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
40932 | #ifdef SWIGRUNTIME_DEBUG | |
40933 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
40934 | #endif | |
40935 | if (!ocast) ret = 0; | |
40936 | } | |
40937 | } | |
40938 | ||
40939 | if (!ret) { | |
40940 | #ifdef SWIGRUNTIME_DEBUG | |
40941 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
40942 | #endif | |
40943 | if (type->cast) { | |
40944 | type->cast->prev = cast; | |
40945 | cast->next = type->cast; | |
40946 | } | |
40947 | type->cast = cast; | |
40948 | } | |
40949 | cast++; | |
8d38bd1d | 40950 | } |
0085ce49 RD |
40951 | /* Set entry in modules->types array equal to the type */ |
40952 | swig_module.types[i] = type; | |
40953 | } | |
40954 | swig_module.types[i] = 0; | |
40955 | ||
40956 | #ifdef SWIGRUNTIME_DEBUG | |
40957 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
40958 | for (i = 0; i < swig_module.size; ++i) { | |
40959 | int j = 0; | |
40960 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
40961 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
40962 | while (cast->type) { | |
40963 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
40964 | cast++; | |
40965 | ++j; | |
40966 | } | |
40967 | printf("---- Total casts: %d\n",j); | |
40968 | } | |
40969 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
40970 | #endif | |
40971 | } | |
40972 | ||
40973 | /* This function will propagate the clientdata field of type to | |
40974 | * any new swig_type_info structures that have been added into the list | |
40975 | * of equivalent types. It is like calling | |
40976 | * SWIG_TypeClientData(type, clientdata) a second time. | |
40977 | */ | |
40978 | SWIGRUNTIME void | |
40979 | SWIG_PropagateClientData(void) { | |
40980 | size_t i; | |
40981 | swig_cast_info *equiv; | |
40982 | static int init_run = 0; | |
40983 | ||
40984 | if (init_run) return; | |
40985 | init_run = 1; | |
40986 | ||
40987 | for (i = 0; i < swig_module.size; i++) { | |
40988 | if (swig_module.types[i]->clientdata) { | |
40989 | equiv = swig_module.types[i]->cast; | |
40990 | while (equiv) { | |
40991 | if (!equiv->converter) { | |
40992 | if (equiv->type && !equiv->type->clientdata) | |
40993 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
40994 | } | |
40995 | equiv = equiv->next; | |
40996 | } | |
8d38bd1d | 40997 | } |
0085ce49 RD |
40998 | } |
40999 | } | |
41000 | ||
41001 | #ifdef __cplusplus | |
41002 | #if 0 | |
41003 | { | |
41004 | /* c-mode */ | |
41005 | #endif | |
41006 | } | |
41007 | #endif | |
41008 | ||
41009 | ||
41010 | ||
41011 | #ifdef __cplusplus | |
41012 | extern "C" { | |
41013 | #endif | |
41014 | ||
41015 | /* Python-specific SWIG API */ | |
41016 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
41017 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
41018 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
41019 | ||
41020 | /* ----------------------------------------------------------------------------- | |
41021 | * global variable support code. | |
41022 | * ----------------------------------------------------------------------------- */ | |
41023 | ||
41024 | typedef struct swig_globalvar { | |
41025 | char *name; /* Name of global variable */ | |
41026 | PyObject *(*get_attr)(void); /* Return the current value */ | |
41027 | int (*set_attr)(PyObject *); /* Set the value */ | |
41028 | struct swig_globalvar *next; | |
41029 | } swig_globalvar; | |
41030 | ||
41031 | typedef struct swig_varlinkobject { | |
41032 | PyObject_HEAD | |
41033 | swig_globalvar *vars; | |
41034 | } swig_varlinkobject; | |
41035 | ||
41036 | SWIGINTERN PyObject * | |
41037 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
41038 | return PyString_FromString("<Swig global variables>"); | |
41039 | } | |
41040 | ||
41041 | SWIGINTERN PyObject * | |
41042 | swig_varlink_str(swig_varlinkobject *v) { | |
41043 | PyObject *str = PyString_FromString("("); | |
41044 | swig_globalvar *var; | |
41045 | for (var = v->vars; var; var=var->next) { | |
41046 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
41047 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
41048 | } | |
41049 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
41050 | return str; | |
41051 | } | |
41052 | ||
41053 | SWIGINTERN int | |
41054 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
41055 | PyObject *str = swig_varlink_str(v); | |
41056 | fprintf(fp,"Swig global variables "); | |
41057 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
41058 | Py_DECREF(str); | |
41059 | return 0; | |
41060 | } | |
41061 | ||
41062 | SWIGINTERN void | |
41063 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
41064 | swig_globalvar *var = v->vars; | |
41065 | while (var) { | |
41066 | swig_globalvar *n = var->next; | |
41067 | free(var->name); | |
41068 | free(var); | |
41069 | var = n; | |
8d38bd1d | 41070 | } |
0085ce49 RD |
41071 | } |
41072 | ||
41073 | SWIGINTERN PyObject * | |
41074 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
41075 | PyObject *res = NULL; | |
41076 | swig_globalvar *var = v->vars; | |
41077 | while (var) { | |
41078 | if (strcmp(var->name,n) == 0) { | |
41079 | res = (*var->get_attr)(); | |
41080 | break; | |
41081 | } | |
41082 | var = var->next; | |
8d38bd1d | 41083 | } |
0085ce49 RD |
41084 | if (res == NULL && !PyErr_Occurred()) { |
41085 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 41086 | } |
0085ce49 RD |
41087 | return res; |
41088 | } | |
41089 | ||
41090 | SWIGINTERN int | |
41091 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
41092 | int res = 1; | |
41093 | swig_globalvar *var = v->vars; | |
41094 | while (var) { | |
41095 | if (strcmp(var->name,n) == 0) { | |
41096 | res = (*var->set_attr)(p); | |
41097 | break; | |
41098 | } | |
41099 | var = var->next; | |
8d38bd1d | 41100 | } |
0085ce49 RD |
41101 | if (res == 1 && !PyErr_Occurred()) { |
41102 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 41103 | } |
0085ce49 RD |
41104 | return res; |
41105 | } | |
41106 | ||
41107 | SWIGINTERN PyTypeObject* | |
41108 | swig_varlink_type(void) { | |
41109 | static char varlink__doc__[] = "Swig var link object"; | |
41110 | static PyTypeObject varlink_type; | |
41111 | static int type_init = 0; | |
41112 | if (!type_init) { | |
41113 | const PyTypeObject tmp | |
41114 | = { | |
41115 | PyObject_HEAD_INIT(NULL) | |
41116 | 0, /* Number of items in variable part (ob_size) */ | |
41117 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
41118 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
41119 | 0, /* Itemsize (tp_itemsize) */ | |
41120 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
41121 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
41122 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
41123 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
41124 | 0, /* tp_compare */ | |
41125 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
41126 | 0, /* tp_as_number */ | |
41127 | 0, /* tp_as_sequence */ | |
41128 | 0, /* tp_as_mapping */ | |
41129 | 0, /* tp_hash */ | |
41130 | 0, /* tp_call */ | |
41131 | (reprfunc)swig_varlink_str, /* tp_str */ | |
41132 | 0, /* tp_getattro */ | |
41133 | 0, /* tp_setattro */ | |
41134 | 0, /* tp_as_buffer */ | |
41135 | 0, /* tp_flags */ | |
41136 | varlink__doc__, /* tp_doc */ | |
41137 | 0, /* tp_traverse */ | |
41138 | 0, /* tp_clear */ | |
41139 | 0, /* tp_richcompare */ | |
41140 | 0, /* tp_weaklistoffset */ | |
41141 | #if PY_VERSION_HEX >= 0x02020000 | |
41142 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
41143 | #endif | |
41144 | #if PY_VERSION_HEX >= 0x02030000 | |
41145 | 0, /* tp_del */ | |
41146 | #endif | |
41147 | #ifdef COUNT_ALLOCS | |
41148 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
41149 | #endif | |
41150 | }; | |
41151 | varlink_type = tmp; | |
41152 | varlink_type.ob_type = &PyType_Type; | |
41153 | type_init = 1; | |
8d38bd1d | 41154 | } |
0085ce49 RD |
41155 | return &varlink_type; |
41156 | } | |
41157 | ||
41158 | /* Create a variable linking object for use later */ | |
41159 | SWIGINTERN PyObject * | |
41160 | SWIG_Python_newvarlink(void) { | |
41161 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
41162 | if (result) { | |
41163 | result->vars = 0; | |
41164 | } | |
41165 | return ((PyObject*) result); | |
41166 | } | |
41167 | ||
41168 | SWIGINTERN void | |
41169 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
41170 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
41171 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
41172 | if (gv) { | |
41173 | size_t size = strlen(name)+1; | |
41174 | gv->name = (char *)malloc(size); | |
41175 | if (gv->name) { | |
41176 | strncpy(gv->name,name,size); | |
41177 | gv->get_attr = get_attr; | |
41178 | gv->set_attr = set_attr; | |
41179 | gv->next = v->vars; | |
41180 | } | |
8d38bd1d | 41181 | } |
0085ce49 RD |
41182 | v->vars = gv; |
41183 | } | |
41184 | ||
41185 | SWIGINTERN PyObject * | |
41186 | SWIG_globals() { | |
41187 | static PyObject *_SWIG_globals = 0; | |
41188 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
41189 | return _SWIG_globals; | |
41190 | } | |
41191 | ||
41192 | /* ----------------------------------------------------------------------------- | |
41193 | * constants/methods manipulation | |
41194 | * ----------------------------------------------------------------------------- */ | |
41195 | ||
41196 | /* Install Constants */ | |
41197 | SWIGINTERN void | |
41198 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
41199 | PyObject *obj = 0; | |
41200 | size_t i; | |
41201 | for (i = 0; constants[i].type; ++i) { | |
41202 | switch(constants[i].type) { | |
41203 | case SWIG_PY_POINTER: | |
41204 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
41205 | break; | |
41206 | case SWIG_PY_BINARY: | |
41207 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
41208 | break; | |
41209 | default: | |
41210 | obj = 0; | |
41211 | break; | |
41212 | } | |
41213 | if (obj) { | |
41214 | PyDict_SetItemString(d, constants[i].name, obj); | |
41215 | Py_DECREF(obj); | |
41216 | } | |
8d38bd1d | 41217 | } |
0085ce49 RD |
41218 | } |
41219 | ||
41220 | /* -----------------------------------------------------------------------------*/ | |
41221 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
41222 | /* -----------------------------------------------------------------------------*/ | |
41223 | ||
41224 | SWIGINTERN void | |
41225 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
41226 | swig_const_info *const_table, | |
41227 | swig_type_info **types, | |
41228 | swig_type_info **types_initial) { | |
41229 | size_t i; | |
41230 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 41231 | const char *c = methods[i].ml_doc; |
0085ce49 RD |
41232 | if (c && (c = strstr(c, "swig_ptr: "))) { |
41233 | int j; | |
41234 | swig_const_info *ci = 0; | |
453fb36b | 41235 | const char *name = c + 10; |
0085ce49 RD |
41236 | for (j = 0; const_table[j].type; ++j) { |
41237 | if (strncmp(const_table[j].name, name, | |
41238 | strlen(const_table[j].name)) == 0) { | |
41239 | ci = &(const_table[j]); | |
41240 | break; | |
41241 | } | |
41242 | } | |
41243 | if (ci) { | |
41244 | size_t shift = (ci->ptype) - types; | |
41245 | swig_type_info *ty = types_initial[shift]; | |
41246 | size_t ldoc = (c - methods[i].ml_doc); | |
41247 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
41248 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
41249 | if (ndoc) { | |
41250 | char *buff = ndoc; | |
41251 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
41252 | if (ptr) { | |
41253 | strncpy(buff, methods[i].ml_doc, ldoc); | |
41254 | buff += ldoc; | |
41255 | strncpy(buff, "swig_ptr: ", 10); | |
41256 | buff += 10; | |
41257 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
41258 | methods[i].ml_doc = ndoc; | |
41259 | } | |
41260 | } | |
41261 | } | |
41262 | } | |
8d38bd1d | 41263 | } |
0085ce49 RD |
41264 | } |
41265 | ||
41266 | #ifdef __cplusplus | |
41267 | } | |
41268 | #endif | |
41269 | ||
41270 | /* -----------------------------------------------------------------------------* | |
41271 | * Partial Init method | |
41272 | * -----------------------------------------------------------------------------*/ | |
41273 | ||
41274 | #ifdef __cplusplus | |
41275 | extern "C" | |
41276 | #endif | |
41277 | SWIGEXPORT void SWIG_init(void) { | |
41278 | PyObject *m, *d; | |
41279 | ||
41280 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
41281 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
41282 | ||
41283 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
41284 | d = PyModule_GetDict(m); | |
41285 | ||
41286 | SWIG_InitializeModule(0); | |
41287 | SWIG_InstallConstants(d,swig_const_table); | |
41288 | ||
41289 | ||
01f6b6d3 RD |
41290 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
41291 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
41292 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
fc46b7f3 RD |
41293 | SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT))); |
41294 | SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE))); | |
0085ce49 RD |
41295 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
41296 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
41297 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
41298 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
41299 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
41300 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
41301 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
41302 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
41303 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
41304 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
41305 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
41306 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
41307 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
41308 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
41309 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
41310 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
41311 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
41312 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
41313 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
41314 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
41315 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
41316 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
41317 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
41318 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
41319 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
41320 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
41321 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
41322 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
41323 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
41324 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
41325 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
41326 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
41327 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
41328 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
41329 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
41330 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
41331 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
41332 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
41333 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
41334 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
41335 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
41336 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
41337 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
41338 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
41339 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
41340 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
41341 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
41342 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
41343 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
41344 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
41345 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
41346 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
41347 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
41348 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
41349 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
41350 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
41351 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
41352 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
41353 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
41354 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
41355 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
41356 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
41357 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
41358 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
41359 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
41360 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
41361 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
41362 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
41363 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
41364 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
41365 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
41366 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
41367 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
41368 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
41369 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
41370 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
41371 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
41372 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
41373 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
41374 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
41375 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
41376 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
41377 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
41378 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
41379 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
41380 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
41381 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
41382 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
41383 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
41384 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
41385 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
41386 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
41387 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
41388 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
41389 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
41390 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
41391 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
41392 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
41393 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
41394 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
41395 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
41396 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
41397 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
41398 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
41399 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
41400 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
41401 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
41402 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
41403 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
41404 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
41405 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
41406 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
41407 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
41408 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
41409 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
41410 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
41411 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
41412 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
41413 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
41414 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
41415 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
41416 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
41417 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
41418 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
41419 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
41420 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
41421 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
41422 | ||
41423 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
41424 | ||
41425 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
41426 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
41427 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
41428 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
41429 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
41430 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
41431 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
41432 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
41433 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
41434 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
41435 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
41436 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
41437 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
41438 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
41439 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
41440 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
41441 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
41442 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
41443 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
41444 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
41445 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
41446 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
41447 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
41448 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
41449 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
41450 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
41451 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
41452 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
41453 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
41454 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
41455 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
41456 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
41457 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
41458 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
41459 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
41460 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
41461 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
41462 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
41463 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
41464 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
41465 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
41466 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
41467 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
41468 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
41469 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
41470 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
41471 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
41472 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
41473 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
41474 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
41475 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
41476 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
41477 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
41478 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
41479 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
41480 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
41481 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
41482 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
41483 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
41484 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
41485 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
41486 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
41487 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
41488 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
41489 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
41490 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
41491 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
41492 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
41493 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
41494 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
41495 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
41496 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
41497 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
41498 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
41499 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
41500 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
41501 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
41502 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
41503 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
41504 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
41505 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
41506 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
41507 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
41508 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
41509 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
41510 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
41511 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
41512 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
41513 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
41514 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
41515 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
41516 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
41517 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
41518 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
41519 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
41520 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
41521 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
41522 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
41523 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
41524 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
41525 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
41526 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
41527 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
41528 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
41529 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
41530 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
41531 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
41532 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
41533 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
41534 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
41535 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
41536 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
41537 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
41538 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
41539 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
41540 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
41541 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
41542 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
41543 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
41544 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
41545 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
41546 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
41547 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
41548 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
41549 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
41550 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
41551 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
41552 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
41553 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
41554 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
41555 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
41556 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
41557 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
41558 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
41559 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
41560 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
41561 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
41562 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
41563 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
41564 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
41565 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
41566 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
41567 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
41568 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
41569 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
41570 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
41571 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
41572 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
41573 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
41574 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
41575 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
41576 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
41577 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
41578 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
41579 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
41580 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
41581 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
41582 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
41583 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
41584 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
41585 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
41586 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
41587 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
41588 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
41589 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
41590 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
41591 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
41592 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
41593 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
41594 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
41595 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
41596 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
41597 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
41598 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
41599 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
41600 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
41601 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
41602 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
41603 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
41604 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
41605 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
41606 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
41607 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
41608 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
41609 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
41610 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
41611 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
41612 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
41613 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
41614 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
41615 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
41616 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
41617 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
41618 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
41619 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
41620 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
41621 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
41622 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
41623 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
41624 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
41625 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
41626 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
41627 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
41628 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
41629 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
41630 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
41631 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
41632 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
41633 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
41634 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
41635 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
41636 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
41637 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
41638 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
41639 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
41640 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
41641 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
41642 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
41643 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
41644 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
41645 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
41646 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
41647 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
41648 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
41649 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
41650 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
41651 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
41652 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
41653 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
41654 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
41655 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
41656 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
41657 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
41658 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
41659 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
41660 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
41661 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
41662 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
41663 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
41664 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
41665 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
41666 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
41667 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
41668 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
41669 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
41670 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
41671 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
41672 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
cbfc9df6 | 41673 | SWIG_Python_SetConstant(d, "BUFFER_USES_SHARED_BUFFER",SWIG_From_int(static_cast< int >(wxBUFFER_USES_SHARED_BUFFER))); |
70d7cb34 RD |
41674 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
41675 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set); | |
41676 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set); | |
41677 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set); | |
5c8c7dd3 RD |
41678 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set); |
41679 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set); | |
0085ce49 RD |
41680 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); |
41681 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
41682 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
41683 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
41684 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
41685 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
41686 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
50efceee RD |
41687 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
41688 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
41689 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
41690 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
41691 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
41692 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
41693 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
41694 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
41695 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
41696 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
41697 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
41698 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
41699 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
41700 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
41701 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
41702 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
41703 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
41704 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
41705 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
41706 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
41707 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
41708 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
41709 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
41710 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
41711 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
41712 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
41713 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
41714 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
41715 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
41716 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
41717 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
41718 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
41719 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
41720 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
41721 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
0085ce49 RD |
41722 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
41723 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
41724 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
41725 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
41726 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
41727 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
41728 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
41729 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
8c3a7183 | 41730 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIconBundle",NullIconBundle_get, NullIconBundle_set); |
0085ce49 RD |
41731 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
41732 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
41733 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
79df624a | 41734 | SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL))); |
0085ce49 RD |
41735 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); |
41736 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
41737 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
79df624a | 41738 | SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP))); |
a7830320 | 41739 | SWIG_Python_SetConstant(d, "CONTROL_FLAT",SWIG_From_int(static_cast< int >(wxCONTROL_FLAT))); |
0085ce49 RD |
41740 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); |
41741 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
41742 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
41743 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
41744 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
41745 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
41746 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
33d6fd3b RD |
41747 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE))); |
41748 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP))); | |
41749 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN))); | |
0085ce49 RD |
41750 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); |
41751 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
41752 | ||
41753 | // Work around a chicken/egg problem in drawlist.cpp | |
41754 | wxPyDrawList_SetAPIPtr(); | |
41755 | ||
d14a1e28 RD |
41756 | } |
41757 |